Skip to main content
Glama

locus_sync

Wipes and rebuilds the searchable corpus and knowledge graph from a specified directory, keeping local file indexes current after bulk changes.

Instructions

Full reindex: wipe and rebuild corpus + KG from a directory.

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": {
      "path": "<path>"
    },
    "name": "locus_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
patternNo**/*.md
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the crucial destructive trait ('wipe and rebuild'), which is the single most important behavioral fact for a no-annotation mutation tool, but it omits reversibility, what exactly gets deleted (annotations, aliases, custom nodes added via siblings), or whether KB state survives.

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 the destructive action stated first and the scope second. Nothing is wasted, though the extreme terseness leaves gaps that a slightly longer description could have filled.

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?

For a destructive full-reindex tool with no annotations, no output schema, and 0% schema coverage, the description is too thin. It does not say how long a rebuild takes, what happens to KG facts/aliases/annotations that siblings like locus_add_node or locus_add_alias created, or what the result reports.

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% across three parameters. The description clarifies only 'path' ('from a directory'); 'pattern' (default **/*.md) and 'store_path' (default .locus) are never mentioned, so two of three parameters have no meaning anywhere.

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 concrete verb and resource: 'Full reindex' that 'wipe[s] and rebuild[s] corpus + KG from a directory.' An agent can tell this is a whole-corpus rebuild rather than an incremental operation, but the description never names the sibling (locus_index) it contrasts with, so sibling differentiation is left implicit.

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 word 'Full' implicitly frames this against an incremental alternative and 'from a directory' suggests the ingestion source, but there is no explicit when-to-use/when-not-to-use guidance, no prerequisites, and no named alternative such as locus_index. Usage must be inferred.

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