Skip to main content
Glama

Remove a file from the episode

remove_upload_source
DestructiveIdempotent

Called by the upload panel when the user removes a file from the episode: one they added there (e.g. one that failed and won't be retried, so it doesn't hold up processing) or one from another device. Cancels its multipart upload if there is one. Only before processing starts.

Used by WizCut's upload panel in the chat; don't call it yourself — send the user the upload link from create_episode instead.

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_upload_source"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
removedYes
sourceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description earns credit on top of that by disclosing a timing constraint (must run before processing begins) and the side effect of cancelling an in-flight multipart upload. It does not describe what happens on misuse after processing has started, but the output schema covers the response shape.

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?

Two tight paragraphs: scope and side effects first, then the critical 'don't call it yourself' routing instruction. The parenthetical example is a little dense but each sentence carries information an agent needs.

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, UI-driven mutation with an output schema present, the definition supplies the essential operational constraints: pre-processing window, multipart cancellation, and the warning that agents should hand off to the upload link. The only gap is the nested multipart parameter's semantics.

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 67%, with jobId and sourceId documented in-schema. The description adds only an indirect hint about the third parameter through 'Cancels its multipart upload if there is one', leaving the nested uploadId/key object undocumented in both places. That is adequate but not compensating for the coverage gap.

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?

The description names a specific verb and resource ('removes a file from the episode') and spells out the two cases handled: a file the user added in the panel and one synced from another device. It is clearly distinct from remove_file, which the text implicitly contrasts by scoping this tool to pre-processing upload sources. It stops short of explicitly naming a sibling alternative, but the operation is unambiguous.

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?

It gives an explicit precondition ('Only before processing starts') and an explicit exclusion ('don't call it yourself — send the user the upload link from create_episode instead'), naming the alternative tool. An agent knows both when to use it and, more importantly, when not to.

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