Skip to main content
Glama

Code index coverage

index_coverage
Read-onlyIdempotent

Reports what a pinned commit’s code index covers, including lexical and syntax status counts, skip reasons, symbols, call candidates, and optional per-file details.

Instructions

What the code index covers at a pinned commit: index generation, lexical and syntax status counts, skip reasons, symbols and call candidates per language. include_files=true adds per-path rows (filtered by path prefix and status, paged) with the reason a path was skipped or only partly parsed.

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": {
      "commit": "<commit>"
    },
    "name": "index_coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
commitYes
cursorNonext_cursor of the previous page of the same query.
path_prefixNoOnly paths with this repository-relative prefix, e.g. 'home-mixer/'.
include_filesNo
syntax_statusNo
lexical_statusNo

Output Schema

NameRequiredDescriptionDefault
dataNo
toolNo
errorNo
notesNo
commitNo
outcomeNo
warningsNo
truncatedNo
next_cursorNo
schema_versionNo
index_generationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: results are pinned to a commit, aggregate counts by default versus per-path rows when include_files=true, rows are filtered by prefix/status and paged, and skip reasons distinguish skipped from only-partly-parsed paths.

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 dense sentences with the aggregate-vs-per-path distinction front-loaded and no filler. Slightly heavy noun stacking ('lexical and syntax status counts, skip reasons, symbols and call candidates per language') but every clause carries information.

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?

An output schema exists, so return-value detail is rightly omitted, and annotations cover safety. However, for a 7-parameter tool with low schema coverage, the description should say more about the commit/limit parameters and, more importantly, when an agent should reach for coverage data instead of search_code or find_symbols.

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 only 29%, so the description carries more burden than usual. It does explain include_files (per-path rows), path_prefix (path filtering), status filtering and paging, but leaves commit, limit, and the two enum statuses largely to the schema, and does not clarify the difference between lexical_status and syntax_status or what 'partial' means in practice.

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?

The description names a specific resource and scope: coverage of the code index at a pinned commit, enumerating what is reported (generation, lexical/syntax status counts, skip reasons, symbols and call candidates per language). That is clearly distinct from query siblings like search_code or find_symbols, though no sibling is named explicitly to reinforce the contrast.

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?

Usage is only implied: the coverage/diagnostic framing suggests it is for checking what the index actually contains before trusting search or symbol results, but the description never states that, nor any when-not-to-use condition or alternative tool. The only explicit conditional is the include_files toggle, which is option guidance rather than tool selection.

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