Skip to main content
Glama

audio_render

Renders the full mix or a single track from a video script to a stereo WAV file, with options for float samples and output ranges.

Instructions

The mix (or one track) to a stereo WAV.

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": {
      "script": "<script>"
    },
    "name": "audio_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNothe wall clock at the video's first frame (Lua: f.now, seconds since 1970): an RFC 3339 time with its zone (2026-11-02T14:05:00Z, 2026-11-02T15:05:00+01:00) or seconds since 1970; preview --live runs on the system clock instead (default: 0, 1970-01-01T00:00:00Z)
setNoscript arguments (Lua: arg.K, a string) that also set props.K (a number when it looks like one); they win over a batch row, which wins over the props file
floatNo32-bit float samples
mediaNofonts, images and sounds (default: media/ beside the script)
propsNoa JSON object the script reads as the table props (props.title, ...)
rangeNoframes a..b (end exclusive), a.., ..b, all, or a scene name; times like 3.2s, 1:05.5, 50%, Intro@1.5s, a cue: drop, drop@0.5s (default: all)
scaleNooutput resolution factor, e.g. 0.5 for half resolution (rounded to an even size)
trackNoone track (its file name) or bus alone, as it sounds in the mix
outputNothe WAV (default: audio.wav)
scriptYesthe video script (.lua)
softwareNodraw on the CPU instead of the GPU

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it only discloses the output format. It says nothing about overwriting the default audio.wav, whether rendering is GPU-bound, expected duration, what happens on failure, or the interaction between --live preview and the now parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is only one fragment, so nothing is wasted, but it is under-structured rather than well-structured: no verb, no subject, and no front-loaded statement of what the tool actually does. Brevity here comes at the cost of clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter rendering tool with no annotations and no output schema, a single fragment is not enough. The schema covers parameter descriptions, but the description omits the behavioral and output context an agent needs to invoke a render safely and correctly.

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 description coverage is 100%, so each of the 11 parameters is already documented in the schema. The description adds only a small amount of semantic framing for track ('or one track') and the stereo output, which is baseline credit when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (the mix or a single track) and the output (stereo WAV), so an agent can tell this produces audio rather than analyzing it. But it is a sentence fragment with no verb — the action is inferred from the tool name — and it never explicitly contrasts itself with render or preview.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to call this versus render, preview, or audio_analyze, nor on prerequisites such as needing a Lua script or when a track-only render is appropriate. The single parenthetical '(or one track)' hints at a use case but is not a stated condition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.