About ZFundPilot
ZFundPilot is an MCP server published by Euzohn in the Agents category: 自托管中国基金组合分析与风险管理工具 — 自动净值更新 / 收益与回撤 / AI 投顾 / 定投回测 / 基金筛选 / 分红检测 | Self-hosted China fund portfolio analyzer: auto NAV sync, returns/risk analytics, AI advisor, DCA backtest, fund screener, dividend detection. Conduid read 36 tools from its source: add_watchlist_item, cancel_operation_proposal, compare_funds, create_operation_proposal, get_agent_capabilities, get_benchmark_comparison and 30 more. No package is published for it, so it installs from a source checkout.
The repository has 37 stars and 11 forks, and its last commit was on 28 Nov 2026. Conduid has no tagged release on record for it. Its topics include akshare, fastapi, fund, fund-analysis, fund-tracker and risk-management.
Install
git clone https://github.com/Euzohn/ZFundPilotTools (36)
add_watchlist_itemAdd a fund to the watchlist. This is a write operation.| Parameter | Type | Description |
|---|---|---|
| fund_code * | string | Six-digit fund code, e.g. "005827". |
| group_name | string | Optional watchlist group (max 50 chars). |
| idempotency_key * | string | Unique retry key (16-128 chars); reuse it only for the exact same request. |
| note | string | Optional note (max 500 chars). |
cancel_operation_proposalCancel one of your pending proposals. Approved/rejected ones cannot cancel.| Parameter | Type | Description |
|---|---|---|
| proposal_id * | integer | Proposal id returned by create_operation_proposal. |
compare_fundsCompare up to 20 funds on returns, risk, fees, and correlation.| Parameter | Type | Description |
|---|---|---|
| codes * | array | Six-digit fund codes, e.g. ["005827", "000001"]. |
| include_nav_series | boolean | Include normalized NAV series (larger response). |
create_operation_proposalCreate a ledger/plan/alert proposal for a human to approve in the web UI.| Parameter | Type | Description |
|---|---|---|
| idempotency_key * | string | Unique retry key (16-128 chars); same key+params returns the same proposal. |
| operation_type * | string | "add_transaction", "update_transaction", "delete_transaction", "add_conversion", "delete_conversion", "batch_import", "create_plan", "update_plan", "toggle_plan", "delete_plan", "resolve_alert", "backfill_transaction_navs", or "execute_plan". |
| params * | object | For add_transaction: fund_code, action (buy/sell/dividend/ reinvest), date (YYYY-MM-DD), fee, channel, note, is_t1, optional dividend_alert_id (dividend/reinvest only), and the amount/shares/nav combination required by the action: buy and reinvest need amount or shares; sell needs shares; dividend needs amount. nav may be omitted while awaiting T+1 confirmation. For update_transaction: tx_id, expected_digest (the row_digest from get_transaction), plus the full post-change field set (fund_code, action, date, amount, shares, nav, fee, channel, note, is_t1) — partial updates are not supported. For delete_transaction: tx_id, expected_digest, and an optional reason (max 500 chars). For add_conversion: from_code, to_code (both registered, different), date, from_shares, optional from_nav/from_fee, optional to_amount/to_nav/to_fee, channel, note, is_t1. Non-T+1 requires a derivable to-leg amount or shares; T+1 may defer it. For delete_conversion: conversion_id, expected_from_digest, expected_to_digest (both row_digest values, e.g. from list_transactions?conversion_id=... then get_transaction), and an optional reason. For batch_import: transactions (1-50 items), each with fund_code (required, no fund_name), action, date, the amount/shares/nav combination required by the action, and optional fee/channel/note/ is_t1; plus an optional overall note. Never clears existing rows. For create_plan: fund_code, amount (>0), cadence (daily/week/ biweek/month), day_of_week (0-6, 0=Monday; required for week/ biweek, forbidden otherwise), day_of_month (1-31; required for month, forbidden otherwise), optional channel/note. enabled, next_run, last_run and last_tx_id are rejected. For update_plan: plan_id, expected_digest (the row_digest from list_auto_invest_plans), plus any subset of the create_plan config fields to change. For toggle_plan: plan_id, expected_digest, enable (bool). For delete_plan: plan_id, expected_digest. For resolve_alert: alert_type (dividend/take_profit/stop_loss), alert_id, expected_digest (the row_digest from list_alerts), status (confirmed/ignored; no rollback to pending), and an optional tx_id (dividend + confirmed only; links one existing dividend/reinvestment transaction, does not create one). For backfill_transaction_navs: items (1-50), each with tx_id, expected_digest (the row_digest from get_transaction), and an optional fee (required only when the server cannot compute the fee offline; omit otherwise). For execute_plan: plan_id, expected_digest (the row_digest from list_auto_invest_plans), an optional trade_date (YYYY-MM-DD; defaults to today, only the last 7 days are allowed), and an optional fee (required only when the purchase fee cannot be computed at creation). amount/is_t1/channel/note and scheduler bookkeeping fields are rejected. |
get_agent_capabilitiesList read-only tools granted to the current Agent token.get_benchmark_comparisonCompare the portfolio curve with benchmark indices and macro levels.| Parameter | Type | Description |
|---|---|---|
| codes * | array | Benchmark codes, e.g. ["000300", "CPI"]. |
| end_date | string | Optional inclusive end date (YYYY-MM-DD). |
| start_date | string | Optional inclusive start date (YYYY-MM-DD). |
get_data_statusCheck formal NAV freshness and pending T+1 transactions before analysis.get_fund_detailRead one fund's metadata, latest formal NAV, annualized return, and recent NAV.| Parameter | Type | Description |
|---|---|---|
| code * | string | Six-digit fund code, e.g. "005827". |
| nav_limit | integer | Number of recent formal NAV points (1-250). |
get_fund_insightsRead a fund's deep profile: top holdings, peer-ranking trend, manager/scale/fees.| Parameter | Type | Description |
|---|---|---|
| code * | string | Six-digit fund code, e.g. "005827". |
| ranking_limit | integer | Number of recent ranking points (1-1000). |
get_index_valuationRead broad-based index valuations: PE/PB percentiles and temperature.| Parameter | Type | Description |
|---|---|---|
| code | string | Optional index code (e.g. "000300") to read a single index; omit to read all supported indices. |
get_industry_exposureRead portfolio industry exposure by looking through fund allocations.get_job_statusGet the status of a job started by start_data_refresh or run_dca_backtest.| Parameter | Type | Description |
|---|---|---|
| job_id * | integer | The job_id returned by start_data_refresh or run_dca_backtest. |
get_operation_proposalGet one proposal created by the current token.| Parameter | Type | Description |
|---|---|---|
| proposal_id * | integer | Proposal id returned by create_operation_proposal. |
get_portfolio_curveRead the daily portfolio value, invested cost, and cumulative return curve.| Parameter | Type | Description |
|---|---|---|
| end_date | string | Optional inclusive end date (YYYY-MM-DD). |
| max_points | integer | Maximum points; larger series are evenly sampled (10-2000). |
| start_date | string | Optional inclusive start date (YYYY-MM-DD). |
get_portfolio_healthRead the four-dimension health score, risk flags, and structural advice.get_portfolio_summaryRead portfolio market value, cost, P&L, annualized return, and data-as-of date.get_returnsRead portfolio or single-fund return breakdown.| Parameter | Type | Description |
|---|---|---|
| fund_code | string | Optional six-digit fund code; omit for portfolio-level returns. |
get_risk_reportRead drawdown, volatility, concentration, structure weights, and risk flags.get_transactionRead one transaction by id, including derived NAV and conversion fields.| Parameter | Type | Description |
|---|---|---|
| tx_id * | integer | Transaction id. |
list_alertsList dividend and take-profit/stop-loss alerts.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
| status | string | Optional pending/confirmed/ignored. |
| type | string | Optional dividend/take_profit/stop_loss/tp_sl. |
list_auto_invest_plansList auto-invest plans with derived status (active/paused/due).| Parameter | Type | Description |
|---|---|---|
| enabled | boolean | Optional enabled-state filter. |
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
list_notificationsList unified in-app notifications (read-only).| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
| source_type | string | Optional dividend/tpsl/auto_invest/job/nav_update/data_health. |
| status | string | Optional unread/read/dismissed. |
list_operation_proposalsList proposals created by the current token (newest first).| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
| status | string | Optional pending/succeeded/failed/conflict/rejected/ cancelled/expired. |
list_positionsList current holdings by fund and channel, sorted by market value descending.| Parameter | Type | Description |
|---|---|---|
| include_closed | boolean | Include fully closed positions. |
| limit | integer | Maximum number of positions to return (1-500). |
list_transactionsList recorded transactions (newest first) with filters and pagination.| Parameter | Type | Description |
|---|---|---|
| action | string | Optional buy/sell/dividend/reinvest. |
| channel | string | Optional exact purchase channel. |
| conversion_id | string | Optional conversion link id to fetch both legs. |
| date_from | string | Optional inclusive start date (YYYY-MM-DD). |
| date_to | string | Optional inclusive end date (YYYY-MM-DD). |
| fund_code | string | Optional six-digit fund code. |
| limit | integer | Page size (1-200). |
| nav_status | string | Optional confirmed/pending_t1/missing. |
| offset | integer | Page offset. |
list_watchlistList watchlist funds, optionally filtered by group.| Parameter | Type | Description |
|---|---|---|
| group_name | string | Optional watchlist group name. |
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
precheck_backfillPre-check which transactions can have their NAV backfilled. Read-only.| Parameter | Type | Description |
|---|---|---|
| payload * | object | {"tx_ids"?: [int, ...]}. Omit tx_ids to list all nav-NULL non-dividend rows (capped at 50); pass tx_ids to check specific rows (at most 50, no duplicates). Read-only either way. |
precheck_reconciliationPre-check a holdings reconciliation against the ledger. Read-only.| Parameter | Type | Description |
|---|---|---|
| payload * | object | {"holdings": [{fund_code or fund_name, shares, market_value?}], "channel"?: str}. At most 100 holdings. shares must be a non-negative finite number. |
precheck_transactionsPre-check transactions before proposing them. Read-only, never writes.| Parameter | Type | Description |
|---|---|---|
| payload * | object | The precheck input. Must contain "format" ("csv" or "items"). - csv: {"format": "csv", "csv_text": str, "channel_hint"?: str} - items: {"format": "items", "items": [{fund_code or fund_name, action, date, amount?, shares?, nav?, fee?, channel?, note?, is_t1?}], "channel_hint"?: str} At most 200 items. CSV text at most 5 MB. |
record_transactionDirectly record ONE buy/sell the user says already happened externally.| Parameter | Type | Description |
|---|---|---|
| action * | string | "buy" or "sell" (direct write supports only these two). |
| amount | number | Buy amount including fee, or sell proceeds. For buy, provide amount or shares; for sell, shares is required. |
| channel | string | Purchase channel, e.g. "支付宝"; keep it consistent with existing ledger rows for share and duplicate checks. |
| date * | string | Trade date YYYY-MM-DD; must not be in the future. |
| fee | number | Fee amount (default 0). |
| fund_code * | string | Six-digit fund code. |
| idempotency_key * | string | Unique retry key (16-128 chars); retries with the same key and params never create a second transaction or upgrade a downgraded proposal to a direct write. |
| is_t1 | boolean | True when the trade awaits T+1 confirmation. |
| nav | number | Confirmed execution NAV; omit while awaiting T+1 confirmation. |
| note | string | Optional note. |
| shares | number | Confirmed shares, if known. |
remove_watchlist_itemRemove a fund from the watchlist. This is a write operation.| Parameter | Type | Description |
|---|---|---|
| expected_revision * | integer | Revision returned by list_watchlist. |
| fund_code * | string | Six-digit fund code. |
| idempotency_key * | string | Unique retry key (16-128 chars). |
run_dca_backtestStart a historical DCA simulation job; poll ``get_job_status`` for results.| Parameter | Type | Description |
|---|---|---|
| amount_per_period * | number | Amount per fund per period, > 0 and <= 1,000,000. |
| cadence | string | "month", "week", or "biweek". |
| end_date * | string | Inclusive end date (YYYY-MM-DD), not after today in China time. |
| fund_codes * | array | 1-5 six-digit fund codes; duplicates are removed. |
| idempotency_key * | string | Unique retry key (16-128 chars); same key+params returns the same job_id. |
| include_curve | boolean | Return the sampled portfolio value curve. |
| include_lumpsum | boolean | Add a lump-sum comparison per fund. |
| include_periods | boolean | Return per-period purchase details (larger response). |
| max_points | integer | Maximum curve points (10-2000, first/last preserved). |
| start_date * | string | Inclusive start date (YYYY-MM-DD), before end_date. |
screen_fundsScreen the fund universe by asset type, sector, and code/name substring.| Parameter | Type | Description |
|---|---|---|
| keyword | string | Optional name or code substring, at most 100 characters. |
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
| sectors | array | Optional sectors, e.g. ["科技"]. |
| types | array | Optional asset types, e.g. ["混合型", "指数型"]. |
| with_metrics | boolean | Enrich up to 30 funds with return and risk metrics. |
search_fundsSearch the fund universe by name or six-digit code substring.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Name or code substring, 1-100 characters after trimming. |
| limit | integer | Page size (1-200). |
| offset | integer | Page offset. |
start_data_refreshStart a NAV/metadata refresh job. This is a write operation.| Parameter | Type | Description |
|---|---|---|
| fund_codes | array | Up to 50 six-digit codes; omit to refresh current open holdings. |
| idempotency_key * | string | Unique retry key (16-128 chars); same key+params returns the same job_id. |
update_watchlist_itemUpdate a watchlist note or group. This is a write operation.| Parameter | Type | Description |
|---|---|---|
| expected_revision * | integer | Revision returned by list_watchlist. |
| fund_code * | string | Six-digit fund code. |
| group_name | string | New group; omit to keep the current value. |
| idempotency_key * | string | Unique retry key (16-128 chars). |
| note | string | New note; omit to keep the current value. |
Security checks
6 checks have not been run yet.