Skip to main content
Glama
jarvislee90s-dot

local-datasource

resolve_stock_code

Resolves A-share stock codes from company names (exact short-name or substring full-name matches) and writes candidate matches to a CSV file.

Instructions

Resolve A-share stock code by company name (abbreviation or full name). Output is written to file_path as CSV with candidate rows (代码+名称). 简称精确命中;全称能命中简称子串则返回;城投/非上市发行人返回空候选。多候选时 Agent/用户从中选,再调 query_stock 查行情。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYesStock name or keyword, e.g. 茅台 / 贵州茅台酒股份有限公司
file_pathYesOutput CSV file path

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

It transparently notes that output is written to a file (file_path) and describes the matching logic, including empty candidate cases. It does not mention any destructive side effects, but the file writing is a clear side effect.

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?

The description is concise but mixes English and Chinese, which may reduce clarity for some readers. The structure is a bit disjointed with multiple clauses, but it remains brief and does not include unnecessary fluff.

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?

It covers the main aspects: input, output location and format, matching behavior, and a follow-up step. It does not specify error handling or edge cases beyond the non-listed issuer scenario, but for the tool's simplicity, it is fairly complete.

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?

The description adds significant meaning beyond the schema: it explains that keyword can be an abbreviation or full name, details the exact matching rules (abbreviation exact, full name substring), and clarifies the output content. This goes well beyond the basic 'Stock name or keyword' and 'Output CSV file path' in the schema.

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's purpose: resolving an A-share stock code from a company name. It also mentions the output format (CSV) and distinguishes it from sibling tools like query_stock which fetch market data.

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?

It provides guidance on when to use it (for resolving codes by abbreviation or full name) and even suggests a follow-up action (calling query_stock when multiple candidates exist). However, it doesn't explicitly state when not to use it or alternatives.

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

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/jarvislee90s-dot/local-datasource'

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