Skip to main content
Glama

audio_from_job

Extract a podcast-ready MP3 from any prior Weftly job that holds a video — an uploaded source (transcribe, summarize, find_clips) or a video Weftly delivered (extract_clip, extract_vertical_clip, edit_from_transcript, edit_from_multiple_cameras, a clips bundle); possessing the parent source_job_id is the capability, no upload step. Single call: pass source_job_id (plus output_role only if the parent delivered more than one video, e.g. a clips bundle) to create and start the job immediately — Free, so there is no payment step and no job_id/payment_credential round trip. Output: role podcast-audio, MP3 96 kbps mono 44.1 kHz, loudness-normalized to -16 LUFS integrated / -1.5 dBTP true peak (Apple's published podcast target, distinct from the -14 LUFS video/social target used elsewhere), with optional title/artist/album/date written as ID3v2.3 tags — an absent field writes no tag. get_job_status returns bytes and duration_seconds once complete, ready for a feed's <enclosure length> and itunes:duration. Free — no Stripe Checkout, no MPP challenge, no payment required. Use whenever a video already processed by Weftly also needs to ship as an audio-only episode. Source must still be in storage (24h TTL for most parents, 72h for find_clips/edit_from_multiple_cameras parents — check expires_at from get_job_status on the parent).

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": {
      "source_job_id": "<source_job_id>"
    },
    "name": "audio_from_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
albumNo
titleNo
artistNo
output_roleNo
source_job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that the call creates and starts the job immediately, costs nothing (no Stripe/MPP step), writes no tag when an ID3 field is absent, and that the source is subject to a 24h/72h storage TTL with an `expires_at` check. Output characteristics (MP3 96 kbps mono 44.1 kHz, -16 LUFS / -1.5 dBTP) and post-completion fields via get_job_status are also spelled out.

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?

Purpose and key capability are front-loaded in the first two sentences, and most dense clauses earn their place (TTL, output specs, tag behavior). The one clear flaw is redundancy: the free/no-payment point is stated twice in nearly identical terms ('Free, so there is no payment step...' and later 'Free — no Stripe Checkout, no MPP challenge, no payment required'), making the paragraph longer than needed.

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 6-parameter, zero-schema-coverage, no-annotation, no-output-schema tool, the description supplies everything needed to call it correctly: parent eligibility, the single required id, the conditional output_role, tag semantics, output format, and how to retrieve bytes/duration afterward. TTL warnings cover the main failure mode (expired source).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: `source_job_id` is defined as the parent job holding a video, `output_role` is scoped to parents that delivered multiple videos with the resulting role named (`podcast-audio`), and title/artist/album/date are explained as optional ID3v2.3 tags where an absent field writes nothing. That is meaning well beyond the bare typed properties.

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?

Opens with a specific verb and resource: 'Extract a podcast-ready MP3 from any prior Weftly job that holds a video.' It then enumerates the eligible parent job types (transcribe, summarize, find_clips, extract_clip, edit_from_transcript, etc.), which lets an agent distinguish this from clips_from_job or get_job_status without opening any 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?

Gives an explicit condition: 'Use whenever a video already processed by Weftly also needs to ship as an audio-only episode,' and clarifies no upload or payment round trip is needed, plus when output_role is required. It stops short of naming the sibling alternative to use instead (e.g., clips_from_job) or stating when-not-to-use, so 4 rather than 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