Skip to main content
Glama
surgical-context-mcp

surgical-context-mcp

by erayerturk

reindex_project

Incrementally update the code graph SQLite index and return diagnostics, so AI agents can query fresh AST-aware context without full-file reads.

Instructions

Incrementally update .code_graph.sqlite and return index diagnostics.

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
forceNo
project_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden. "Incrementally" usefully signals it is not a full rebuild, and it notes diagnostics are returned, but it does not say what `force` changes, whether existing graph data can be lost, how long it takes, or what permissions or disk state are required for a tool that writes a SQLite file.

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?

A single front-loaded sentence with no filler; the main action leads. It is lean to a fault, though, since brevity here comes at the cost of the missing guidance rather than through efficient phrasing.

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?

An output schema exists, so return values need no explanation, but for a write-side tool with zero annotation coverage and two undocumented parameters, the description leaves too much unspecified. An agent cannot determine whether `force` is safe or which path to pass.

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?

Two parameters at 0% schema coverage, so the description must compensate and largely does not. `force` and `project_path` are never explained; only the word "incrementally" hints that `force` might trigger a non-incremental rebuild, which is inference rather than stated meaning.

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?

States a specific verb plus resource: incrementally update `.code_graph.sqlite` and return diagnostics. The action is unambiguous and clearly distinct from the read-only siblings (search_symbols, find_flow, get_edit_context), though the description never names or contrasts with them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to call this versus simply reading the graph, nor when reindexing is necessary (e.g. after file changes). Nothing tells the agent when NOT to call it, or what the relationship is to the other symbol/impact tools.

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