Skip to main content
Glama

reindex_project

Rebuilds a project's search index from scratch by deleting all indexed data and re-syncing, useful when the index is corrupted or embeddings need regenerating.

Instructions

Force a full reindex: delete all indexed data for a project and rebuild from scratch.

Use when the index is corrupted, embeddings need regenerating, or you want a clean slate without manually removing and re-syncing.

Input:

  • project (str, optional): project name — used to look up the directory from stored metadata

  • project_dir (str, optional): explicit path to project root — takes precedence over project name

  • If both are empty, defaults to the current working directory

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": "reindex_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
project_dirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the critical destructive trait: all indexed data for the project is deleted and rebuilt, which is exactly what an agent must know before invoking. However, it says nothing about cost or duration (a full rebuild implies re-embedding expense), whether the operation is interruptible, or what state the index is left in if it fails midway.

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?

Front-loaded with the destructive action, then usage triggers, then a clearly delimited Input block. No sentence is redundant; the parameter notes are terse and each one changes how the call should be formed.

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?

No output schema or annotations exist, so the description must stand alone, and it covers purpose, triggers, precedence, and the empty-input default. The remaining gap is operational expectations for a long-running destructive rebuild — expected duration, failure behavior, and whether a re-sync is needed afterward.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 do all the work — and it does. It explains that 'project' is a name resolved through stored metadata, that 'project_dir' is an explicit path taking precedence, and that both empty defaults to the current working directory, which is the full resolution order an agent needs.

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 opens with a specific verb and resource: 'Force a full reindex: delete all indexed data for a project and rebuild from scratch.' The delete-and-rebuild framing plus the 'clean slate without manually removing and re-syncing' clause implicitly separates it from a remove/sync workflow, but it never names a sibling (e.g., sync_skb) that an agent might otherwise reach for.

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?

It gives three concrete triggering conditions — corrupted index, embeddings need regenerating, or wanting a clean slate without manual remove/re-sync — which is strong positive guidance. It stops short of exclusions, so an agent gets no explicit rule for when a plain sync is the cheaper correct choice.

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