Skip to main content
Glama

Drop document from local cache

drop_document_from_local_cache
Destructive

Remove a document from the local cache to release memory when it is no longer needed, using its unique identifier.

Instructions

Remove a document from the local cache and release its memory.

Call this tool when a client is finished with a document and wants to release the memory it occupies. After a successful call the key is no longer present in the cache.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_keyYesThe unique identifier of the document to remove from the local cache.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
droppedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.1

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already indicate destructiveHint=true, and the description reinforces this by stating the key is no longer present after a successful call. It adds useful behavioral context about memory release and the post-condition, which goes beyond the bare annotation.

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?

The description is short and front-loaded with the main action, followed by clear usage guidance and a side-effect statement. There is minor redundancy between 'release its memory' and 'release the memory it occupies,' but the overall structure is efficient and readable.

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

Completeness5/5

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

For a simple one-parameter tool with an output schema and destructiveHint already annotated, the description fully covers what the tool does, when to use it, and the expected post-condition. No critical information for correct invocation is missing.

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

Parameters3/5

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

Schema coverage is 100%, so the single parameter document_key is already well-documented in the schema. The description only references 'the key' indirectly and does not add material semantic detail beyond what the schema provides, so the baseline score of 3 is appropriate.

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 opens with a specific verb ('Remove') and resource ('a document from the local cache'), immediately conveying the action. It also clarifies the purpose by mentioning memory release, which distinguishes it from sibling cache-related tools like is_document_in_local_cache.

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

Usage Guidelines4/5

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

The description explicitly states when to call the tool: 'when a client is finished with a document and wants to release the memory it occupies.' It does not discuss when not to use it or mention alternatives, but for a cache-removal operation the guidance is clear and sufficient.

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