Skip to main content
Glama
DB Health MCP
by ekss1121

missing_indexes

Identify tables read mostly by full or sequential scans, revealing unindexed access patterns and guiding SQL fixes.

Instructions

Find tables that are read mostly by full/sequential scans — the classic symptom of a missing index.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "missing_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault
database_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and mostly does not. It never confirms this is a read-only inspection, says nothing about required permissions or connection handling, and gives no hint about the shape or volume of results returned.

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 the diagnostic payoff placed immediately after the definition; no filler. It is efficient, though its brevity is more a function of omission than of tight editing.

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

Completeness2/5

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

With no annotations, no output schema, and an undocumented parameter, an agent cannot tell what the results look like or how to interpret them. For a diagnostic tool whose entire value is the returned table list, that leaves a substantial gap.

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

Parameters2/5

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

There is one parameter (database_url) with 0% schema description coverage, and the description never mentions it — not its format, whether it overrides a default connection, or what happens when it is null. The description therefore fails to compensate for the schema gap.

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?

Names a specific verb and resource — finding tables dominated by full/sequential scans — and adds the diagnostic intent (missing index symptom). That framing implicitly separates it from index_usage and slow_queries, though no sibling is named explicitly.

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?

The 'classic symptom of a missing index' phrasing implies when to reach for this tool (index-tuning investigations), but there is no explicit when-not guidance, no prerequisites, and no named alternative among the siblings.

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