get_rows
Retrieve filtered rows from tabular datasets using SQL-parameterized filters, column projection, and pagination to reduce tokens and isolate the data you need.
Instructions
Filtered row retrieval via structured filters. All filters are SQL-parameterized (no injection). Operators: eq, neq, gt, gte, lt, lte, contains, in, is_null, between. Use columns=[] to project — reduces tokens significantly on wide tables. Prefer aggregate() for summaries over paginating through rows. Rows come back as arrays under a 'fields' header (row_format='objects' for dicts). Returns at most limit rows (default 50); page with offset instead of raising it.
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": {
"dataset": "<dataset>"
},
"name": "get_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows returned (default 50, hard cap 500) | |
| offset | No | Pagination offset (default 0) | |
| redact | No | Scrub PII / credentials (emails, SSNs, Luhn-valid credit cards, JWTs, API keys, PEM blocks, AWS keys, GitHub/Slack tokens) from row cells before return (default true). Numeric cells are never altered. _meta.redaction reports cells_redacted + per-pattern counts. | |
| columns | No | Column projection — reduces tokens (default: all) | |
| dataset | Yes | Dataset identifier | |
| filters | No | Filter conditions (ANDed). E.g. [{"column": "AREA NAME", "op": "eq", "value": "Hollywood"}] | |
| order_by | No | Column to sort by | |
| order_dir | No | Sort direction (default 'asc') | asc |
| row_format | No | arrays (default): 'fields' once, then one array per row. objects: one dict per row. | arrays |
| redact_patterns | No | Additional Python regex patterns to layer on top of the built-in set. Invalid patterns are silently skipped (reported in _meta.redaction.invalid_custom_patterns). | |
| redact_skip_columns | No | Column names to exempt from redaction (e.g. an `email_hashed` column where the email pattern would false-positive). |