describe_schema
Retrieves database tables, columns, keys, and sample rows so you can write SQL with accurate names. Call before writing queries to avoid schema mistakes.
Instructions
Return the tables, columns, keys, and a few sample rows for a database. Call this before writing SQL so you use real table and column names. Pass a table to inspect just one, or sample_rows=0 to omit the samples.
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": {
"database": "<database>"
},
"name": "describe_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | ||
| database | Yes | ||
| sample_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes | ||
| database | Yes |