superset_database_get_function_names
Retrieve all SQL function names supported by a specific database in Apache Superset to understand available query capabilities and ensure compatibility.
Instructions
Get function names supported by a database
Makes a request to the /api/v1/database/{id}/function_names/ endpoint to retrieve all SQL functions supported by the database.
Args: database_id: ID of the database
Returns: A dictionary with list of supported function names
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes |
Implementation Reference
- main.py:994-1015 (handler)The handler function for the 'superset_database_get_function_names' MCP tool. It is registered via @mcp.tool(), requires authentication, handles errors, and proxies a GET request to Superset's API to fetch supported function names for the specified database.@mcp.tool() @requires_auth @handle_api_errors async def superset_database_get_function_names( ctx: Context, database_id: int ) -> Dict[str, Any]: """ Get function names supported by a database Makes a request to the /api/v1/database/{id}/function_names/ endpoint to retrieve all SQL functions supported by the database. Args: database_id: ID of the database Returns: A dictionary with list of supported function names """ return await make_api_request( ctx, "get", f"/api/v1/database/{database_id}/function_names/" )