Skip to main content
Glama

Asia Market Data

stock_quote

Read-onlyIdempotent

Get the latest available quote (price, change, day range, volume) for one stock in a single market.

Reads from free public feeds (Tencent for A-share/HK, yfinance for US); no API keys involved. Data is unofficial and may be delayed; where the response has a "timestamp" field it shows when the quote is from. Invalid or unknown symbols return an {"error": ...} object instead of raising.

Use this for ONE symbol. Use stock_quote_batch when the request names multiple symbols — it returns one call's worth of data for up to 20 at once. Use kline instead for historical bars, market_summary for index snapshots. This tool is read-only and safe to call repeatedly. Requires no authentication.

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": {
      "symbol": "<symbol>"
    },
    "name": "stock_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesStock symbol in CODE.MARKET format — market is one of SH (Shanghai), SZ (Shenzhen), HK (Hong Kong), US (US listings). Examples: "600519.SH", "0700.HK", "NVDA.US". HK codes may omit leading zeros ("0700.HK" == "00700.HK").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover safety/idempotency; the description adds genuinely new behavioral facts: data provenance (Tencent for A-share/HK, yfinance for US), no API keys required, data is unofficial and possibly delayed, a "timestamp" field indicates quote freshness, and invalid symbols return an {"error": ...} object rather than throwing. That error-shape and freshness disclosure is exactly the kind of context annotations cannot supply.

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 purpose, then provenance caveats, then sibling routing — a sensible ordering with no filler sentences. Minor redundancy at the end ("This tool is read-only and safe to call repeatedly. Requires no authentication.") restates the readOnlyHint/idempotentHint annotations rather than adding 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?

For a single-parameter read tool with an output schema present, the description covers everything an agent needs: what it returns, where data comes from, freshness caveats, error behavior, and which sibling to prefer per request shape. No material gap remains.

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?

Schema description coverage is 100% and the single symbol parameter is thoroughly documented there, including CODE.MARKET format, market codes, and the leading-zero HK equivalence. The description only reinforces the "one stock in a single market" constraint, so it neither contradicts nor materially extends the schema; baseline 3 is appropriate.

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 opens with a specific verb and resource ("Get the latest available quote") and enumerates the returned fields (price, change, day range, volume), scoped to "one stock in a single market." It is immediately distinguishable from siblings like stock_quote_batch (multi-symbol) and kline (historical bars) without opening any 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 gives an explicit selection rule — "Use this for ONE symbol" — and names the exact alternative with its capacity ("stock_quote_batch ... up to 20 at once") plus two more routings (kline for historical bars, market_summary for index snapshots). Both when-to-use and when-not-to-use are covered, which is the top of the scale.

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.