Skip to main content
Glama

List database indexes

helix_list_database_indexes
Read-onlyIdempotent

List the indexes one database's queries can use now, as its writer reports them. A build still running or blocked isn't listed: check it with a GetIndexOperation read of the operation_id its DDL returned, through helix_execute_read_query, then retry or abort it with a RetryIndexOperation or AbortIndexOperation write.

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": {
      "database": "<database>"
    },
    "name": "helix_list_database_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYesDatabase reference in cluster:<id> or tenant:<id> form.

Output Schema

NameRequiredDescriptionDefault
indexesYes
databaseYes
observed_atYes
content_trustYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description correctly spends its words elsewhere: it discloses that the result is writer-reported and therefore reflects only completed builds, which is genuine behavioral context an agent could otherwise misread as a missing index. It stops short of describing ordering or pagination, but the output schema exists to carry return-shape details.

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?

Two sentences with the primary scope statement front-loaded and the caveat-plus-remedy second, so the agent reads the essential behavior first. The second sentence is dense with operation and tool names, which costs a little readability without adding fluff.

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

Completeness5/5

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

For a single-parameter read tool with full annotation coverage and an output schema, the description supplies the two things structure cannot: the semantic meaning of the result (usable indexes, writer-reported) and the handling of the excluded case. An agent has everything needed to call it correctly and to interpret a surprising absence.

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 a single required parameter with 100% schema description coverage, and the schema already documents the cluster:<id>/tenant:<id> reference form. The description adds no further meaning to that parameter, so the baseline 3 is appropriate for a case where the schema does the heavy lifting.

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 states a specific verb and resource ("List the indexes one database's queries can use") and narrows scope with "now, as its writer reports them," which tells an agent this is a currently-usable-index view rather than a raw catalog dump. It also distinguishes itself from read/query siblings by naming the GetIndexOperation read and helix_execute_read_query path used for in-flight builds.

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

Usage Guidelines5/5

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

It gives an explicit applicability condition (indexes available now) and an explicit exclusion (builds still running or blocked are not listed), then routes the agent to the correct alternative workflow for those cases via operation_id and the Retry/Abort write operations. Nothing is left to inference about when this tool is the wrong choice.

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.

Resources