lookup_stock_code
Fix 'Stock code not found' errors by retrieving CNINFO orgId mapping for 6-digit A-share stock codes, enabling successful retry of downloads.
Instructions
Look up CNINFO orgId mapping for a 6-digit A-share stock code. Diagnostic tool.
<critical_rules>
Prefer refresh=false first (local cache). Use refresh=true only if cache is empty or the code is still missing. </critical_rules>
Args: stock_code: 6-digit stock code, e.g. "000001" or "600519" refresh: Force re-download of szse_stock.json from CNINFO (default: false)
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": {
"stock_code": "<stock_code>"
},
"name": "lookup_stock_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| stock_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |