Skip to main content
Glama

verify_index

Measure a candidate index on a disposable clone, comparing read savings to write costs and checking for regressions, to produce an evidence-based adoption verdict.

Instructions

MEASURE a candidate index on a disposable data-bearing clone and return a verdict. This is the only tool that produces evidence: real CREATE INDEX, EXPLAIN (ANALYZE, BUFFERS) with grounded parameters before/after, a measured write-cost micro-benchmark, and a regression check across the top production queries. Verdict = read savings vs write cost at observed traffic rates, REJECT on any top-query regression.

Needs a clone provider on the profile (clone_provider = "docker") and Docker running; the clone is destroyed afterwards, always. Takes tens of seconds to minutes depending on database size. Fails loudly when the profile cannot measure — there is no degraded verdict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlsNo
profileYes
queryidsNo
index_defYes
regression_top_nNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It explicitly states that the clone is destroyed afterwards always, the operation takes tens of seconds to minutes, and it fails loudly when measurement is impossible. This is substantial, honest transparency beyond basic mutation/read hints.

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 front-loaded with the core purpose and verdict, then follows with evidence details and operational requirements. Every sentence delivers relevant information—purpose, evidence types, prerequisites, execution time, and failure behavior—with no wasteful filler.

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?

For a complex tool with no annotations, the description covers prerequisites, execution time, side effects (clone destruction), failure modes, and verdict logic. An output schema exists, so return values need not be described. However, the optional parameters sqls, queryids, and regression_top_n are not explained in relation to the tool's logic, leaving some invocation ambiguity.

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?

Schema description coverage is 0%, so the description must compensate, but it does not clearly explain parameter meanings. Terms like 'candidate index' and 'top production queries' only loosely map to index_def and queryids/sqls; regression_top_n and profile are not explicitly tied to their parameters. The schema names provide some clues, but the description adds little direct parameter guidance.

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 opens with 'MEASURE a candidate index on a disposable data-bearing clone and return a verdict,' which identifies a specific action, resource, and outcome. It distinguishes itself from siblings by stating 'This is the only tool that produces evidence' and enumerating the exact evidence produced.

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

Usage Guidelines4/5

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

The description clearly states when this tool should be used (when evidence is needed) and calls out prerequisites (clone_provider='docker', Docker running). It implicitly differentiates from sibling tools by claiming exclusivity for evidence production, though it does not explicitly cite alternative tools or when-not-to-use conditions.

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/Svaca33/pgverdict'

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