Skip to main content
Glama

missing_index_hints

Identify tables with high sequential scans and low index scans to flag missing index opportunities.

Instructions

[READ] Tables with heavy sequential scans and few index scans (index hints).

Args:
    min_seq_scan: Minimum cumulative sequential scans to flag (default 1000).
    min_live_tup: Minimum live tuples for a table to qualify (default 10000).
    target: Target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
min_live_tupNo
min_seq_scanNo
Behavior3/5

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

The description labels the tool as '[READ]' indicating no destructive action, but no annotations exist. It lacks details on potential performance impact or queries against system catalogs. With no annotations, the description provides minimal behavioral context beyond safety.

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?

The description is concise with a single-line purpose and a clear list of arguments. Every sentence adds value, and the structure is front-loaded with the primary function.

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

Completeness4/5

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

Given the tool's simplicity (read operation, 3 parameters) and absence of output schema, the description covers the core functionality and parameter semantics. However, it could mention the output format or potential caveats.

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

Parameters5/5

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

Despite 0% schema description coverage, the description explains all three parameters ('min_seq_scan', 'min_live_tup', 'target') with meaningful context, such as minimum sequential scans (default 1000) and live tuples (default 10000), fully compensating for the schema's lack of descriptions.

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?

The description clearly states 'Tables with heavy sequential scans and few index scans (index hints)', specifying the verb 'read' and the resource 'tables'. It distinguishes from sibling tools like 'unused_indexes' which focus on existing indexes.

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 description implies use for finding missing indexes but does not explicitly state when to use this tool over alternatives like 'unused_indexes' or 'index_bloat'. No exclusions or contextual guidance provided.

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

Install Server

Other Tools

Latest Blog Posts

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/AIops-tools/Postgres-AIops'

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