Skip to main content
Glama

Delete a Docmost attachment

delete_attachment
Destructive

Permanently remove a file or image uploaded to a Docmost page by attachment ID. Requires space admin rights; pages still showing it will display a broken image or link.

Instructions

Permanently deletes a file or image uploaded to a page, which needs space admin rights, leaving a broken image or link wherever the page still shows it.

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
attachmentIdYesAttachment id from list_attachments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the bar is lower, yet the description still adds real value: permanence, the space-admin authorization requirement, and the observable side effect of leaving broken images/links on the page. It stops short of saying whether the deletion is recoverable (trash) or what error non-admins receive.

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?

A single front-loaded sentence with no filler, covering action, scope, permission, and consequence. The 'which needs space admin rights' clause is slightly awkwardly embedded but costs no real clarity.

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 one-parameter destructive tool with full annotation coverage and no output schema, the description supplies everything an agent needs: what is destroyed, the authorization prerequisite, and the visible consequence. Return values are unnecessary since there is no output schema.

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% and the single parameter is fully documented in the schema, including the hint to obtain it from list_attachments. The description adds no parameter-level detail, so the 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 ('Permanently deletes') and resource ('a file or image uploaded to a page'), which is unambiguous against siblings like delete_page or delete_comment. It does not explicitly name or contrast a sibling, so it falls just short of a 5.

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?

The description gives a prerequisite ('needs space admin rights') that tells the agent when the call will succeed, but it offers no explicit when-to-use/when-not-to-use framing or pointer to alternatives. Usage is only implied from the consequence sentence.

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