Skip to main content
Glama
JingHao-Leon

mcp-stock-quote

by JingHao-Leon

get_stock_quote

Fetch realtime stock quotes across A-share, Hong Kong, and US markets in a single batch request, accepting flexible ticker formats.

Instructions

获取股票实时行情,支持 A股、港股、美股,可批量查询。代码格式灵活:A股可传 600519 / sh600519 / sz000001;港股可传 00700 / hk00700;美股传 AAPL / TSLA 等 ticker。若不确定代码,先用 search_stock 按名称搜索。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYes股票代码列表,如 ["600519", "hk00700", "AAPL"]
Install Server

TDQS

A4.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does communicate real-time data, market coverage, batch capability, and flexible symbol formats, but it does not describe the return shape, error behavior, or data-source caveats. This is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured: it front-loads the core purpose, then gives market-specific format guidance, then closes with a fallback routing instruction. Every sentence earns its place with no filler.

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

Completeness4/5

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

For a single-parameter quote tool, the description is nearly complete: it covers supported markets, code formats, batch behavior, limits in the schema, and the fallback to search_stock. The only notable gap is the lack of any description of the returned quote data, which matters because there is no output schema, but this does not prevent correct invocation.

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?

Although the schema already documents the symbols array with 100% coverage, the description adds substantial meaning beyond the schema: exact symbol-format conventions for A-shares, HK stocks, and US tickers, plus the batch-query capability. This materially helps an agent construct valid inputs.

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 clearly states the tool retrieves real-time stock quotes for A-shares, HK, and US markets, and supports batch queries. It names the resource (stock quotes) and distinguishes itself from the sibling search_stock tool by being the quote-retrieval step after a code is known.

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 explicitly provides when to use this tool versus search_stock: if the user is unsure of the stock code, search_stock should be used first. It also gives concrete code-format examples for each market, making the appropriate call pattern clear.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JingHao-Leon/mcp-server-template'

If you have feedback or need assistance with the MCP directory API, please join our Discord server