sql_count_and_sample
Retrieve row count and a data sample from a table to understand what data exists without executing a full query.
Instructions
Get the row count and a sample of rows from a table. Useful for quickly understanding what data exists without writing a full query.
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": "sql_count_and_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| where | No | Optional WHERE clause to filter (e.g. 'Status = 1') | |
| sampleSize | No | Number of sample rows to show (default: 10) |