superset_database_schemas
Retrieve all schema names from a specific database in Apache Superset to understand database structure and organize data for analysis.
Instructions
Get schemas for a specific database
Makes a request to the /api/v1/database/{id}/schemas/ endpoint to retrieve all schemas available in the database.
Args: database_id: ID of the database
Returns: A dictionary with list of schema names
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes |
Implementation Reference
- main.py:856-874 (handler)The handler function implementing the 'superset_database_schemas' tool. It requires authentication and handles API errors. The function makes a GET request to the Superset API endpoint /api/v1/database/{database_id}/schemas/ using the make_api_request helper to retrieve the list of schemas for the specified database.@mcp.tool() @requires_auth @handle_api_errors async def superset_database_schemas(ctx: Context, database_id: int) -> Dict[str, Any]: """ Get schemas for a specific database Makes a request to the /api/v1/database/{id}/schemas/ endpoint to retrieve all schemas available in the database. Args: database_id: ID of the database Returns: A dictionary with list of schema names """ return await make_api_request( ctx, "get", f"/api/v1/database/{database_id}/schemas/" )