Skip to main content
Glama

aidex_update

Update the AiDex code index for a specific file after editing to maintain accurate search results for AI assistants.

Instructions

Re-index a single file. Use after editing a file to update the AiDex index. If the file is new, it will be added to the index. If unchanged (same hash), no update is performed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to project with .aidex directory
fileYesRelative path to the file to update (e.g., "src/Core/Engine.cs")
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: it's a mutation tool (re-indexing/adding), handles new vs. existing files, and skips updates for unchanged files. However, it lacks details on permissions, rate limits, or error handling, which are important for a mutation tool.

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?

Three concise sentences with zero waste: first states the purpose, second gives usage guidelines, third clarifies behavior for edge cases. Each sentence earns its place, and the information is front-loaded.

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?

Given no annotations and no output schema, the description is moderately complete for a mutation tool. It covers purpose, usage, and some behavior, but lacks details on return values, error conditions, or integration with other tools like aidex_status. It's adequate but has clear gaps.

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 documents both parameters (path and file). The description adds no additional parameter semantics beyond what's in the schema, such as format examples or constraints. Baseline 3 is appropriate when 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 clearly states the specific action ('Re-index a single file') and resource ('AiDex index'), distinguishing it from siblings like aidex_scan (likely bulk indexing) or aidex_query (searching). It specifies the exact operation with conditions for new files and unchanged files.

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 states when to use ('Use after editing a file to update the AiDex index') and provides clear alternatives for different scenarios: if the file is new, it's added; if unchanged, no update occurs. This gives precise context for tool 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/CSCSoftware/AiDex'

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