Skip to main content
Glama

deregister_directory

Stop tracking a directory and optionally retain its indexed data or purge it from the vector store.

Instructions

Use to stop tracking a directory and optionally retain indexed data.

Use to stop tracking a directory — keep its indexed data with keep_data=True, or purge it.

Returns the removed-file count synchronously; the chunk purge runs as a background task. An unknown collection surfaces as an error, not a removal confirmation.

Args: collection: Collection name to deregister. keep_data: If true, keep indexed data in LanceDB.

Returns: The removed registry-file count and the accepted chunk-purge task ID; the purge may still be running. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.

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": {
      "collection": "<collection>"
    },
    "name": "deregister_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
keep_dataNo
collectionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the file removal is synchronous while the chunk purge runs as a background task, that the return includes a purge task ID that may still be running, and that an unknown collection returns an error instead of a removal confirmation. It also specifies the error text format and that connection failures include recovery guidance. It stops short of warning that the default path irreversibly purges indexed data, which is the highest-stakes behavior here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The intent is front-loaded, but the first two sentences restate the same fact ('stop tracking a directory') almost verbatim. The Returns block also re-explains return values that the existing output schema already carries, adding length without proportional value.

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

Completeness4/5

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

For a two-parameter mutation with no annotations, the definition covers argument meaning, sync versus background execution, and the shape of failure responses, and an output schema covers returns. The main remaining gap is that nothing states the default behavior is destructive to indexed chunks, which is the fact an agent most needs before invoking it.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: 'collection' is identified as the collection name to deregister and 'keep_data' as preserving indexed data in LanceDB, with the purge branch implied when it is false. It does not say how the collection name is resolved (path, alias, or registry key) or what happens on an ambiguous name.

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 opening line states a specific verb and resource: stop tracking a directory, with the option to retain its indexed data. That is clear enough to separate it from register_directory by inversion, though it never names the sibling or an alternative explicitly.

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?

It describes the two modes of use (keep_data=True to retain, otherwise purge), which is really parameter guidance rather than when-to-use guidance. There is no statement about when deregistration is the right call versus delete, register_directory, or sync_all_registrations, and no prerequisites such as the collection having to exist.

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