sample_rows
Read rows from allowlisted tables with simple filters (eq, lt, lte, gt, gte, contains) and a configurable row limit.
Instructions
Read rows from one allowlisted table with simple filters (eq/lt/lte/gt/gte/contains) and a limit. Prefer this over run_query for straightforward lookups; use run_query for joins and aggregations.
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": {
"table": "<table>"
},
"name": "sample_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Row cap; values above the policy cap are clamped to it | |
| table | Yes | Qualified table name, e.g. "public.orders" | |
| filters | No | Simple equality/range/contains filters, ANDed together |