Skip to main content
Glama

create_indexes

Design indexes for a table based on query patterns (B-tree, GIN, partial, composite)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>",
      "queryPatterns": "<queryPatterns>",
      "database": "<database>"
    },
    "name": "create_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name
databaseYesTarget database
queryPatternsYesCommon WHERE / ORDER BY patterns
withConcurrentNoUse CONCURRENTLY for PostgreSQL (zero-downtime)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations the description carries the full burden, and it leaves a serious ambiguity: the tool is named create_indexes but the description says 'design', so an agent cannot tell whether DDL is executed against the target database or merely recommended. Nothing is said about required privileges, reversibility, or what happens with withConcurrent (zero-downtime DDL) — that flag only makes sense if statements are generated or run, which the description never clarifies.

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?

One front-loaded sentence with the verb and resource first and the technique list compressed into a parenthetical. Nothing is wasted, though the parenthetical is slightly misleading given no index-type parameter exists.

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 moderate-complexity design tool with no annotations and no output schema, the description should state at least the shape of the result (recommendations vs. executable DDL) and whether anything is applied to the database. Those gaps are real but the inputs are fully self-documenting, so the definition is usable but incomplete.

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 description coverage is 100%, so the four parameters (table, database enum, queryPatterns, withConcurrent) are already documented; baseline 3 applies. The description's added value is only the index-type taxonomy, and notably there is no parameter to select an index type, so that parenthetical does not map to any input the agent can set.

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?

Specific verb + resource + technique set: 'Design indexes for a table based on query patterns (B-tree, GIN, partial, composite)'. An agent knows exactly what artifact is produced. It does not, however, distinguish itself from adjacent design tools such as design_partition_strategy, design_sharding_strategy, or explain_query_plan.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites (e.g. needs an existing table/known query workload), and no pointer to alternatives like explain_query_plan for validating an index choice. The only usage signal is the implied 'have query patterns in hand' from the required parameter.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.