Skip to main content
Glama

deregister_directory

Remove a directory registration by collection name, optionally preserving data in LanceDB; get the removed-file count immediately while background purge runs.

Instructions

Remove a directory registration.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keep_dataNo
collectionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description takes on the full burden. It discloses key behavioral details: synchronous removal count, background chunk purge, and error on unknown collection. However, it does not explicitly warn that default keep_data=false leads to data deletion, which is a notable safety gap. Still, it goes beyond a minimal description.

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

Conciseness5/5

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

The description is concise and well-structured: a clear one-line purpose, followed by key behavioral notes, then Args. Every sentence adds value with no redundancy. It is efficiently front-loaded and easy to parse.

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?

Given there is an output schema, the description does not need to explain return values, but it still mentions the removed-file count and background purge for clarity. It covers error behavior and parameter usage. It lacks mention of prerequisites (e.g., collection must already be registered), but that is implied by the error behavior. Overall, it is sufficiently complete for a two-parameter tool.

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

Parameters5/5

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

The schema provides only titles for the two parameters, so the description's Args section fully compensates. It explains 'collection' as the name to deregister and clarifies that 'keep_data' preserves indexed data when true, implying deletion when false. This adds meaningful semantics beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Remove a directory registration' with a specific verb and resource, making it clear this tool deregisters a directory. It distinguishes itself from siblings like 'register_directory' and 'delete' by focusing on registration removal. The first line is direct and unambiguous.

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 purpose implies usage for deregistering directories, and it mentions error behavior for unknown collections, but it does not explicitly compare with alternatives such as 'delete' or 'register_directory'. No clear 'when to use' vs 'when not to use' guidance is provided beyond the basic verb.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/punt-labs/quarry'

If you have feedback or need assistance with the MCP directory API, please join our Discord server