Skip to main content
Glama
gavin3129

akshare-mcp

by gavin3129

get_stock_quote

Retrieve real-time quotes for China A-share stocks. Input a 6-digit stock code to get price, change percentage, volume, turnover, and market cap.

Instructions

Get the real-time quote for a single A-share stock.

Args: symbol: A 6-digit A-share code, e.g. "600519" (Kweichow Moutai) or "300750" (CATL).

Returns: A dict with the latest price, change percentage, volume, turnover and market-cap figures. On failure, a dict with an error key explaining what went wrong.

Example: >>> get_stock_quote("600519") # doctest: +SKIP {'symbol': '600519', 'name': '贵州茅台', 'price': 1683.0, 'change_pct': 0.85, 'volume': 31250, 'total_market_cap': 2.1e12, ...}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations so description carries full burden. Describes successful return (dict with price, change, volume, etc.) and failure case (error key). Does not explicitly state read-only or idempotent, but behavior is clear.

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?

Well-structured with Args, Returns, and Example sections. Every sentence adds value, though slightly verbose with docstring conventions.

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?

Complete for a simple tool: describes input, output, error handling, and provides example. No annotations needed; description covers all relevant aspects.

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 has 0% coverage; description fully compensates with format ('6-digit A-share code'), examples ('600519', '300750'), and context. Adds meaning beyond type alone.

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?

Clearly states 'Get the real-time quote for a single A-share stock' with specific verb and resource. Distinguishes from siblings (get_financial_statements, get_industry_news) by focusing on quotes vs financials vs news.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides example and explains parameter format. Implicitly distinguishes from siblings via purpose. Lacks explicit when-not-to-use or alternative guidance.

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

Install Server

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/gavin3129/akshare-mcp'

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