query-data
Execute Flux queries to inspect measurement schemas, run aggregations, or validate recently written data in an InfluxDB organization.
Instructions
Execute a Flux query inside an organization to inspect measurement schemas, run aggregations, or validate recently written data. Default org: "my-organization".
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": {
"query": "<query>"
},
"name": "query-data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organization whose buckets the query should target (exact name, not ID). Defaults to "my-organization" if omitted. | |
| query | Yes | Flux query text. Multi-line strings are supported; results are returned as annotated CSV for easy parsing. |