Skip to main content
Glama

memorybank_index_code

Indexes a code directory semantically for natural language queries. Provide absolute path and project ID to enable semantic search across the codebase.

Instructions

Indexa semánticamente código de un DIRECTORIO para búsquedas semánticas.

⚠️ IMPORTANTE:

  • El path debe ser una RUTA ABSOLUTA a un DIRECTORIO (no archivo)

  • Ejemplo correcto: "C:/workspaces/mi-proyecto/src/components"

  • Ejemplo incorrecto: "src/components" (ruta relativa)

  • Ejemplo incorrecto: "C:/workspaces/mi-proyecto/src/file.ts" (archivo, no directorio)

Si quieres indexar un archivo específico, usa el directorio que lo contiene.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRUTA ABSOLUTA al DIRECTORIO a indexar. Ejemplo: 'C:/workspaces/proyecto/src'. NO usar rutas relativas. NO usar rutas a archivos.
projectIdYesIdentificador único del proyecto (OBLIGATORIO). Debe coincidir con el definido en AGENTS.md
recursiveNoIndexar recursivamente subdirectorios (default: true)
forceReindexNoRARAMENTE NECESARIO. El sistema detecta cambios por hash automáticamente. Solo usa true si necesitas regenerar embeddings sin cambios en archivos.
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It only says 'indexes', implying a write operation, but fails to mention whether it is destructive, requires permissions, or how it affects existing indices. This is insufficient.

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 concise and well-structured, with a clear warning section and bullet-point examples. Every sentence adds value, though it could be slightly shorter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (indexing code) and lack of an output schema, the description should explain what happens after indexing (e.g., success message, status). It does not describe the return value or error conditions, leaving 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 baseline is 3. The main description adds value by emphasizing the absolute path requirement for the 'path' parameter, but does not enhance other parameters beyond the schema.

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 clearly states it indexes code from a directory for semantic searches. The verb 'index' and resource 'directory' are specific, but it does not explicitly differentiate from sibling tools like 'memorybank_search' (which uses the index) or 'memorybank_read_file'.

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?

The description provides explicit rules about the path being absolute and a directory, with correct and incorrect examples. It advises indexing a directory when targeting a specific file. However, it does not compare this tool to alternatives or state when not to use it.

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/gcorroto/memory-bank-mcp'

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