Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Build file index

build_index
Idempotent

Records every entry under a folder into the offline index used by search queries; run it before searching or to refresh the index when files change.

Instructions

Record every entry under a folder in the offline index that search_index reads. Use when: before search_index, or to refresh it. Instead: search_index to query; walk_tree for the live state. Requires: --mcp-tools index. Behavior: writes index rows, never files; reads listings only. prune=true drops rows of files now gone. Linked folders are not followed; folders deeper than 50 levels go to unreadable. A cancelled run keeps its rows. Time limit: 30 min. Returns: {path, backend_id, recursive, indexed, pruned, truncated (max_files), complete, unreadable (folder paths)}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "build_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder to index (absolute, or relative to the MCP root). Default on the local backend: the MCP root; other backends need it.
pruneNoAfterwards drop index rows below the folder whose file is gone.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
max_filesNoVisit at most this many entries (files and folders together); reaching it stops the walk and sets truncated=true. Default 1,000,000 on the local backend, 100,000 on a remote one.
recursiveNoAlso index the subfolders (false: the folder's own entries only).

Output Schema

NameRequiredDescriptionDefault
pathYes
prunedYes
indexedYes
completeYes
recursiveYes
truncatedYes
backend_idYes
unreadableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: writes index rows but never files, reads listings only, prune semantics, symlink/linked-folder non-traversal, the 50-level depth cap landing in 'unreadable', cancelled runs keeping their rows, and a 30-minute time limit. The --mcp-tools index prerequisite is a genuinely non-obvious operational constraint. It stops just short of 5 because idempotency (declared in annotations) could have been reconciled explicitly with prune's row-dropping side effect.

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?

Telegraphic but labeled structure ('Use when', 'Instead', 'Requires', 'Behavior', 'Returns') with the core purpose front-loaded and zero filler. Every clause carries either a constraint or a routing decision.

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 mutation-ish indexing tool with an output schema, an agent has everything it needs: prerequisite flag, safety profile beyond annotations, limits, cancellation behavior, and a return summary. No unexplained gaps relative to the tool's complexity.

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 schema already explains path, prune, backend, path_b64, max_files, and recursive in comparable detail. The description's lines on prune and max_files largely restate the schema rather than adding syntax or edge-case meaning, so this sits at the baseline for a fully documented schema.

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?

States a specific verb and resource — 'Record every entry under a folder in the offline index' — and immediately ties it to the consumer ('that search_index reads'), which disambiguates it from every listing sibling. An agent knows exactly what artifact this produces without opening the schema.

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?

Explicitly frames ordering ('before search_index, or to refresh it') and names both alternatives with the condition that selects them: search_index to query, walk_tree for live state. That is the full when/when-not/alternative triad.

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