query_as_of
Run a read-only GQL query against the graph as it existed at a past time, using retained history to inspect earlier states.
Instructions
Run one reading GQL statement against the graph as it was at as_of (time travel).
Needs a server that keeps history (GRAFEO_HISTORY_RETENTION). Same rules and result as execute_gql. Example: query_as_of("MATCH (p:Person) RETURN p.name, p.age", "3600")
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>",
"as_of": "<as_of>"
},
"name": "query_as_of"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | Seconds ago ("300") or an ISO-8601 datetime with its offset ("2026-11-09T10:00:00+00:00"). | |
| limit | No | Most rows to return. | |
| query | Yes | One reading GQL statement. | |
| params | No | Values for $name in the query. |