Skip to main content
Glama
chengzuopeng

Stock SDK MCP Server

by chengzuopeng

search_stock

Read-only

Find stocks by code, name, or pinyin to retrieve matching A-share, Hong Kong, and US stock results.

Instructions

搜索股票,支持按代码、名称、拼音搜索,返回匹配的 A 股、港股、美股结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes搜索关键词,可以是股票代码、名称或拼音,如 "茅台"、"600519"、"maotai"
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds that it supports code/name/pinyin searches and returns results across A-share, HK, and US markets, extending beyond annotation info. It does not contradict the annotations.

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?

A single, front-loaded sentence that efficiently conveys the tool's purpose, supported search types, and market scope. Every element is informative and there is no wasted wording.

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 simple single-parameter search tool with read-only annotation, the description sufficiently covers the operation and scope. The lack of an output schema is partially mitigated by the statement that it returns matching results, though a brief mention of the result format would make it fully complete.

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?

The schema already documents the 'keyword' parameter with examples and mentions code/name/pinyin. The description repeats this info without adding new syntax or formatting details, so it provides no extra value beyond the 100% schema coverage.

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 it searches stocks by code, name, or pinyin and returns matching A-share, HK, and US results. The verb 'search' + resource 'stocks' is specific, and the multi-market scope distinguishes it from quote or analysis siblings like get_quotes_by_query or analyze_stock.

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?

The description implies when to use the tool (when you need to find stocks by keyword) by listing supported search methods and markets. It does not explicitly mention alternatives or exclusions, but for a search tool the context is clear.

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/chengzuopeng/stock-sdk-mcp'

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