Skip to main content
Glama

Index a project code graph

memory_graph_index

Build or refresh the light code graph of a project folder on the memory host (definitions and imports of JS/TS/Python files; reads only folders allowed to SteerLatch, never runs code).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>",
      "root": "<root>"
    },
    "name": "memory_graph_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootYes
projectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the mutating-but-safe profile is known. The description adds real value beyond that: the read scope is restricted to folders allowed to SteerLatch and code is never executed, which is exactly the kind of side-effect disclosure annotations cannot express. It stops short of saying whether a refresh replaces or merges existing graph data.

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?

One sentence, front-loaded with the action and resource; the parenthetical efficiently packs the extracted artifact types and the two safety constraints. It is dense but every clause carries information, so nothing is wasted.

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?

For a two-parameter indexing tool with no output schema, the definition covers scope, safety, and artifact types, which is most of what an agent needs. It leaves out re-index behavior (incremental vs. full rebuild), approximate cost on large trees, and the meaning of the required parameters.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden for two required parameters. It only implies that "root" is a folder and "project" identifies the project, but never clarifies whether project is a name, ID, or path-relative label, nor what the relationship between project and root is or what format root takes.

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 uses a specific verb pair ("Build or refresh") with a concrete resource ("light code graph of a project folder on the memory host") and even enumerates the extracted content (definitions and imports of JS/TS/Python files). It does not explicitly distinguish itself from the sibling memory_graph_query, which is the natural confusion point, so it falls short of a 5.

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?

"Build or refresh" implies the trigger is first-time indexing or staleness, which gives an agent an implied when-to-use. There is no explicit when-not, no mention of the query sibling as the alternative for reading the graph, and no statement about prerequisites or cost of a refresh.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources