Skip to main content
Glama

New voice line

create_voice

Creates ONE voice sound (a character line) in a game, in its Voices folder ("Vozes" in Portuguese games), created with the first line. Free: nothing is generated yet. name = what the game calls it (e.g. "Victory line", "Groovy"); text = exactly what the character says, as written (up to maxChars of list_voices; split longer speeches into several lines). Pick the voice, register and emotion from list_voices; language defaults to the game's. Returns the sound page (url) and the cost per version; then ask the user and generate it with generate_voice.

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": {
      "game_id": "<game_id>",
      "name": "<name>",
      "text": "<text>"
    },
    "name": "create_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe sound name the game calls (e.g. "Victory line").
textYesThe exact line the character says.
emotionNocalmo (calm), normal (the default) or intenso (intense).
game_idYesThe game id, from list_games or create_game.
languageNoLanguage of the line. Omitted: the game's language.
registerNocoloquial (loose, the default), conversa (conversational) or formal (read). A voice without the register speaks formal.
voice_idNoA voice id from list_voices. Omitted: the first voice of the library.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / game_id / description
      Added value: +"The game id, from list_games or create_game."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnlyHint=false / destructiveHint=false annotations, it discloses that the operation is free, that no audio is generated, that the Voices folder is created on the first line, that overflow must be split into multiple calls (maxChars from list_voices), and what is returned (sound page url plus cost per version). It does not state idempotency or name-collision behavior, which is the remaining gap.

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?

Dense but front-loaded: the create action, the free/no-generation caveat, and the generate_voice handoff come first, with parameter clarifications after. A few parenthetical asides (the Portuguese folder name, the example lines) add slight clutter but little waste.

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 7-parameter mutation tool with no output schema, the description covers cost, return value, folder side effect, text-length handling, and the required next step. An agent can sequence create_voice then generate_voice correctly without further information.

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%, so the baseline is 3; the description adds operational meaning by clarifying that name is the game-facing label, text must be verbatim speech, and long text must be split across several create_voice calls. The parenthetical 'Vozes' detail also orients Portuguese-game users, though it borders on restating the schema.

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 ('Creates ONE voice sound (a character line)') plus a scope constraint ('ONE') and the storage location ('Voices' folder, created with the first line). It is immediately distinguishable from the sibling generate_voice, which does the actual generation.

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?

Explicitly says this step is free and generates nothing yet, and that the follow-up action is to ask the user and then call generate_voice. It also routes the agent to list_voices for voice/register/emotion selection and to the game's language default, covering when-to-use and what-comes-next.

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