Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

index_stock_cons_weight_csindex

Read-onlyIdempotent

Fetch the constituent stock weights for a CSI index code from the CSIndex website, returning a pandas DataFrame.

Instructions

中证指数网站-样本权重 https://www.csindex.com.cn/zh-CN/indices/index-detail/000300 :param symbol: 指数代码,可以通过 ak.index_stock_info() 接口获取 :type symbol: str :return: 最新指数的成份股权重 :rtype: pandas.DataFrame

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNo000300

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so safety and idempotency are covered. The description adds that the returned weights are the 'latest' snapshot (最新) and are a pandas.DataFrame, plus the source website, but says nothing about refresh cadence, coverage, or failure modes beyond that.

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

Conciseness4/5

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

Purpose is front-loaded in the first line and the docstring-style param/return lines are compact. The raw URL and the :type:/:rtype: markers are slightly noisy but not wasteful for a data-fetch tool.

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?

For a single-optional-parameter read-only fetch tool with annotations covering the safety profile and no output schema, the description covers purpose, source, parameter origin, and return type. The only real gap is disambiguation from the closely named sibling tools.

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

Parameters4/5

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

Schema description coverage is 0% – the schema only exposes a bare string with default '000300' and no description. The description compensates by defining symbol as 指数代码 (index code) and pointing to ak.index_stock_info() as the way to discover valid values, which is materially more than the schema provides.

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

Purpose4/5

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

States a specific verb-less but clear resource: constituent weights (样本权重) from the CSI index website, with the concrete example URL for 000300. This distinguishes it from generic index tools, though it never contrasts itself with the very similar sibling index_stock_cons_csindex, which likely returns constituents rather than weights.

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

Usage Guidelines3/5

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

Tells the agent where to obtain the symbol value (via ak.index_stock_info()), which is a useful prerequisite. However, it gives no guidance on when to prefer this tool over index_stock_cons_csindex, index_stock_cons, or index_stock_cons_sina, which is the key selection decision given the crowded sibling set.

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

Deploy Server

Other Tools