One field across every record in a dataset
compare_fieldCompare one field across all records in a dataset in a single call — "what is the retainage cap in each state?", "which releases are out of support?", "which jurisdictions require an ASME S stamp?". Returns one row per record with the value, its source URL and verbatim source quote, and how that value is evidenced: quote_confirmed (the value was checked against the quote), derived_by_us (computed by referencesource, not stated by the source) or stored_not_quote_confirmed. Records that do not carry the field are counted and listed in records_missing_the_field, never dropped — their absence from the rows is not a zero. Omit field to see which fields the dataset has and how many records carry each.
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_slug": "<dataset_slug>"
},
"name": "compare_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Row order. Default as_published. `value` is a LEXICAL sort and says so. A numeric sort is refused, with the offending values named, unless every compared value is a single number — these fields hold text like "10%; 5% after the contract is 50% complete", and ordering that numerically would invent a ranking. | |
| field | No | The field to compare, e.g. "public_cap_pct". Omit it to get the dataset's field names with a record count and one example value for each, which costs one call instead of a guess. | |
| contains | No | Optional: return only rows whose value contains this text, case-insensitive — e.g. "no statutory cap". The count of rows the filter removed is always stated. | |
| dataset_slug | Yes | Dataset slug from list_datasets, e.g. "construction-retainage-limits-by-state". | |
| include_quotes | No | Include each row's verbatim source quote. True by default: the quote is what makes the value checkable. Set false for a smaller answer when you only need the shape of the column. |