Latest value of a metric
kairosdb_last_valueRetrieve the most recent value of a metric with its timestamp. Filter by tags to get real-time readings for monitoring current status.
Instructions
Retrieves the most recent value of a metric (equivalent to a real-time reading).
Use cases:
"What is the current CPU usage on server web-01?"
"Latest reading from the request latency metric"
Args:
metric_name: Exact metric name
tags: Tag filters to target a specific host
response_format: "markdown" or "json"
Returns: Latest known value with its timestamp.
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": {
"metric_name": "<metric_name>"
},
"name": "kairosdb_last_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | KairosDB tag filters. Ex: {"host": ["web-01"], "environment": ["production"]}. Each tag value is an array of strings (logical OR). | |
| metric_name | Yes | Exact KairosDB metric name (e.g. server.cpu_usage, network.latency) | |
| response_format | No | markdown |