Skip to content

[Feature] Support query_tags in execute_sql / Statement Execution API #193

@yogesh-dbx

Description

@yogesh-dbx

able to set query tags when executing SQL via the MCP tools. Query tags are supported by the Databricks Statement Execution API (query_tags parameter) and help with cost attribution, debugging, and governance.

Current behavior
The execute_sql function and underlying SQLExecutor do not accept or pass query_tags to the Statement Execution API.

Proposed behavior
Add a query_tags parameter (e.g. Optional[Dict[str, str]] = None) to execute_sql.
Pass query_tags through to SQLExecutor.execute() and on to the Statement Execution API.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmcp-serverRelated to the MCP server.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions