Query Rows
query-rowsFilter, sort and count the ROWS of ONE table project (type: "table" in search-projects / get-project) by their column values — exact, structured queries that search-memo cannot do, e.g. "leads with status new and amount over 1000, newest first" or "deal amount per month". Read the columns and their descriptions with get-project first. where combines conditions with mode "and" / "or", and an entry can itself be a group of conditions — enough for "A and (B or C)". Operators: text — = != (case-insensitive) contains in empty not_empty; number and datetime — = != > >= < <= in empty not_empty; select — = != in empty not_empty; multiselect — = (has the option), != (lacks it), in (has any of them), empty, not_empty; checkbox — =. Datetime values are ISO 8601 (2026-10-13T14:30:00Z; a bare 2026-10-13 means its 00:00 UTC — use >= and < for a day or a range). Without aggregate it returns { columns, rows, total }: each row is { id, title, fields, tags, created_at, updated_at }, total counts every row under the filter. Page with limit / skip; read or edit a row by its id with get-memos / update-project-memo. With aggregate it returns { columns, groups, total } instead — counts, sums, averages, minimums and maximums over every row under the filter, optionally per value of up to two group_by columns (a datetime column groups by step: day, week, month or year, in timezone). A multiselect row counts once per option it has. Use it for any "how many / how much" question rather than paging through rows.
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": {
"project_id": "<project_id>"
},
"name": "query-rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Rows to skip for pagination | |
| sort | No | Row order, up to 3 columns. Default: newest first. | |
| tags | No | Tag ids (from search-tag) — only rows carrying ALL of them | |
| limit | No | Rows per page (1-90) | |
| where | No | The filter (max 20 conditions in all). Omit for every row. | |
| columns | No | Return only these columns in each row's `fields`. Omit for all. | |
| archived | No | true to query ONLY archived (deleted) rows | |
| group_by | No | With `aggregate`: one group per value of these columns (up to 2). Omit for a single total over all rows. | |
| timezone | No | IANA timezone for grouping dates by step, e.g. Europe/Berlin. Default UTC. | |
| aggregate | No | Compute these over the rows instead of returning them, e.g. [{ fn: "count" }, { fn: "sum", column: "Amount" }]. Results are keyed "count", "sum_Amount", …; up to 100 groups. | |
| project_id | Yes | Id of the table project (from search-projects). Required: one table per call. | |
| exclude_tags | No | Tag ids (from search-tag) — rows carrying ANY of them are left out |