Skip to main content
Glama

Remove a file from an episode

remove_file
DestructiveIdempotent

Remove one file from an episode that hasn't started processing yet: a stray or duplicate upload, or a file from the wrong recording. Works for files still uploading too, and for ones uploaded from another device.

Confirm with the user first, naming the file by its label. It can't be undone: to get it back, the user uploads it again.

Use the file's sourceId from get_episode_status's upload list. Once processing has started, WizCut refuses.

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": {
      "jobId": "<jobId>",
      "sourceId": "<sourceId>"
    },
    "name": "remove_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe episode's id (jobId), as returned by create_episode or list_episodes.
sourceIdYesThe file's sourceId, from get_episode_status's upload list.

Output Schema

NameRequiredDescriptionDefault
jobIdYes
removedYes
uploadsYesThe files left in the episode.
sourceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds material context beyond them: the operation is irreversible, recovery requires the user to re-upload, the agent should confirm with the user naming the file by its label, and the server refuses once processing begins. It also clarifies the operation succeeds in edge states (in-progress uploads, cross-device uploads) that annotations cannot express.

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?

Three short paragraphs, each with a distinct job: what it removes, the safety/irreversibility warning, and the parameter sourcing plus refusal condition. The constraint and the destructive warning are front-loaded, and no sentence is filler.

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 an output schema present, the description covers everything an agent needs: preconditions (not yet processing), sourcing of sourceId, irreversibility and recovery path, and the required user confirmation. Return-value shape is legitimately omitted because an output schema 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 description coverage is 100%, so both jobId and sourceId are already documented in the schema, including the pointer to get_episode_status's upload list. The description repeats that provenance hint but adds no new format, constraint, or edge-case semantics for either parameter; 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 ('Remove one file from an episode') plus a scope qualifier ('that hasn't started processing yet') and concrete examples (stray or duplicate upload, wrong recording). It does not explicitly contrast itself with the similarly named sibling remove_upload_source, so an agent must infer the boundary from the episode-vs-upload framing.

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

Usage Guidelines5/5

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

Gives explicit when-to-use cases (stray/duplicate upload, wrong recording, still-uploading files, files from another device), an explicit exclusion ('Once processing has started, WizCut refuses'), and a prerequisite workflow ('Use the file's sourceId from get_episode_status's upload list'). It also mandates a confirmation step before invoking, which is actionable guidance, not just context.

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