Skip to main content
Glama
triliumnext-mcp

triliumnext-mcp

by perfectra1n

Delete attachment

delete_attachment
DestructiveIdempotent

Permanently deletes a TriliumNext attachment and its content by ID, removing files or images that are no longer needed.

Instructions

Permanently delete an attachment and its content.

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": {
      "attachmentId": "<attachmentId>"
    },
    "name": "delete_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachmentIdYesID of the attachment to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / attachmentId / maxLength
      Added value: +128
    • addedInput schema / properties / attachmentId / pattern
      Added value: +"^[A-Za-z0-9_]+$"
  2. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered structurally. The description adds real value by clarifying that the attachment's content is destroyed along with the record, but says nothing about authorization requirements or behavior when the ID does not exist. Decent incremental context against a lower bar.

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?

One short sentence with the destructive qualifier front-loaded and no filler. It is efficiently written, though its brevity comes partly from omitting useful guidance rather than from disciplined editing alone.

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

Completeness3/5

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

For a one-parameter destructive tool with full annotation coverage and no output schema, the description covers the essentials of what is removed. It stops short of the details an agent would want before an irreversible call, such as failure behavior on an unknown ID and the fact that no content is recoverable.

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% with a single well-constrained attachmentId (pattern, length bounds), so the schema carries the parameter documentation. The description adds no format or provenance detail beyond it; baseline 3 applies.

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?

States a specific verb and resource ("Permanently delete an attachment") plus the scope detail that its content goes with it. The resource name distinguishes it from delete_note and delete_attribute, though it does not explicitly contrast with them.

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?

No guidance on when to choose this over siblings such as delete_note or delete_attribute, and no stated preconditions (e.g., ownership or permissions). The word "Permanently" is the only implicit caution, leaving usage to be inferred from the name alone.

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