Skip to main content
Glama

Create Fast NPC / Character Voice Line (MP3)

create_npc_voice_line

Synthesize an instant (<3s) multilingual (40+ languages) character voice bark or tabletop NPC dialogue MP3 (1–500 chars) in one of 8 preset voices with optional language, speed, and emotion control. Costs 2 credits per 100 characters (minimum 2 credits — a new 30-credit account can generate 15 tabletop MP3 barks free). Returns a 24-hour signed MP3 download URL immediately. Requires Authorization: Bearer avs_...

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>",
      "voiceId": "<voiceId>"
    },
    "name": "create_npc_voice_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoOptional speech speed multiplier (0.8–1.2, default 1.0).
scriptYesSpoken dialogue line in any supported language (1–500 chars).
emotionNoOptional vocal emotion delivery: neutral, happy, angry, sad, fearful, surprised (default "neutral").
voiceIdYesBuilt-in multilingual voice ID: Friendly_Person, Wise_Woman, Lively_Girl, Calm_Woman, Casual_Guy, Deep_Voice_Man, Patient_Man, Young_Knight.
languageNoOptional language hint for pronunciation (default "auto", supporting 40+ languages): auto, English, Russian, French, Spanish, German, Arabic, Portuguese, Japanese, Korean, Chinese, Italian, Turkish, Polish, Dutch, Hindi, Indonesian, Vietnamese, Ukrainian, Slovak.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / language / description
      Previous value: -"Optional language hint for pronunciation (default \"auto\", supporting 40+ languages): auto, English, Russian, French, Spanish, German, Arabic, Portuguese, Japanese, Korean, Chinese, Italian, Turkish, Polish, Dutch, Hindi, Indonesian, Vietnamese, Ukrainian."New value: +"Optional language hint for pronunciation (default \"auto\", supporting 40+ languages): auto, English, Russian, French, Spanish, German, Arabic, Portuguese, Japanese, Korean, Chinese, Italian, Turkish, Polish, Dutch, Hindi, Indonesian, Vietnamese, Ukrainian, Slovak."
    • changedInput schema / properties / language / enum
      Previous value: -[
      -  "auto",
      -  "English",
      -  "Russian",
      -  "French",
      -  "Spanish",
      -  "German",
      -  "Arabic",
      -  "Portuguese",
      -  "Japanese",
      -  "Korean",
      -  "Chinese",
      -  "Italian",
      -  "Turkish",
      -  "Polish",
      -  "Dutch",
      -  "Hindi",
      -  "Indonesian",
      -  "Vietnamese",
      -  "Ukrainian"
      -]New value: +[
      +  "auto",
      +  "English",
      +  "Russian",
      +  "French",
      +  "Spanish",
      +  "German",
      +  "Arabic",
      +  "Portuguese",
      +  "Japanese",
      +  "Korean",
      +  "Chinese",
      +  "Italian",
      +  "Turkish",
      +  "Polish",
      +  "Dutch",
      +  "Hindi",
      +  "Indonesian",
      +  "Vietnamese",
      +  "Ukrainian",
      +  "Slovak"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "Optional language hint for pronunciation (default \"auto\", supporting 40+ languages): auto, English, Russian, French, Spanish, German, Arabic, Portuguese, Japanese, Korean, Chinese, Italian, Turkish, Polish, Dutch, Hindi, Indonesian, Vietnamese, Ukrainian.",
      +  "enum": [
      +    "auto",
      +    "English",
      +    "Russian",
      +    "French",
      +    "Spanish",
      +    "German",
      +    "Arabic",
      +    "Portuguese",
      +    "Japanese",
      +    "Korean",
      +    "Chinese",
      +    "Italian",
      +    "Turkish",
      +    "Polish",
      +    "Dutch",
      +    "Hindi",
      +    "Indonesian",
      +    "Vietnamese",
      +    "Ukrainian"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / script / description
      Previous value: -"English spoken dialogue line (1–500 chars)."New value: +"Spoken dialogue line in any supported language (1–500 chars)."
    • changedInput schema / properties / voiceId / description
      Previous value: -"Built-in English voice ID: Friendly_Person, Wise_Woman, Lively_Girl, Calm_Woman, Casual_Guy, Deep_Voice_Man, Patient_Man, Young_Knight."New value: +"Built-in multilingual voice ID: Friendly_Person, Wise_Woman, Lively_Girl, Calm_Woman, Casual_Guy, Deep_Voice_Man, Patient_Man, Young_Knight."
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint=false, openWorldHint=true, destructiveHint=false, idempotentHint=false); the description layers on the operationally critical facts an agent cannot get elsewhere — a metered cost of 2 credits per 100 characters with a 2-credit floor, a concrete free-tier budget (15 barks on a 30-credit account), a 24-hour expiring signed URL, and the required 'Authorization: Bearer avs_' header. Cost and URL expiry are exactly the kind of non-obvious behavior the description should carry.

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?

Three dense sentences that front-load the capability, then cost, then return value and auth — a sensible priority order for an agent deciding whether to call. There is some duplication with structured data (the 1–500 char bound and the '<3s' claim recurring implicitly), but the credit math and account-budget example earn their space.

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?

With no output schema, the description correctly fills that gap by explaining the return value (a 24-hour signed MP3 URL) and adds billing and auth prerequisites — everything needed to call successfully and interpret the result. Minor gaps remain around failure modes (e.g. invalid voice/language combinations or exhausted credits) and whether repeated identical calls incur repeated charges, but the core is well covered.

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 the schema already documents every parameter including enums for voiceId, emotion, and language. The description restates '8 preset voices with optional language, speed, and emotion control' and the 1–500 character bound, adding only the minor detail that language support extends beyond the 20 enumerated values to '40+ languages'. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

The description opens with a specific verb and resource combination — 'Synthesize an instant (<3s) multilingual character voice bark or tabletop NPC dialogue MP3' — and pins down scope with voice count (8 presets), length bounds (1–500 chars), and language breadth (40+). An agent can immediately tell this apart from siblings like create_talking_video (video) or list_voices_and_styles (enumeration) 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 Guidelines4/5

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

Usage context is clear: short single-line deliveries — NPC barks or tabletop dialogue — with the '<3s' latency framing reinforcing the short-form use case. What's missing is an explicit exclusion, e.g. that longer narration or lip-synced avatar output belongs to create_talking_video, or that voice IDs should be sourced from list_voices_and_styles. So it gives clear context but no routing rules.

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