insights_query_consistent
Canonical compact ledger-only Insights read. Pass query_contract_version=1, group_by, explicit date_from/date_to, and exactly one of scope or scopes. Use scopes for server-side batch, trust coverage and pagination separately, and continue the same ordered batch only with meta.next_continuation; single-scope responses also mirror it in result.data. The cursor binds the exact Google ledger generation and page size; do not send Meta min_as_of.
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_contract_version": "<query_contract_version>",
"group_by": "<group_by>",
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "insights_query_consistent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| scope | No | ||
| fields | No | ||
| scopes | No | ||
| date_to | Yes | ||
| wait_ms | No | ||
| group_by | Yes | ||
| date_from | Yes | ||
| page_size | No | ||
| consistency | No | cached | |
| continuation | No | Use the opaque signed cursor returned by the previous response. It remains bound to the original customer and login-customer route, dates, grouping, supported filters/order, ordered scopes, fields, page size, and ledger snapshot. Never add Meta min_as_of. For scopes batches, use the single meta.next_continuation to continue the same ordered scopes together. | |
| response_mode | No | compact | |
| date_range_mode | No | explicit | |
| connection_context | No | ||
| query_contract_version | Yes | ||
| require_complete_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| meta | No | ||
| error | No | ||
| needs | No | ||
| reason | No | ||
| status | No | ||
| results | No | ||
| complete | No | ||
| retryable | No | ||
| error_code | No | ||
| next_action | No | ||
| support_ref | No | ||
| invalid_fields | No | ||
| rejected_paths | No | ||
| schema_version | No | ||
| origin_support_ref | No |