Skip to main content
Glama

Asia Market Data

stock_quote_batch

Read-onlyIdempotent

Get latest available quotes for up to 20 stocks in one call, in symbol order.

Same data and sources as stock_quote, just batched: each list element is one quote object (or an {"error": ...} object for that symbol — one bad symbol never fails the batch). No API keys involved; data is unofficial and may be delayed.

Use this when a request mentions MORE THAN ONE stock, and stock_quote when it names exactly one — results are identical per symbol, so the batch simply saves round-trips. Requests naming more than 20 symbols are truncated at 20 and the response includes a "note" saying how many were skipped. Read-only and safe to call repeatedly.

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": {
      "symbols": "<symbols>"
    },
    "name": "stock_quote_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesComma-separated CODE.MARKET symbols, e.g. "600519.SH,0700.HK,AAPL.US". Whitespace around commas is fine.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered, yet the description still adds substantive behavior: per-symbol error isolation ("one bad symbol never fails the batch"), truncation-at-20 with a note, no API-key requirement, and unofficial/may-be-delayed data. The closing "read-only and safe to call repeatedly" is redundant with annotations but is a minor fraction of an otherwise high-value disclosure.

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?

Four short paragraphs, front-loaded with purpose then alternative then edge cases, with no filler prose. The only waste is the final sentence's restatement of the read-only/idempotent annotations.

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?

Output schema exists so return-shape detail is not required, yet the description still explains the per-element quote-or-error structure and the "note" field. For a single-parameter read tool, nothing an agent needs in order to call it correctly is missing.

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% and the single parameter is fully documented with a format example, so the baseline would be 3; the description earns more by supplying the undocumented 20-symbol cap and ordering guarantee that the schema does not state. It adds real constraint semantics rather than restating the parameter.

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 and resource ("Get latest available quotes") plus a hard scope limit ("up to 20 stocks in one call, in symbol order") and explicitly contrasts itself with stock_quote. An agent can distinguish this from its siblings 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?

Gives an explicit routing rule: use this when a request mentions more than one stock, use stock_quote when it names exactly one, and notes results are identical per symbol. It also covers the boundary case of >20 symbols being truncated and flagged in a "note" field.

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.