query
Execute read-only InfluxQL queries on InfluxDB databases to explore time-series data. Supports SELECT and SHOW statements, with write operations blocked.
Instructions
Execute a read-only InfluxQL query against a database.
Only SELECT and SHOW statements are allowed. Write operations are blocked.
Args: database: Name of the InfluxDB database to query. influxql: The InfluxQL query to execute (e.g. SELECT * FROM cpu LIMIT 10). epoch: Timestamp precision in the response (ns, u, ms, s, m, h). Default: ms.
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": {
"database": "<database>",
"influxql": "<influxql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epoch | No | ms | |
| database | Yes | ||
| influxql | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |