query_metrics

Execute an InfluxQL query against the operator's metrics database.

Execute an InfluxQL query against the operator's metrics database.

Read-only · Calls external systems. Safe to call: this tool does not modify data.

Parameters

FieldTypeRequiredDescription
detailbooleanNoReturn full JSON instead of statistical summary (default: false)
operatorstringYesOperator slug (= InfluxDB database name)
precisionstringNoQuery time precision (s, ms, u, ns)
querystringYesInfluxQL query string
summary_modestringNoOutput detail: 'full' (default, all metrics), 'executive' (1-line status, key metrics only)

Example arguments

Illustrative arguments an agent supplies when calling this tool:

{
  "operator": "string",
  "query": "string"
}

Description

Returns statistical summaries by default; use detail=true for raw JSON.

PREREQUISITE: call platform_guide topic=metrics for the schema discovery workflow, measurement catalog, and example queries.

Start with SHOW MEASUREMENTS to discover tables, then SHOW FIELD KEYS FROM <measurement> for fields. Always include a WHERE time clause (recommended max 90 days for summary mode, 30 days for detail=true). In detail mode, results truncated at 5000 points.

What's next?

All MCP tools

Browse the full tool reference by category.

Connect a client

Point Claude, Cursor, or Claude Code at the server.

Last updated on