Skip to main content
Glama

locus_forget

Removes a document from the local corpus, preventing AI agents from retrieving its indexed passages during search.

Instructions

Remove a document from the corpus.

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": {
      "doc_path": "<doc_path>"
    },
    "name": "locus_forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_pathYes
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

C2.6/5.0
Behavior2/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 of behavioral disclosure. It does not say whether removal is irreversible, whether it deletes only the index entry or also the source file, whether it affects derived chunks/facts/aliases, or whether it requires confirmation – all critical for a destructive tool.

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 short, front-loaded sentence with no filler – structurally clean. It is underspecified rather than verbose, so brevity is not penalized heavily here, but it leaves no room for the missing usage and behavior detail.

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, zero-annotation, zero-schema-description, no-output-schema tool with two parameters, the definition is far too thin. An agent cannot know what gets destroyed, where, or how to target the right store.

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

Parameters1/5

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

Schema description coverage is 0% for both parameters. The description only vaguely maps to doc_path ("a document") and says nothing about store_path, whose purpose (which corpus/store instance, default ".locus") is entirely unexplained. With no schema descriptions to lean on, the description has to compensate and does not.

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 names a specific verb ("Remove") and resource ("a document from the corpus"), so an agent knows it deletes a document from the indexed corpus rather than from a filesystem generally. However, it does not distinguish itself from near-neighbors such as locus_mark_irrelevant or locus_clear_cache, which an agent may confuse with removal.

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?

There is no statement of when to use this tool instead of the softer alternatives in the sibling set (marking irrelevant, clearing cache, re-ingesting). The agent must guess whether "forget" is permanent deletion or a filtering operation, and whether it should be preferred over marking irrelevant.

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