Skip to main content
Glama
mcp-server-paperless

mcp-server-paperless

Delete note

delete_note
DestructiveIdempotent

Permanently delete a note from a Paperless document after a required confirmation, since notes have no trash. Call once to preview the note and again with confirm=true to delete it.

Instructions

Delete a note from a document for good; notes have no trash.

Two steps: call without confirm first. Nothing is deleted and the error says which note and document it would be (author, length and the start of the text), with confirm=true to pass. Find note ids with get_document and include notes. Needs permission to view and delete notes, and to change the document.

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>",
      "note_id": "<note_id>"
    },
    "name": "delete_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to go ahead. Without it nothing changes and the error says what would happen. Describe that to the user and pass true only once they agree, or if they already asked for exactly this.
note_idYesId of the note, from get_document with include notes.
document_idYesDocument id, from search_documents.

Output Schema

NameRequiredDescriptionDefault
note_idYes
web_urlYesLink to the document in the Paperless web UI.
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.2

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description adds genuinely new behavior: there is no trash or undo, an initial call is a no-op, and the refusal error leaks identifying detail (author, length, opening text) that the agent is expected to relay to the user. It stops short of saying whether the deleted note affects document metadata or how the success response is shaped, leaving those to the output schema.

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 compact paragraphs, both front-loaded: the permanent-deletion fact comes first, then the operational sequence. No filler sentences and no restatement of the title.

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 destructive 3-parameter tool this covers the essentials: irreversibility, the confirm handshake, id provenance, and permission requirements. Return values are handled by the existing output schema, so the description does not need to explain them.

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 coverage is 100%, so the baseline is 3, and the description goes beyond the schema by describing the confirm parameter as a workflow gate whose rejection payload is an informational preview rather than a failure. It also restates the id sources for note_id and document_id, which is mildly redundant with the schema but reinforces the dependency chain.

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?

"Delete a note from a document for good" gives a specific verb and resource, and the clause "notes have no trash" immediately separates it from any recoverable-mutation sibling such as update_document or add_note. An agent knows exactly what this does without opening the schema.

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

Usage Guidelines5/5

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

It prescribes an explicit two-step procedure (call first without confirm, then pass confirm=true) and states the prerequisite for use: permission to view and delete notes and to change the document. It also routes the agent to get_document with include notes for the requirement of getting note ids, so the agent is told where its inputs come from.

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