Skip to main content
Glama

speak

Generate per-line voice narration with optional pace, emotion and silence gaps; writes WAV and timing JSON, reuses cached lines and blocks over-budget jobs.

Instructions

Narrate: one item per voice line, a string or {"text", "pace"?, "emotion"?}. pace: "slower", "normal", "faster" or a speed factor 0.5-2 relative to normal (1.0 normal, 0.9 a little slower, 1.1 a little faster). emotion: a word or two (at most 20 characters, e.g. "惊讶", "平静", "surprised") passed to the voice as an instruction; how much it changes depends on the voice model. gap_s: silence between lines. Writes voice/voice.wav and voice/voice.json (line times), sets the project's voice if unset. Only changed lines cost money (cached). Paid: estimates first and refuses over budget.

Input Schema

NameRequiredDescriptionDefault
gap_sNo
linesYes
projectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/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 well: it discloses the files written (voice.wav, voice.json with line times), the side effect of setting the project voice, caching behavior (only changed lines cost money), and the paid-operation guard that estimates first and refuses over budget. It stops short of stating what the call itself returns or how failures other than budget are surfaced.

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?

It is dense and front-loaded, leading with the verb and the payload shape before side effects and cost. The telegraphic abbreviation style ('gap_s', 'Paid:') trades a little readability for compactness but every clause carries information.

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?

For a 3-parameter generation tool with no output schema and no annotations, the description covers inputs, side effects, artifacts, caching, and cost gating. The remaining gap is what the invocation itself returns (e.g., file handles or line times inline) versus only the on-disk artifacts.

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 coverage is 0%, so the description must compensate and it does: 'lines' is explained as string-or-object with text/pace/emotion, pace gets accepted values plus a 0.5-2 factor range with concrete examples, emotion gets a 20-character cap and multilingual examples, and gap_s is defined as inter-line silence. This turns an opaque anyOf schema into something callable.

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

Purpose4/5

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

The verb 'Narrate' plus the concrete output ('voice/voice.wav and voice/voice.json') makes clear this synthesizes speech for a project. It is distinguishable from siblings like animate or draw by the audio-narration focus, though it never explicitly contrasts itself with them.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the text-to-speech step and that it 'sets the project's voice if unset'. There is no explicit when-to-use/when-not guidance or named alternative among the siblings, and the budget behavior is described as a property rather than a decision rule.

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