Skip to main content
Glama

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

ashare_ask_user

歧义时向用户提问(结构对齐 Claude Code AskUserQuestion)。\n⭐ 什么时候用:用户只给了模糊名称(「平安」「腾讯」),你不确定指哪家公司时。\n 本工具不会替你选,而是返回 1–4 个带说明的选项(如「中国平安 · 沪市主板·保险龙头」),由你转成问题问用户。\n⚠️ 选项说明由模型生成(需要语义:"中国平安"和"平安银行"差在哪,规则写不出来) ⇒ 带 X-LLM-Key 时质量最好;不带则只返回原始候选(无说明)。\n⚠️ 返回 needs_clarification=false 表示歧义已消(模型判断只有一家可能),此时 chosen_code 就是答案,直接用它继续。\n⛔ 本工具不查数据,只做消歧。拿到 code 后再调 ashare_agent_search / ashare_quote。

Input Schema

NameRequiredDescriptionDefault
qYes用户的原始问句(原样传,不要自己简化)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does: it discloses the 1-4 option return shape, that option explanations are model-generated, that quality degrades without the X-LLM-Key header (raw candidates only), and the precise meaning of the needs_clarification flag. Auth context and degraded-mode behavior are both covered.

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 core purpose and organized under clear markers (when-to-use, caveats, exclusions), with the most decision-relevant information first. It is somewhat dense and emoji-heavy, but each line carries distinct actionable content rather than filler.

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?

An output schema exists, so return values need no explanation, yet the description still supplies the two decision-critical flags (needs_clarification, chosen_code) and the X-LLM-Key dependency. For a disambiguation gatekeeper tool, an agent has everything needed to call it and act on the result.

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

Parameters3/5

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

Only one parameter with 100% schema description coverage, so the schema already documents q fully (raw question, passed verbatim without simplification). The description adds no syntax or format detail beyond that, making the baseline of 3 correct.

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?

States a specific verb+resource+scope: ask the user when the entity reference is ambiguous, returning 1-4 annotated candidates rather than choosing for the caller. It explicitly distinguishes itself from siblings with '本工具不查数据,只做消歧' and names ashare_agent_search / ashare_quote as the follow-up tools.

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?

Explicit when-to-use ('用户只给了模糊名称…不确定指哪家公司时') and when-not-to-use (it does not fetch data; use ashare_agent_search or ashare_quote after obtaining the code). It also explains the escape hatch: when needs_clarification=false the ambiguity is already resolved and chosen_code should be used directly.

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