superset_database_get_catalogs
Retrieve all catalog names from a specified database in Apache Superset to organize and access data structures.
Instructions
Get all catalogs from a database
Makes a request to the /api/v1/database/{id}/catalogs/ endpoint to retrieve all catalogs available in the database.
Args: database_id: ID of the database
Returns: A dictionary with list of catalog names for databases that support catalogs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes |
Implementation Reference
- main.py:948-967 (handler)The handler function implementing the 'superset_database_get_catalogs' tool. It is registered via @mcp.tool(), requires authentication, handles errors, and makes a GET request to Superset's /api/v1/database/{database_id}/catalogs/ endpoint via the make_api_request helper to retrieve the list of catalogs.@mcp.tool() @requires_auth @handle_api_errors async def superset_database_get_catalogs( ctx: Context, database_id: int ) -> Dict[str, Any]: """ Get all catalogs from a database Makes a request to the /api/v1/database/{id}/catalogs/ endpoint to retrieve all catalogs available in the database. Args: database_id: ID of the database Returns: A dictionary with list of catalog names for databases that support catalogs """ return await make_api_request( ctx, "get", f"/api/v1/database/{database_id}/catalogs/"