get_metric
Computes business metrics using the owner's pre-checked SQL rules, optionally for the last N days, so you can answer business questions without writing queries.
Instructions
Business numbers by the owner's own rules, computed with pre-checked SQL. Prefer this over run_query
whenever a metric fits the question. days: the last N days, or omit for all time.
Always tell the user the period and the rule that come back with the answer.
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": {
"name": "<name>"
},
"name": "get_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |