list_schemas
List all schemas in a database with their table and view counts, excluding system schemas, to quickly assess database structure.
Instructions
List all schemas in the connected database.
Returns schemas with table and view counts, sorted by table count descending. Excludes system schemas (sys, INFORMATION_SCHEMA, guest).
Args: connection_id: Connection ID from connect_database catalog: Optional Databricks catalog name. Overrides the connection's default catalog. If omitted on a Databricks connection, the connection's configured default catalog is used (SHOW SCHEMAS IN). Rejected on non-Databricks dialects (raises an error).
Returns: TOON-encoded string with schema list:
status: "success" | "error"
total_schemas: int // on success only
schemas: list // on success only
schema_name: string
table_count: int
view_count: int
error_message: string // on error onlyError conditions: - Invalid connection_id: returns status "error" with error_message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalog | No | ||
| connection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |