Skip to main content
Glama
jarvislee90s-dot

local-datasource

query_options

Query China options data (SSE ETF and CFFEX index) for expiry months, contract lists, or daily history, saving to CSV. Use months/contracts to locate contract codes before fetching historical data.

Instructions

Query China options (SSE ETF options + CFFEX index options IO/HO/MO). Output is written to file_path as CSV. kind=months: 标的到期月份. kind=contracts: 当月合约清单. kind=hist: 单合约日线. 本轮仅日线; 找合约代码先用 months/contracts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesQuery type
symbolNoOption contract code e.g. 10003889 or IO2706-P-5600 (hist)
end_dateNoEnd date YYYY-MM-DD (hist)
file_pathYesOutput CSV file path
start_dateNoStart date YYYY-MM-DD (hist)
trade_dateNoTrade date YYYY-MM-DD (contracts/CFFEX, default today)
underlyingNoUnderlying: 50ETF/300ETF/500ETF/科创50ETF/IO/HO/MO (months/contracts)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full responsibility for revealing behavior. It clearly states that output is written to a file_path as CSV, and the use of 'Query' implies a read-only operation. However, it does not mention whether the file is overwritten, whether any network requests are made, or any potential side effects beyond file creation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and information-dense, with no fluff. It uses a structured format with bullet-like separations for the kind values, and the key operational note about finding contract codes is succinctly embedded. Every sentence contributes to understanding the tool, and the mixed Chinese/English is efficient for the intended domain.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description provides enough context for an agent to use the tool correctly: it covers the data scope, output format, the three query kinds, and a workflow tip. Since there is no output schema, it does not need to describe return values. However, it could be more complete by explicitly stating that the 'hist' kind requires start_date and end_date, or by noting default behaviors, but overall it is sufficient for basic usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema descriptions cover all parameters, and the tool description adds meaningful context: it explains that 'kind' controls the query mode, that 'underlying' applies to months/contracts, that 'trade_date' is for contracts/CFFEX, and that start_date/end_date are for hist. This goes beyond the schema by clarifying which parameters are relevant for each kind, making the semantics clearer.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool queries China options, specifically SSE ETF options and CFFEX index options (IO/HO/MO), which distinguishes it from sibling tools like query_etf, query_index, and query_futures. It also indicates the output is written to a CSV file, giving a complete picture of the tool's primary function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the three 'kind' values (months, contracts, hist) and provides a practical hint: '本轮仅日线' (only daily data for now) and '找合约代码先用 months/contracts' (find contract codes via months/contracts first). This guidance helps the agent choose the correct workflow, though it does not explicitly compare to alternative sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarvislee90s-dot/local-datasource'

If you have feedback or need assistance with the MCP directory API, please join our Discord server