Skip to main content
Glama

Delete file

delete_file
Destructive

Remove a file from a space's Files to Trash and off its pins; restoring it in the app within 30 days pins it again. A picture, clip or sound (media_id) is refused while the space collects it, names it as an @element or has it on a roll prompt, and the refusal says where.

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": {
      "space_id": "<space_id>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
media_idNoInstead: a picture, clip or sound from list_space media.
space_idYesThe space whose Files hold it.
space_file_idNoAn uploaded document from list_space files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / agreed
      Removed value: -{
      -  "description": "A document only: true once your human agreed to delete it for good.",
      -  "type": "boolean"
      -}
  2. Added

TDQS

A3.7/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, so the description's job is to add context, which it does: it discloses that deletion is to a Trash with a 30-day window, and that restoring in the app re-pins the item — a non-obvious side effect. It stops short of stating permission requirements or whether media deletions are equally reversible.

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 sentences, no padding, with the core outcome (trash plus unpin) front-loaded and the conditional refusal rule after it. Dense but every clause carries information an agent needs.

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

Completeness2/5

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

Only one of three parameters is required, yet the description never says which identity (space_file_id vs media_id) is mandatory or how they interact, leaving an ambiguity the schema's required list does not fully resolve for an agent. With no output schema, the refusal and restore behavior are covered, but the input selection story is incomplete.

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, but the description earns more by tying validity to the media_id parameter — explaining the reference conditions under which that parameter is rejected and that the error identifies the blocking location. It does not further clarify the space_file_id versus media_id choice beyond the schema text.

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 ('Remove a file from a space's Files to Trash') and then narrows scope by distinguishing the media_id case (picture, clip or sound) from an uploaded document. An agent can tell what is being deleted and from where, though no sibling is named to contrast with.

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?

It gives clear preconditions for the media variant — refused while the space collects it, names it as an @element, or holds it on a roll prompt — but never says when to prefer this over alternatives such as unpin or delete_space, nor what to do on refusal beyond the message naming the location.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources