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.1/5.0
Behavior4/5

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

Adds valuable context beyond annotations: the cost-avoidance property (re-stitching does not re-trigger paid generation) and the precondition that stored dialogue chunks must already exist. It does not disclose that stitching overwrites/replaces previously produced audio, which is the source of the destructiveHint=true annotation, so a small gap remains.

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 dense sentences with the status purpose front-loaded and the re-stitch cost benefit second. Em-dash parentheticals make it slightly heavier than necessary, but no sentence is wasted.

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 not be explained, and the description covers the key operational facts: polling cadence and reuse without regeneration. Missing are the meaning of the reported status values and the overwrite behavior an agent should expect on re-stitch.

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%, so job_id, intro_path and outro_path are already documented, including the 'instead of the show default' semantics. The description adds only the precondition on job state, not new meaning about the parameters themselves. 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?

States specific verbs and resources: report a job's generation status and re-stitch stored dialogue chunks with intro/outro bookends, returning the final audio path. This is clearly distinguishable from grok_generate_audio, which it explicitly references.

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?

Gives explicit usage conditions: 'Poll this after grok_generate_audio' and re-call to apply updated bookends without re-paying for generation. It does not, however, differentiate from the sibling grok_render_status, which also reports render/generation status, leaving an ambiguity an agent must resolve on its own.

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