Skip to main content
Glama

Generate a voice line

generate_voice

Generates versions (1 to 4) of a voice line created with create_voice, with its text, voice, register and emotion (spends credits: refused until the user approved the cost in the conversation, see approve_spending). A line costs its estimated seconds (characters / charsPerSecond of list_voices, at least 1 s) × creditsPerSecond × versions. Voice versions are NEVER chosen automatically, not even the first ones: the user must listen to them on the site and pick the ones that go to the game. Returns the new versions and the sound page (url): give the user that link and tell them to listen and choose there.

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": {
      "event_id": "<event_id>"
    },
    "name": "generate_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
event_idYesThe voice line (the id create_voice returned).
variationsNoHow many versions. Omitted: 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnly=false and destructive=false; the description adds the crucial non-obvious behavior that this call consumes credits and will be refused without prior approval, plus the exact cost formula. It also discloses the selection workflow constraint and what the agent must do with the response (hand the sound page URL to the user). No contradiction with the annotations.

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?

Front-loaded with purpose, then cost, then the selection constraint, then the return-handling instruction — a logical order. It is one dense paragraph with a parenthetical cost formula that is hard to parse in a single read, but no sentence is filler; the density is information, not 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?

There is no output schema, and the description compensates by stating what comes back (the new versions plus the sound page URL) and what the agent must do with it. Given a two-parameter tool with full schema coverage and no output schema, nothing needed to invoke it correctly is missing.

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 already documents both parameters including the 'Omitted: 3' default, so the schema does most of the work. The description still adds real meaning by tying `variations` to cost (credits scale with version count) and by framing the range as 'versions 1 to 4' in the context of the downstream choose-on-site workflow.

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 ('Generates versions (1 to 4) of a voice line'), names the prerequisite tool that creates the input (create_voice), and enumerates the attributes carried over (text, voice, register, emotion). An agent can distinguish it from generate_music/generate_sounds/create_voice 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 Guidelines5/5

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

Gives explicit preconditions: the line must already exist via create_voice, spending must be approved in-conversation via approve_spending or the call is refused, and the user (not the agent) must listen and pick versions on the site. It also excludes behavior that agents commonly get wrong ('Voice versions are NEVER chosen automatically, not even the first ones').

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