Skip to main content
Glama
reflex-search

Reflex

Official

index_project

Rebuild or update the code search index after code changes to fix stale search results or missing files. Supports incremental updates and full rebuilds.

Instructions

Rebuild or update the code search index. Run this when:

  • After code changes (user edits, git operations, file creation/deletion)

  • Search results seem stale or missing new files

  • Empty/error results (may indicate missing/corrupt index)

Modes:

  • Incremental (default): Only re-indexes changed files (fast)

  • Full rebuild (force=true): Re-indexes everything (use if index seems corrupted)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce full rebuild (ignore incremental)
languagesNoLanguages to include (empty = all)
Behavior4/5

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

The description discloses the two operational modes and their effects (incremental only re-indexes changed files; full rebuild re-indexes everything). Lacking are potential side effects like temporary unavailability or resource consumption, but it adequately covers the main behavioral traits.

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?

The description is structured with a clear purpose, bullet-pointed usage scenarios, and bolded mode headings. It is somewhat verbose but front-loaded and well-organized, earning its length.

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?

Given the low complexity (2 parameters, no output schema), the description fully covers purpose, usage context, parameter semantics, and mode behavior. It is complete for effective tool selection and invocation.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, the description adds value by explaining the force parameter as 'Full rebuild (use if index seems corrupted)' and languages as 'Languages to include (empty = all)'. This goes beyond the schema descriptions, though could elaborate on language format.

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 clearly states the tool rebuilds or updates the code search index, with specific verb+resource. It distinguishes from siblings like search_code (search vs index rebuild) and check_index_status (status check vs rebuild).

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?

The description explicitly lists when to run (after code changes, stale results, empty/error results) and explains the two modes (incremental vs full rebuild) with clear use cases. This provides strong guidance for agent selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reflex-search/reflex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server