get_metric_fields
Retrieve available fields and tags for a Datadog metric to enable accurate aggregation queries and data analysis.
Instructions
Get available fields/tags for a specific metric from Datadog to help with aggregation queries
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": "get_metric_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_name | Yes | Datadog metric name to get available fields for | |
| time_range | No | Time range to look back for field discovery (currently not used by the API but kept for consistency) | 1h |
| format | No | Output format | list |