Skip to main content
Glama
DB Health MCP
by ekss1121

index_usage

Identify indexes never used for scans that still add write overhead and disk cost, excluding primary and unique indexes, to target cleanup candidates.

Instructions

Find indexes that have never been used for a scan — they still cost write overhead and disk. Primary-key and unique indexes are excluded.

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": "index_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
database_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses the primary-key/unique-index exclusion, but omits critical context for a 'never used' claim: results depend on statistics collection since the last stats reset, so an index may show as unused merely because the window is short. It also says nothing about permissions needed on database_url or the shape of the response.

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

Conciseness5/5

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

Two short clauses, front-loaded with the result the agent gets and followed by the cost rationale and the exclusion. No filler, nothing repeated.

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 read-only diagnostic with no output schema and one optional parameter, the description covers what is returned and what is filtered out. However, it omits the statistics-window caveat that materially affects interpretation of 'never used', which is the single most important thing an agent needs in order to trust the output.

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?

There is one parameter, database_url, with 0% schema description coverage, and the description never mentions it. The parameter name is largely self-explanatory, which keeps this from scoring lower, but no meaning is added beyond the schema — no note on default behavior when it is omitted or which database it targets.

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?

States a specific verb and resource — 'Find indexes that have never been used for a scan' — which is clearly distinct from the sibling 'missing_indexes' by scoping the result to unused rather than absent indexes. It also names an explicit exclusion (primary-key and unique indexes), so an agent can predict the result set. It stops short of naming a sibling it should be preferred over, so it is not a 5.

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 rationale ('they still cost write overhead and disk') implies the use case is cleanup/audit work, but there is no explicit when-to-use statement, no when-not, and no named alternative among db_overview, missing_indexes, slow_queries, or table_bloat. Usage is inferable but left to the agent.

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