Skip to main content
Glama

delete_document

Remove a document by its doc_ ID and clear associated learned data; calls without confirm=true fail with confirmation_required and make no changes.

Instructions

Remove a document by its doc_ id and what was learned from it. Without confirm=true nothing changes and the call fails with confirmation_required.

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": {
      "document_id": "<document_id>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
document_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses the confirmation guardrail, that nothing mutates without it, and the exact error identifier `confirmation_required`. It stops short of stating that the deletion is irreversible or what permissions are needed, which matters 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.

Conciseness5/5

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

Two sentences, no filler, and the destructive precondition is stated immediately after the action. Every clause carries information an agent would otherwise have to guess.

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?

An output schema exists, so return values need not be described, and the guardrail plus cascade scope are covered. What remains unstated is how far the cascade reaches (memories, profile facts?) and whether the removal can be undone, which is meaningful for an irreversible-looking delete.

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 largely does: it explains `document_id`'s expected `doc_` prefix and gives `confirm` precise meaning, namely the gating condition and its failure mode. The `confirm=false` default behavior is thereby clear without reading the 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 a specific verb ('Remove') and resource ('document'), plus the required `doc_` id prefix and the cascade effect ('what was learned from it'). That cascade clause distinguishes it from a plain delete and from siblings like `forget_memory` or `delete_media` without needing their schemas.

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 gives operational guidance for the call itself (must pass `confirm=true` or the call fails), but never says when to choose this over siblings such as `forget_memory` or `delete_media`, nor when deletion is the wrong approach versus updating. Usage is implied by the name rather than explained.

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