query_metric_points
Retrieve time-series points for a single metric instrument within a UTC window. Use list_metrics first to find the resource, scope, instrument, and kind key.
Instructions
Return the points of a single instrument time-series identified by (resourceHash, scopeName, instrumentName, kind) inside the required UTC window. Use list_metrics first to discover the four-field key. Truncated=true means the window contains more points than the configured cap and the points returned are an early prefix.
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": {
"resourceHash": "<resourceHash>",
"scopeName": "<scopeName>",
"instrumentName": "<instrumentName>",
"kind": "<kind>",
"from": "<from>",
"to": "<to>"
},
"name": "query_metric_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Window end (ISO-8601 UTC). Required, > from. | |
| from | Yes | Window start (ISO-8601 UTC). Required. | |
| kind | Yes | Instrument kind: Gauge, Sum, Histogram, ExponentialHistogram, Summary. | |
| scopeName | Yes | Scope name (use empty string for the anonymous scope). | |
| resourceHash | Yes | Resource hash (lowercase hex) — see list_metrics output. | |
| instrumentName | Yes | Instrument name. | |
| includeAttributes | No | Set true to hydrate per-point attribute maps. Default false (cheaper for single-value widgets). |