Skip to main content
Glama

Render a Hypnothera session as audio

render_audio

Renders one of the connected account's finished session scripts as guided audio in the chosen voice. Spends about 1 credit per minute of audio (estimated_credits in the result), charged by Hypnothera. ONLY call after the user has approved the voice and the credit cost, and call it once per session: it is not idempotent. Pick voice_id from list_voices where available is true. Returns estimated_minutes and estimated_credits, also when the account has too few credits. Rendering takes a few minutes; then get_session returns has_audio and a playable audio_url.

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_id": "<script_id>",
      "voice_id": "<voice_id>"
    },
    "name": "render_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
voice_idYesA voice_id from list_voices.
script_idYesA script_id from create_session, continue_journey or list_journeys whose script has finished.

Output Schema

NameRequiredDescriptionDefault
okYesFalse when the call failed; message says why.
messageNoWhat happened and, when relevant, what to do next. Relay it to the user.
task_idNoBackground job id for the audio render.
script_idNoThe session being rendered.
next_step_urlNoThe session's listen page on hypnothera.ai, where the audio appears once rendered.
estimated_creditsNoEstimated credits the render costs.
estimated_minutesNoEstimated audio length in minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the safe/unsafe profile (readOnly false, idempotent false, destructive false); the description adds the material behavior: credit spend of roughly 1 credit per minute, charged by Hypnothera, that estimated_credits is returned even when the account has too few credits, and that rendering is slow and asynchronous with results surfacing later via get_session.

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?

Front-loaded with the action, then cost, then the call precondition, then parameter sourcing, then return/timing behavior. Every sentence contributes a constraint the agent would otherwise have to guess; nothing is padding.

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 costly, non-idempotent mutation with an output schema, the description covers cost model, permission/approval gate, idempotency, latency, and where the result appears — everything an agent needs to decide to call it and when to report back.

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

Parameters4/5

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

Schema coverage is 100% and the schema already documents both fields, so the baseline is 3. The description adds one genuine constraint not in the schema ('Pick voice_id from list_voices where available is true') plus the requirement that the script be finished, but the script_id guidance largely restates the schema's own description.

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 a specific verb and resource ('Renders ... finished session scripts as guided audio in the chosen voice') with clear scope: only finished scripts, connected account, chosen voice. An agent can distinguish it from get_session (which retrieves status) and list_voices (which supplies the voice_id) without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit preconditions ('ONLY call after the user has approved the voice and the credit cost'), a cardinality rule ('call it once per session: it is not idempotent'), and a source constraint for the voice ('Pick voice_id from list_voices where available is true'). It also names get_session as the follow-up path once rendering completes.

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.