Skip to main content
Glama
KaryawanSurga

mcp-sqlite-explorer

Explain SQLite Query Execution Plan

sqlite_explain_query
Read-only

Inspect SQLite query execution plans to see index usage, table scans, and optimization steps before tuning or debugging queries.

Instructions

Run EXPLAIN QUERY PLAN on a query to inspect SQLite index usage, table scans, and optimization steps.

Input Schema

NameRequiredDescriptionDefault
queryYesSQL query to explain
db_pathNoPath to SQLite database file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds useful context about what the plan reveals, but does not state that the query is not actually executed or what the response shape looks like — relevant since there is no output schema.

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?

A single front-loaded sentence with no wasted words. It is efficiently sized, though it errs slightly toward terse for a tool with no output schema.

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?

For a simple two-parameter read-only tool this is close to sufficient, but the absence of an output schema means the description could say more about what the plan output contains or its format. It also doesn't clarify whether the query is executed or merely planned.

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?

Schema coverage is 100% and both parameters (query, db_path) are documented in the schema. The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Run EXPLAIN QUERY PLAN on a query') and names the diagnostic output (index usage, table scans, optimization steps). This clearly separates it from data-fetching siblings such as sqlite_read_query or sqlite_list_tables.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is for query-plan inspection, but the description never says when to prefer it over sqlite_read_query or when-not to use it (e.g., it does not return rows). No alternatives or prerequisites are named.

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