get_kpi
Get a specific KPI value for a stock using instrument ID, KPI ID, calculation group, and calculation. Useful for targeted financial data retrieval.
Instructions
Get a specific KPI value for one instrument. Read the 'borsdata://reference/kpi-metadata' resource to look up kpiId numbers. Read 'borsdata://guide/api-overview' for calcGroup and calc parameter explanations.
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": {
"insId": "<insId>",
"kpiId": "<kpiId>",
"calcGroup": "<calcGroup>",
"calc": "<calc>"
},
"name": "get_kpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calc | Yes | Calculation: high, low, mean, cagr, or latest | |
| insId | Yes | Instrument ID | |
| kpiId | Yes | KPI ID (e.g. 2=P/E, 3=P/S, 4=P/B). Read the kpi-metadata resource to find IDs. | |
| calcGroup | Yes | Time period: 1year, 3year, 5year, 7year, 10year, 15year, or last |