query_influxql
Run a bounded, read-only InfluxQL query against an InfluxDB 3 database to retrieve structured rows, warnings, and query metadata.
Instructions
Run one bounded, read-only InfluxQL query against an InfluxDB 3 database. Accepts database as an alias for db and query as an alias for q; differing pairs are rejected. Defaults to JSON output and returns structured rows, warnings, and query metadata. Core and Enterprise also return jsonl or csv; Cloud Dedicated, Cloud Serverless, and Clustered return only JSON. Your answer must report metadata.completeness, the cap when capped, warnings, and row_count; see READING QUERY RESULTS in get_help. Rejects SELECT INTO and destructive statements. Prefer query_sql for SQL prompts; use InfluxQL regex field selection only when the user explicitly asks for InfluxQL or regex field matching. For regex field selection, write SELECT /pattern/ FROM m; a type suffix such as /pattern/::field fails to parse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Read-only InfluxQL query to run. Provide q or query; if both are present, they must agree. | |
| db | No | Database name to query. Provide db or database; if both are present, they must agree. | |
| query | No | Alias for q; provide one or equal values. | |
| format | No | Output format for query results. Core and Enterprise return json, jsonl, or csv; Cloud Dedicated, Cloud Serverless, and Clustered return json. Other formats are refused with unsupported_query_format. | json |
| params | No | Optional query parameters to pass through | |
| maxRows | No | Maximum rows to return. Default 1000; hard max 5000. | |
| database | No | Alias for db; provide one or equal values. | |
| timeoutMs | No | Optional query timeout in milliseconds |