Query site records
query_site_recordsUse when the user asks who signed up, what was submitted, or wants to see the responses. Queries a collection's append-only records (newest-first by default). Filter with where (field/value equality), set order (asc|desc) and limit. Each record carries its server-stamped actor. Records carry created; filter by date yourself and page with limit. Scoped to a site you can edit.
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": {
"site_id": "<site_id>",
"collection": "<collection>"
},
"name": "query_site_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max records to return (capped at 200) | |
| order | No | Sort by creation time | |
| where | No | Equality filters on record fields | |
| site_id | Yes | The site that owns the collection | |
| collection | Yes | The collection to query | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). | |
| latest_per_key | No | Fold edit events to the newest record per logical `key` field (current state), instead of the full history |