Skip to main content
Glama
stock-mcp-server

stock-mcp-server

by 1018053166

batch_get_stocks

Retrieve real-time data for multiple Chinese stocks at once by passing an array of stock codes.

Instructions

批量获取多只股票的实时数据

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "stockCodes": "<stockCodes>"
    },
    "name": "batch_get_stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
stockCodesYes股票代码数组(如: ["000001", "600000"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden, and it discloses very little. It does not say whether results are returned as a list or a map, whether invalid or delisted codes cause the whole batch to fail, or whether the real-time data is delayed or subject to rate limits. Only the fact that the tool returns real-time snapshots is conveyed.

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?

This is a single short sentence with no filler and the batch scope is front-loaded. It is efficient, though its brevity is partly the under-specification noted in other dimensions rather than deliberate density.

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

Completeness3/5

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

This is a simple tool with one fully documented parameter and no output schema, so not much is required. However, for a batch tool it should at least clarify response shape and batch-size limits, which are absent.

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?

There is only one parameter, stockCodes, and the input schema already documents it at 100% coverage, including an example array format. The description adds nothing about its semantics, such as constraints on the number of codes or acceptable code formats, so the schema provides all available detail.

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?

The description states a specific verb and resource: batch-retrieving real-time data for multiple stocks. The words "批量" and "多只" distinguish it from the single-stock sibling get_stock_realtime, and "实时数据" separates it from historical tools like get_kline. It stops short of naming any sibling explicitly, so it does not earn a 5.

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?

The guidance is only implied: an agent can infer that it should use this tool for multiple stock codes at once. There is no explicit statement about when to prefer it over get_stock_realtime, no mention of the maximum batch size, and no guidance on what to do if only one code is provided.

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