list_catalogs
Retrieve all available catalogs from Databricks SQL to organize and access data resources.
Instructions
List all catalogs
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_catalogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- tools/query.py:39-42 (handler)The `list_catalogs` function is defined and decorated as an MCP tool, executing "SHOW CATALOGS" via `execute_sql`.
@mcp.tool def list_catalogs(ctx: Context) -> List[Dict[str, Any]]: """List all catalogs""" return execute_sql(ctx, "SHOW CATALOGS")