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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | ||
| database | Yes | ||
| sample_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes | ||
| database | Yes |