Skip to main content
Glama

Publish upload

complete_episode
DestructiveIdempotent

Publishes a held upload after every part is uploaded. The stored bytes must be the audio type the hold declared, or the publish is rejected with badAudio, nothing is charged, and the hold stays open. If the file no longer fits the plan, the episode is voided and the file deleted.

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": {
      "episodeId": "<episodeId>"
    },
    "name": "complete_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
episodeIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by naming concrete failure modes: a type mismatch yields badAudio with no charge and the hold left open, while a plan-fit failure voids the episode and deletes the file. This makes the destructiveHint=true concrete by saying exactly what is destroyed, and adds billing/auth-relevant context the 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the action and precondition before the two failure branches. Every clause carries information; only minor tightening (e.g., "stored bytes") would improve it.

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?

With one parameter, no output schema, and annotations covering the safety profile, the description is nearly complete: it covers precondition, validation, charge behavior, and failure cleanup. The one gap is the success outcome — what state the episode ends in and what the caller receives — which an agent might want before invoking.

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 0% for the single episodeId parameter, but the name is largely self-describing and the description ties it to the held-upload concept. No detail is added about identifier format or where the id comes from, so the description neither compensates for nor worsens the coverage gap.

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 ("Publishes a held upload") plus the precondition ("after every part is uploaded"), which cleanly distinguishes it from hold_episode and update_episode. An agent can identify the operation and its prerequisite without opening the schema.

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?

The phrase "after every part is uploaded" gives a clear triggering condition and implicitly routes the agent to hold_episode first. There are no explicit exclusions or named alternatives for the failure cases (e.g., what to do after a badAudio rejection), so it stops short of full when/when-not guidance.

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