sample
Fetch the first rows of a Socrata dataset to preview real values. Useful for quick data inspection before full analysis.
Instructions
Fetch the first n rows of a dataset (n capped at 100).
Args: domain: Portal hostname, e.g. "data.seattle.gov". dataset_id: Socrata 4x4 id, e.g. "tazs-3rd5". n: Number of rows (default 10, max 100).
Returns: {rows, row_count, note}. Rows are in :id order — a peek at real values, not a random sample.
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": {
"domain": "<domain>",
"dataset_id": "<dataset_id>"
},
"name": "sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| domain | Yes | ||
| dataset_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||