Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_sqllab_export_query_results

Export SQL query results to CSV format from Apache Superset for data analysis and sharing.

Instructions

Export the results of a SQL query to CSV

Makes a request to the /api/v1/sqllab/export/{client_id} endpoint to download query results in CSV format.

Args: client_id: Client ID of the query

Returns: A dictionary with the exported data or error information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool makes an API request to download results, which implies a read operation, but doesn't clarify if this requires specific permissions, rate limits, or side effects (e.g., if it consumes query results or leaves them intact). It mentions returns 'a dictionary with the exported data or error information', adding some context on output behavior, but lacks details on error conditions or data format beyond CSV.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and appropriately sized. It starts with a clear purpose statement, followed by implementation details and parameter/return documentation. Each sentence adds value without redundancy. Minor improvement could be made by integrating the 'Args' and 'Returns' more seamlessly, but overall it's efficient and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (exporting query results), no annotations, no output schema, and low schema coverage, the description is partially complete. It covers the basic purpose, parameter, and return type, but lacks context on prerequisites (e.g., needing an executed query), error handling, or comparison to siblings. For a tool that interacts with query results, more guidance on workflow integration would be beneficial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, but the description includes an 'Args' section that documents the single parameter 'client_id' as 'Client ID of the query'. This adds meaningful semantics beyond the schema's basic type information. However, it doesn't explain how to obtain or validate the client_id, or what format it expects, leaving some gaps in parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Export the results of a SQL query to CSV'. It specifies the verb ('Export') and resource ('results of a SQL query'), and mentions the output format ('CSV'). However, it doesn't explicitly differentiate from sibling tools like 'superset_sqllab_get_results' which might retrieve results without exporting, leaving some ambiguity about when to choose this specific export tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., that a query must already be executed with a client_id), nor does it compare to siblings like 'superset_sqllab_get_results' for non-export retrieval. The only implied context is the need for a client_id, but this is covered in parameters, not usage scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aptro/superset-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server