Skip to main content
Glama

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

ashare_profile_batch

⭐ 批量公司简况:一次拿多只的上市日期 / 主营业务 / 所属行业 / 官网 / 注册资本 / 董事长 / 注册地址 / 联系方式,逐只标明成功与否。用户问'这几只都是做什么的/帮我按行业归类/筛出来的池子逐个看基本面/什么时候上市的'用这个。⚠️ 与 ashare_profile 的区别:本工具一次给多只,ashare_profile 只查一只。⚠️ 为什么值得单开一次调用:ashare_profile 问 100 只 = 100 次调用;本工具实测 100 只 6.8 秒拿完,且缺了哪只一眼可见。⚠️ 用法:codes 逗号分隔(sh600519,sz000001),支持裸 6 位码。⚠️ 返回:data 数组,每项 {code, ok, data}(或 error),取几只回几个条目;同时给 requested / returned / failed。⚠️ 仅 A 股(sh/sz/bj,含指数与 ETF)—— 港股/美股/板块会标 ok:false 并提示改用 ashare_profile 单只查询(批量里不稳定,⛔ 宁可不给也不返回错数据)。⚠️ 指数与 ETF 的 industry / listedDate 可能是 -(数据源没有该字段),不算取数失败。⚠️ 上限:专业版单次 100 只,机构版 150 只;按实际返回只数计费。⚠️ 付费工具:专业版(¥99)及以上,标准版不可用。

Input Schema

NameRequiredDescriptionDefault
codesYes股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤100 只 · 机构版 ≤150 只)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / codes / description
      Previous value: -"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤100 只 · 不限量版 ≤150 只)"New value: +"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤100 只 · 机构版 ≤150 只)"
  2. Added

TDQS

A4.8/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: it discloses per-item ok/error semantics, that missing industry/listedDate for indices/ETFs is not a failure, A-share-only scope, tier-based caps, that billing is per returned item, and that it is a paid tool unavailable on the standard tier. These are exactly the operational facts an agent needs before spending a call.

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?

Content is front-loaded and organized by ⚠️ markers, with the distinguishing comparison placed early. It is long and repeats the 100/150 limit and paid-tier note that also appear in the schema, so a little trimming is possible, but nearly every sentence carries distinct operational information.

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?

Given an output schema exists, the description need not re-explain returns, yet it still clarifies the per-item success/failure shape and partial-failure behavior, which the output schema alone would not make as obvious. Combined with scope, limits, cost, and fallback guidance, nothing an agent needs to invoke it correctly is missing.

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 coverage is 100%, so the baseline is already met by the schema's comma-separated format and tier caps. The description adds value by stating that bare 6-digit codes are also accepted and by repeating the cap in context of the call, though it does not add syntax detail beyond that.

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 starts with a specific verb and resource (batch company profile) and explicitly enumerates the returned fields (listing date, main business, industry, website, registered capital, chairman, address, contact). It also explicitly contrasts against the sibling ashare_profile, so an agent can select it without opening either schema.

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?

It names the exact user intents that should select this tool ('这几只都是做什么的/按行业归类/逐个看基本面/什么时候上市') and states the alternative (ashare_profile) with the condition that separates them: one vs. many. It further says what to do when non-A-share codes appear (mark ok:false, fall back to single queries) rather than silently failing.

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