Skip to main content
Glama

Delete Wiki attachment

wiki_attachments_delete
Destructive

Delete an attachment from a wiki page — irreversible (no recovery token).

Instructions

Delete an attachment from a wiki page — irreversible (no recovery token).

The API answers 204 No Content; a typed acknowledgement is returned instead. Find file_id with attachments_list and double-check it before calling.

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": {
      "page_id": "<page_id>",
      "file_id": "<file_id>"
    },
    "name": "wiki_attachments_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
file_idYesNumeric id of the attachment to delete.
page_idYesNumeric id of the page the file is attached to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. First observedv0.67.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds two non-obvious facts: there is no recovery token, so the effect is permanent, and the HTTP layer returns 204 No Content while the tool returns a typed acknowledgement. Permission requirements and error behavior for a nonexistent file_id remain undisclosed.

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 tight paragraphs: the irreversible framing is front-loaded, followed by the return-shape note and the id-sourcing instruction. Every sentence carries operational information with no filler.

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 destructive three-parameter tool with no output schema, the description covers the risk profile, the return shape, and how to source the critical identifier. It would be complete with a note on permission/auth needs or what happens when the attachment no longer exists.

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%, so both required ids and the dry_run flag are already documented; baseline is 3. The description adds provenance for file_id (source it from attachments_list) and reinforces verification, but says nothing about dry_run or the id types beyond 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?

States a specific verb and resource ('Delete an attachment from a wiki page') and immediately characterizes the outcome as irreversible, which distinguishes it from the sibling get/list/upload attachment tools and from the tracker-side delete tools.

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

Usage Guidelines4/5

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

Gives concrete pre-call procedure: obtain file_id via attachments_list and verify it before calling, which is exactly the workflow guidance an agent needs for a destructive tool. It stops short of stating when-not-to-use or what to do if the id is stale, keeping it below a 5.

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

Deploy Server

Other Tools