Search records
search_recordsFind records of one resource in a source's backup, whatever the system, highest source ID first, or largest first by order_by (ascending: true for smallest or oldest; empty values last). query matches a source ID as a prefix or a name holding every word; filters and order_by take the columns describe_resources lists. Answers the total that match and, when more remain, next_before_id to pass back as before_id (with order_by, raise limit instead). Each result's id is what get_record takes. For totals and counts use summarize_records instead of paging.
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": {
"resource": "<resource>"
},
"name": "search_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 25, at most 200. | |
| query | No | ||
| filters | No | Column filters, from the columns describe_resources lists for the resource: {"<column>": "value"}, {"<column>": ["one", "another"]}, {"<column>": {"contains": "acme"}}, {"<date column>": {"gte": "2026-04-01", "lte": "2026-06-30"}}, or "data.<Key>" for a top-level key of the record's document. Operators: eq, ne, in, not_in, gte, lte, contains, null. | |
| order_by | No | A number or date column describe_resources lists, to rank by. | |
| resource | Yes | A resource key from describe_resources, e.g. invoices. | |
| ascending | No | ||
| before_id | No | The next_before_id a previous page answered. | |
| connection_id | No | Omit when only one of the company's sources holds the resource; list_connections names them. | |
| modified_since | No | ISO 8601 time; only records the source changed since then. |