Skip to main content
Glama

Publish narration

create_speech_episode
Idempotent

Narrates a script and publishes it as a new episode when rendering finishes (poll read_episode). script is up to 8 parts in order: {text, voice_preset} (text up to 50000 characters) or {silence_ms: 1-10000}. Generated speech is in English, with one female voice (american-female-heart) and one male voice (american-male-michael). Text is read literally; write for listening. Reusing idempotencyKey returns the same episode, even after it has published; a retry never makes a second episode and never charges again. A replay carries episode with the current status, so poll read_episode instead of resubmitting.

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": {
      "title": "<title>",
      "description": "<description>",
      "idempotencyKey": "<idempotencyKey>",
      "script": "<script>"
    },
    "name": "create_speech_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
scriptYes
descriptionYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / script / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "text": {
      -        "type": "string"
      -      },
      -      "voice_preset": {
      -        "enum": [
      -          "american-female-heart",
      -          "american-male-puck"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "text",
      -      "voice_preset"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "silence_ms": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "silence_ms"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "text": {
      +        "type": "string"
      +      },
      +      "voice_preset": {
      +        "enum": [
      +          "american-female-heart",
      +          "american-male-michael"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "text",
      +      "voice_preset"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "silence_ms": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "silence_ms"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by explaining idempotency consequences (no second episode, no double charge, replay returns the current status), the English-only single-voice constraint, and the literal reading of text. IdempotentHint is already declared, so credit is for the billing and replay-status details rather than the bare idempotency claim.

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 constraints, then retry behavior – the ordering is sensible and most sentences are load-bearing. The read_episode polling instruction is repeated in the first and last sentences, a small redundancy.

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 four-parameter, non-destructive write tool with no output schema, the description covers input shape, limits, idempotency, and how to observe the result. It does not describe the episode object's fields beyond status, but the pointer to read_episode largely compensates.

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?

With 0% schema description coverage, the description carries the full load and does so: it defines the script array as up to 8 ordered parts, the {text, voice_preset} shape with a 50000-character cap, the {silence_ms: 1-10000} alternative, both enum voice values, and the semantics of idempotencyKey. Only title and description are left unspoken, and their meaning is evident from name.

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 – narrates a script and publishes it as a new episode – plus the key timing condition (when rendering finishes). An agent can distinguish this from read_episode and update_episode purely from the description.

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?

Explicitly routes polling to read_episode twice and warns against resubmitting after a replay, which is clear conditional guidance. It does not address when to use update_episode versus this tool, so it stops short of full alternative coverage.

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