Skip to main content
Glama

delete_document_note

DestructiveIdempotent

Permanently deletes a single note from a Paperless-NGX document using its note ID. Requires confirmation because the deletion cannot be undone and returns the remaining notes.

Instructions

⚠️ DESTRUCTIVE: Permanently delete a single note from a document by its note ID. This operation is irreversible. Returns the document's remaining notes.

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": {
      "id": "<id>",
      "note_id": "<note_id>",
      "confirm": "<confirm>"
    },
    "name": "delete_document_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe document ID
confirmYesMust be true to confirm this destructive operation
note_idYesThe ID of the note to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's '⚠️ DESTRUCTIVE' framing largely restates structured data. It does add two pieces of value beyond annotations: the permanence/irreversibility guarantee and the note that the call returns the document's remaining notes, but it omits permission requirements, effects on document history, and error behavior for a bad note ID.

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?

Three short sentences, front-loaded with the destructive warning, then the operation, then the return value. Every sentence carries information and nothing is padded.

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 three-parameter mutation with no output schema, the description covers the operation, its permanence, and the return shape (remaining notes), which is what an agent needs to call it safely. Minor gaps remain around permissions and failure modes, but nothing essential to 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 description coverage is 100%, with each of the three parameters (document ID, note ID, and the confirm flag) documented in the schema itself, so the schema carries the load. The description mentions the note ID as the lookup key but never explains the confirm requirement or its interaction with the destructive semantics, adding little beyond the schema.

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 and resource ('Permanently delete a single note') plus the scoping mechanism ('from a document by its note ID'), which clearly separates it from delete_document_type, delete_correspondent, delete_tag and other delete siblings. It stops short of explicitly naming those siblings, so it is clear but not fully differentiated.

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 a strong implied caution ('DESTRUCTIVE', 'irreversible') that tells the agent to be careful, but no explicit when-to-use guidance, no prerequisites such as needing a valid note ID from list_document_notes, and no stated alternative for removing a note non-destructively (none exists, but that is left to inference).

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