Skip to main content
Glama

CockroachDB MCP Server

explain_query

Generate and analyze CockroachDB query execution plans to optimize SQL performance. Use EXPLAIN or EXPLAIN ANALYZE to understand and improve query efficiency.

Instructions

Return CockroachDB's statement plan for a preparable statement. You can use this information to optimize the query. If you run it with Analyze, it executes the SQL query and generates a statement plan with execution statistics.

Args: query (str): SQL query to explain. analyze (bool): If True, run EXPLAIN ANALYZE.

Returns: A success message or an error message.

Input Schema

NameRequiredDescriptionDefault
analyzeNo
queryYes

Input Schema (JSON Schema)

{ "properties": { "analyze": { "default": false, "title": "Analyze", "type": "boolean" }, "query": { "title": "Query", "type": "string" } }, "required": [ "query" ], "title": "explain_queryArguments", "type": "object" }

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/amineelkouhen/mcp-cockroachdb'

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