Skip to main content
Glama

Remove a file uploaded for reports

remove_report_file
Destructive

Removes one file the workspace uploaded for its reports, by the id list_report_files gives (rup_...): the file and its stored bytes go for good. Only the person who uploaded it, or an owner or admin of the workspace, may remove it. While a report of the workspace still shows the file, nothing is removed and the answer is in-use with the ids of those reports: take the file out of them, or delete them, first.

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": {
      "uploadId": "<uploadId>"
    },
    "name": "remove_report_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
uploadIdYesThe file's id from list_report_files (rup_...).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past destructiveHint=true: it states the bytes are deleted permanently, lists who is authorized (uploader, owner, admin), and describes the in-use failure mode including the ids returned so the agent can recover.

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?

One dense sentence with the identity and irreversibility front-loaded, followed by the permission rule and the blocking case. 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.

Completeness5/5

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

For a two-parameter destructive tool with no output schema, the definition covers scope, authority, irreversibility and the single failure path, leaving nothing an agent must guess before calling it.

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 already 100%, and the description largely restates the uploadId provenance the schema documents. workspace_id is left to the schema's 'omit when there is one' note, so no meaningful extra meaning is added.

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?

Names a specific verb and resource (remove one uploaded report file) and ties it to the id source list_report_files with the rup_ prefix, which separates it from delete_report and the other remove_* siblings in adjacent domains.

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?

Says where the uploadId comes from (list_report_files) and gives a clear precondition — the file must not still be referenced by a report. It does not name an alternative tool, but the surrounding file tools make the choice obvious.

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