Skip to main content
Glama

A股数据 API (A-Share Data API)

ashare_profile

公司简况:上市日期 / 主营业务 / 所属行业 / 官网 / 注册资本 / 董事长 / 员工数 等。用户问'这家公司是做什么的/哪年上市/属于什么行业/董事长是谁'用这个。⚠️ 与 ashare_snapshot 的分工:snapshot 给估值/市值/股本(数字面),本工具给公司本身是谁(业务面)—— 问『做什么的』用本工具,问『贵不贵』用 snapshot。⚠️ 一次只查一只:本工具的 code 虽也支持逗号,但返回是扁平行、无逐只状态,无效码会被直接忽略(sh600519,sz999999 只会回 1 行,没有任何提示)⇒ 多只请用 ashare_profile_batch(专业版 100 只 / 不限量 150 只,逐只标明成功与否)。⚠️ 代码可传 sh600667 或裸 6 位 600667(内部会补前缀)。⚠️ 港股(hk00700)与板块(pt01801081)也能查,但字段会缺(港股无 listedDate;两通道口径不同)⇒ 以返回为准。⚠️ ETF / 指数别用本工具 —— 对 ETF 只有 code/name/listedDate 有值,business/industry/sector 数据源本来就没有(不是取数失败、也不是查不到这只 ETF);ETF 的完整信息(64 字段+基金经理+Top20 持仓)用 ashare_etf(kind='详情')。⚠️ 数据是静态档案,缓存 24 小时 —— 同一天重复问不会重复消耗配额。

Input Schema

NameRequiredDescriptionDefault
codeYes股票代码:sh600667 / 600667(多只用 ashare_profile_batch)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: comma-separated codes are accepted but return flat rows with no per-symbol status and invalid codes are silently dropped ('sh600519,sz999999 returns only 1 row with no hint'), HK and sector codes work but return missing fields, ETF calls only populate code/name/listedDate, and results are a static 24-hour cache. This is exactly the failure-mode context an agent needs.

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?

Front-loaded with the field list and trigger questions, then structured with ⚠️ markers so each caveat is scannable. It is on the long side and the multi-code warning is partly restated in the parameter schema, but almost every sentence prevents a concrete misuse.

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

Completeness5/5

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

For a one-parameter read tool with an output schema, everything an agent needs is present: what is returned, what is citable, which codes are valid, which assets are out of scope, where the alternative tools are, and how caching affects repeated calls. Nothing material is left to inference.

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?

Schema coverage is 100% (baseline 3), but the description adds real meaning beyond it: 'sh600667' or bare '600667' both work because the prefix is auto-appended, and although the schema says multi-code goes to batch, the description clarifies what actually happens if you pass commas anyway (flattened rows, silent drops). That is genuine value over the schema text.

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?

Names a specific resource (company profile: listing date, main business, industry, website, registered capital, chairman, headcount) and states in one line the user questions it answers. It also explicitly differentiates from the nearest sibling, ashare_snapshot: 'snapshot gives valuation/market cap/share count (numeric side), this tool gives who the company is (business side)'.

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

Usage Guidelines5/5

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

Gives explicit when-to-use phrasing ('what does this company do / when was it listed / what industry / who is the chairman'), and routes alternatives: valuation questions → ashare_snapshot, multiple codes → ashare_profile_batch, ETFs → ashare_etf(kind='详情'). It also states when-not-to-use: ETFs and indices are excluded because business/industry/sector are absent at the source.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources