SuperAPI AI Directory

wind-mcp-skill

Data & analytics

View repository

Updated 10-13 20:10

About this skill

Wind Financial Data

Invoke Wind's 7 MCP services locally via the CLI to retrieve data, and answer only based on the returned results. Report only Wind's return values and necessary limitations; do not add common knowledge or commentary.

Handle each question in four steps:① Determine routing → ② Issue command → ③ Read receipt → ④ Close out. Between ② and ③, you may correct parameters based on the error information in the receipt and call again. Before each additional call, go through the self-check items in Section 3.

1. Determine routing

First select by instrument type server_type, and read only one contract for that row; parameters must always be based on this contract. Do not read contracts from other domains, and do not fill in parameter names or field values from memory.

server_type Coverage Required contract
stock_data Stock screening, quotes, candlesticks, minute-level quotes, profiles, financials, shareholders, events, technicals, risk references/stock.md
fund_data Fund / ETF / LOF screening, quotes, candlesticks, minute-level quotes, profiles, financials, holdings, performance, holders, company references/fund.md
index_data Index / sector quotes, candlesticks, minute-level quotes, profiles, fundamentals, technicals references/index.md
bond_data Bond profiles, issuers, quote valuation, issuer financials references/bond.md
financial_docs Announcements, annual reports, quarterly reports, prospectuses, financial news references/financial-docs.md
economic_data Macro, industry, and exchange rate EDB indicators references/economic.md
analytics_data Cross-instrument aggregation, weighted averages, rankings, composite indicator derivation references/analytics.md

When intent may be ambiguous, arbitrate in this order:

  1. Announcements, annual reports, quarterly reports, prospectuses, regulatory disclosures → financial_docs.get_company_announcements
  2. News, flash updates, reports, commentary → financial_docs.get_financial_news
  3. Macro, industry, or exchange rate EDB indicators (production and sales volume, CPI, interest rates, exchange rate indicators, etc., even if the word "macro" does not appear) → if only indicator metadata/confirmation code is needed, use economic_data.search_economic_indicator; if a specific numerical time series is needed, use economic_data.query_economic_indicator_data
  4. Screening requests without specified instruments → the corresponding domain's search_*;analytics_data returns calculation results, not an entity list.
  5. Latest price, change percentage, trading volume, candlesticks, minute-level lines, interval trends → the corresponding domain's quote tools; historical intervals always use candlesticks.
  6. Financials, share capital, shareholders, events, technicals, risk, holdings, performance → the corresponding domain's natural language tools.

When the instrument type or intent does not fall into any row of the table above, directly return OUT_OF_SCOPE and explain;do not use Web Search,analytics_data or wind-alice to pretend to support it。

analytics_data handles cross-instrument aggregation, weighted averages, rankings, and composite indicator derivation. It is not a complex-question entry point, nor a batch quote entry point—quotes, candlesticks, minute-level quotes, and price indicators always use the corresponding domain's specialized tools; when there are many instruments, split into multiple calls and then merge;switching to analytics_data neither reduces the number of calls and also consumes more creditsUsing it successfully last time does not justify skipping the specialized tool next time. Only when the specialized tool cannot cover the remaining structured data due to fields, definitions, or no results may it be used as a supplement.

When industries are involved and the user has not specified a classification system, default to the Wind industry classification.

2. Issue the command

First cd to the directory where this SKILL.md is located (not the current project directory), then execute using a relative path:

node scripts/cli.mjs call <server_type> <tool_name> '<params_json>'

A complete example that can be run directly:

node scripts/cli.mjs call stock_data get_stock_price_indicators '{"windcode":"600519.SH"}'

Always obtain parameter values from the contract; never extrapolate from this example.

Parameter passing: POSIX shell prefers passing inline <params_json>; non-POSIX environments (PowerShell / cmd / wrapped by executors such as workbuddy, Codex) must always generate a UTF-8 JSON parameter file to scripts/request-<唯一后缀>.json, pass it via @scripts/request-<唯一后缀>.json , and delete it after the call. Do not reuse shared files, and do not generate it in the skill root directory.

Key: Do not claim there is no API Key after checking only part of the configuration sources. You must first actually run it once; only when it returns AUTH_ERROR and is explicitly unconfigured can it be determined to be missing, and it should then be handled according to the guidance in the envelope.

Batch and concurrency: Default to serial (concurrency 1). When you need to call item by item for 2 or more targets, first send only the first as a probe; only if the probe successfully returns data and no error envelope appears may you continue with the rest; if the probe returns an error envelope, terminate that batch immediately and do not spread the same call to other targets. Different server_type + tool_name or different parameter structures should be grouped separately, with one probe sent for each group. If the user explicitly requests concurrency, the upper limit is 10; once any call returns RATE_LIMIT_ERROR or backend_error , stop new requests and resume serial execution.

Price indicator tool (get_stock_price_indicators / get_fund_price_indicators / get_index_price_indicators)'s windcode supports comma-separated multiple targets,at most 50 per single call; if more than 50, split into multiple batches (each batch ≤50) and merge the results. This upper limit constrains the "number of codes within a single call" and is independent of the concurrency upper limit of 10 above (which constrains the "number of simultaneous concurrent calls"). When requesting a broader set of indicators (indexes with more fields), correspondingly reduce the number of codes per batch, because response size grows with "number of codes × number of fields".

3. Read the receipt

The stdout of each call has only two forms: success is a data object, failure is an error envelope with ok:false .

Success: stdout is a data object, and the backend result is in content[0].text (mostly a JSON string), with the CLI additionally providing a cli_meta. Read it directly; if content[0].textexists, preferentially parse the text or JSON within it.

  • The units andmagnitudesof numerical values are based on the metadata included in the response body: for market data it is in data.unit, the column definitions may include unit, and for EDB it is in meta.unit and meta.magnitude. When metadata is not provided, keep the original value and state that the unit is unknown; do not perform your own conversion.

Failure: stdout is { "ok": false, "code": "...", "message": "..." }. For local/parameter/network errors, code indicates the cause (AUTH_ERROR、PARAMS_FILE_ERROR、INVALID_PARAMS_JSON、PARAM_TYPE_ERROR、PARAM_VALIDATION_ERROR、ROUTE_ERROR、USAGE_ERROR、RATE_LIMIT_ERROR、NETWORK_ERROR、TOOL_RUNTIME_ERROR、SETUP_ERROR、UNKNOWN); for interface-layer errors, code is fixed as backend_error,message is the original interface text. Explain accordingly to the user, or correct it according to the self-check below before calling again.

Self-check before calling again after correction(check item by item):

  • Clarify the previous code and message。
  • Keep the same server_type and tool_name; only when the current contract proves that the tool cannot express the required fields or specifications may you switch within the same business domain.
  • Unless the error is INVALID_PARAMS_JSON, do not modify command quotes or JSON escaping.
  • Unless the error is PARAM_VALIDATION_ERROR(including parameter issues such as missing required fields, types, enums, paired/mutually exclusive fields, date order, etc.), do not change business parameters; only correct the fields indicated by message .
  • Parameter names and field values must come from the current domain contract.

4. Closing

When the underlying instrument is not recognized or NER fails, ask the user for the exact full name or Wind standard code; do not add an exchange suffix on your own or guess a name as a code. When parameters are incorrect, first correct them according to the expected type, format, enum, or field set given in message ; if it cannot be uniquely determined, then ask the user.

Authentication, quota, network, backend unavailable, command passing, routing errors: report directly,do not switch to analytics_data or wind-alice。

wind-alice Do not use unless necessary: only when all dedicated Wind paths fail due to data coverage, unavailable fields, mismatched specifications, or no results, and after explaining to the user the paths tried and the reasons for failure and obtaining consent, forward the user's original question verbatim; if the user refuses, stop and return the paths tried and key error codes. When the client does not have wind-alice installed, after obtaining consent, directly execute the installation command yourself (not just inform the user):npx skills add Wind-Information-Co-Ltd/wind-skills --skill wind-alice -g -y; for domestic networks, use the mirror npx skills add https://gitee.com/wind_info/wind-skills.git --skill wind-alice -g -y; when installing only to the current project, remove -g. After successful installation, forward again; if installation fails, report the original command error and do not silently give up.

When data is returned successfully, append a data source statement at the end, in the same language as the user's question (use Chinese for Chinese questions, English for English questions):

Data comes from Wind Information Financial Data Service.

Data sourced from Wind Financial Data Service.

Completion status:DONE、DONE_WITH_LIMITS、NO_RESULTS、BLOCKED_KEY、BLOCKED_QUOTA、BLOCKED_RUNTIME、OUT_OF_SCOPE。