Skip to main content
Glama

Stitch episode audio

grok_stitch
Destructive

Report a podcast job's generation status and, once its stored dialogue chunks exist, re-stitch them with the show intro/outro bookends and return the final audio path. Poll this after grok_generate_audio; also re-runs the stitch to apply updated bookends without paying for generation again.

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": {
      "job_id": "<job_id>"
    },
    "name": "grok_stitch"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesPodcast job id (uuid) from grok_generate_audio.
intro_pathNoOptional podcast-audio storage path to use as the intro instead of the show default.
outro_pathNoOptional podcast-audio storage path to use as the outro instead of the show default.

Output Schema

NameRequiredDescriptionDefault
okNo
errorNoPresent only when ok is false.
statusNo
stitchedNo
audio_pathNo
episode_idNo
normalizedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, and openWorldHint=false. The description usefully adds that re-stitching avoids paying for generation again and states the chunk precondition, but it never says what the destructive behavior overwrites (the prior final audio at the returned path) or whether repeated calls are safe.

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, both load-bearing: the first covers the operation and return, the second covers when to call and the cost-saving rerun. The precondition is embedded rather than buried, and there is no filler.

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?

An output schema exists, so return values need no explanation, and the description covers the precondition, the polling workflow, and the rerun scenario. The only material gap for a tool annotated destructive is a note on what existing audio gets replaced.

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 100%, with job_id, intro_path, and outro_path all documented in the schema itself. The description only reinforces the 'show intro/outro bookends' concept and that defaults exist; it adds no format, path-syntax, or override-precedence detail beyond the schema, so the baseline 3 applies.

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?

The description names specific verbs and resources: reporting a podcast job's generation status, re-stitching stored dialogue chunks with intro/outro bookends, and returning the final audio path. It also distinguishes itself from grok_generate_audio by positioning that tool as the predecessor and by noting this one re-stitches without regenerating audio.

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?

It gives explicit timing guidance ('Poll this after grok_generate_audio') and a precondition ('once its stored dialogue chunks exist'), plus a second use case: re-running the stitch to apply updated bookends cheaply. It stops short of an explicit when-not (e.g., what to do if chunks are missing or the job failed), which keeps it from a 5.

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