Skip to main content
Glama

Publish an agent's voice stack

set_agent_voice_stack
Destructive

Save revision-bound shared voice_setup for workflow publication, or explicitly publish an ordinary voice stack, optional outgoing-only version-pinned audio environment, and selected language profiles. Each locale override may set only exact voice, transcriber, and greeting; every resulting stack and existing credential binding is validated before a frozen publication is created. The environment is never caller/STT input. An engine whose agent-catalog row says has_language_axis false (a voice-to-voice engine) refuses languages, language_profiles and follow_caller with a 400 naming the field and the engine.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "set_agent_voice_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
voiceNo
agent_idYes
languageNo
languagesNoWhen supplied replaces the selected language set.
listeningNoWhich languages calls listen for: open (default; the transcriber hears the other party in any language when it can) or agent_language (the call's own language only, slightly more accurate there). Frozen in the publication, so changing it republishes. Refused for an engine without a language axis.
navigationNoPer-agent phone-menu navigation (enabled, max_hold_seconds, max_navigation_seconds), validated exactly like PATCH /v1/agents/{agent_id}/voice-stack. On by default: enabled is true, false (off, kept by every save) or null (follow the platform default, on), and is required; an empty object is refused with navigation_enabled_required. Never refused for the engine or the languages: an agent that cannot navigate yet (GPT-Live) keeps the setting and the voice stack reports navigation.eligible and navigation.ineligible_reason.
transcriberNo
turn_takingNoPer-agent turn-taking tuning, validated exactly like PATCH /v1/agents/{agent_id}/voice-stack.
voice_setupNoShared finite input. Requires expected_voice_setup_revision beside it. Do not mix with transcriber or overlapping turn_taking fields. With a workflow, stages input for workflow publication; ordinary calls keep their published stack. Without a workflow, publishes a compatible cascade selection or saves an independent native-engine confirmation listener. Free-form business writes require the finite listener, with additional transcription usage; conversation input remains engine-owned. GPT-Live Transcribe is qualified for finite English input with platform-managed credentials.
voice_polishNoVoice polish. delivery: how the voice performs its speech (natural, lively, calm, precise); unset keeps provider defaults. acknowledgements: while a slow reply is still being prepared, say one short bounded phrase in the agent's own voice and language, at most once per turn, after delay_ms (default 1200) of silence; off unless enabled. Phrases default to the platform's reviewed list for the agent's language; a language without one stays silent unless phrases are supplied. tool_wait: what the caller hears while a slow tool call runs, after delay_ms (default 1000): mode sound plays a quiet typing bed cut when the tool finishes (any language); mode acknowledge speaks one short phrase in the agent's voice (phrases apply to acknowledge only); knowledge_search_immediate opts cascade agents into speaking at the start of knowledge searches; off by default.
first_messageNo
follow_callerNoAutomatic multilingual policy, on by default where the transcriber can listen for the whole selected set; send it only to record an explicit choice (false stays in the opening language, true is refused where it cannot follow). Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 256-language limit of an AI agent's selection, can require selected instead.
system_promptNo
voice_frontendNoConversation engine. Omit or cascade keeps STT/LLM/TTS. gpt_live is GPT-Live 1.1; transcriber/model/voice become the OpenAI projection (captions stub, backend Luna/Terra, gpt-live-1.1 voice). Switching back to cascade requires a full STT/LLM/TTS stack. Each engine declares whether it has a language axis as has_language_axis in get_agent_catalog.
answer_detectionNoPer-agent answer-detection policy, validated exactly like PATCH /v1/agents/{agent_id}/voice-stack.
audio_environmentNoExplicit provider-independent ambience pin. Off requires volume 0; every other catalogue preset requires 1 through 100.
language_profilesNoWhen supplied replaces sparse overrides; omit to preserve them.
voice_confirmationNoConfirm the voice and clear the voice-not-confirmed mark; needs expected_publication_version.
language_profile_revisionNo
expected_publication_versionNoRefuse the save when the AI agent was published again since this version (409 publication_version_conflict).
expected_voice_setup_revisionNo
follow_caller_where_supportedNoFollow the other person's language for every language this setup supports where it can, otherwise answer in the opening language only; decided again on every save that sends it, and a save is refused (voice_setup_changed) when another save changed the setup so that this decision no longer holds: send it again. Omit follow_caller, languages, language_profiles and voice_setup beside it. A conversation engine without a language axis stores nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / voice_frontend / description
      Previous value: -"Conversation engine. Omit or cascade keeps STT/LLM/TTS. gpt_live is GPT-Live-1; transcriber/model/voice become the OpenAI projection (captions stub, backend Luna/Terra, gpt-live-1 voice). Switching back to cascade requires a full STT/LLM/TTS stack. Each engine declares whether it has a language axis as has_language_axis in get_agent_catalog."New value: +"Conversation engine. Omit or cascade keeps STT/LLM/TTS. gpt_live is GPT-Live 1.1; transcriber/model/voice become the OpenAI projection (captions stub, backend Luna/Terra, gpt-live-1.1 voice). Switching back to cascade requires a full STT/LLM/TTS stack. Each engine declares whether it has a language axis as has_language_axis in get_agent_catalog."
  2. Changed3 schema fields changed
    • addedInput schema / properties / expected_publication_version
      Added value: +{
      +  "description": "Refuse the save when the AI agent was published again since this version (409 publication_version_conflict).",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / follow_caller_where_supported
      Added value: +{
      +  "description": "Follow the other person's language for every language this setup supports where it can, otherwise answer in the opening language only; decided again on every save that sends it, and a save is refused (voice_setup_changed) when another save changed the setup so that this decision no longer holds: send it again. Omit follow_caller, languages, language_profiles and voice_setup beside it. A conversation engine without a language axis stores nothing.",
      +  "enum": [
      +    true
      +  ],
      +  "type": "boolean"
      +}
    • addedInput schema / properties / voice_confirmation
      Added value: +{
      +  "description": "Confirm the voice and clear the voice-not-confirmed mark; needs expected_publication_version.",
      +  "enum": [
      +    "confirmed"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / voice_polish / description
      Previous value: -"Voice polish. delivery: how the voice performs its speech (natural, lively, calm, precise); unset keeps provider defaults. acknowledgements: while a slow reply is still being prepared, say one short bounded phrase in the agent's own voice and language, at most once per turn, after delay_ms (default 1200) of silence; off unless enabled. Phrases default to the platform's reviewed list for the agent's language; a language without one stays silent unless phrases are supplied. tool_wait: what the caller hears while a slow tool call runs, after delay_ms (default 1000): mode sound plays a quiet typing bed cut when the tool finishes (any language); mode acknowledge speaks one short phrase in the agent's voice (phrases apply to acknowledge only); off by default."New value: +"Voice polish. delivery: how the voice performs its speech (natural, lively, calm, precise); unset keeps provider defaults. acknowledgements: while a slow reply is still being prepared, say one short bounded phrase in the agent's own voice and language, at most once per turn, after delay_ms (default 1200) of silence; off unless enabled. Phrases default to the platform's reviewed list for the agent's language; a language without one stays silent unless phrases are supplied. tool_wait: what the caller hears while a slow tool call runs, after delay_ms (default 1000): mode sound plays a quiet typing bed cut when the tool finishes (any language); mode acknowledge speaks one short phrase in the agent's voice (phrases apply to acknowledge only); knowledge_search_immediate opts cascade agents into speaking at the start of knowledge searches; off by default."
    • addedInput schema / properties / voice_polish / properties / tool_wait / properties / knowledge_search_immediate
      Added value: +{
      +  "default": false,
      +  "description": "On cascade voice calls in acknowledge mode, a knowledge search may play a ready phrase as soon as the search starts. Other tools keep their configured delay. Off by default.",
      +  "type": "boolean"
      +}
  4. Changed4 schema fields changed
    • changedInput schema / properties / follow_caller / description
      Previous value: -"Automatic multilingual policy, on by default where the transcriber can listen for the whole selected set; send it only to record an explicit choice (false stays in the opening language, true is refused where it cannot follow). Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 69-language limit of an AI agent's selection, can require selected instead."New value: +"Automatic multilingual policy, on by default where the transcriber can listen for the whole selected set; send it only to record an explicit choice (false stays in the opening language, true is refused where it cannot follow). Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 256-language limit of an AI agent's selection, can require selected instead."
    • changedInput schema / properties / language_profiles / maxItems
      Previous value: -69New value: +256
    • changedInput schema / properties / languages / maxItems
      Previous value: -69New value: +256
    • changedInput schema / properties / voice_setup / properties / listener / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "oneOf": [
      -      {
      -        "not": {
      -          "required": [
      -            "credential_id"
      -          ]
      -        },
      -        "properties": {
      -          "credential_source": {
      -            "enum": [
      -              "platform_managed"
      -            ]
      -          }
      -        }
      -      },
      -      {
      -        "properties": {
      -          "credential_source": {
      -            "enum": [
      -              "customer_byok"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "credential_id"
      -        ]
      -      }
      -    ],
      -    "properties": {
      -      "credential_id": {
      -        "maxLength": 128,
      -        "type": "string"
      -      },
      -      "credential_source": {
      -        "enum": [
      -          "platform_managed",
      -          "customer_byok"
      -        ],
      -        "type": "string"
      -      },
      -      "languages": {
      -        "items": {
      -          "maxLength": 64,
      -          "type": "string"
      -        },
      -        "maxItems": 128,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "model": {
      -        "maxLength": 128,
      -        "type": "string"
      -      },
      -      "registry_name": {
      -        "pattern": "^[a-z][a-z0-9_]{0,63}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "registry_name",
      -      "model",
      -      "languages",
      -      "credential_source"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "oneOf": [
      +      {
      +        "not": {
      +          "required": [
      +            "credential_id"
      +          ]
      +        },
      +        "properties": {
      +          "credential_source": {
      +            "enum": [
      +              "platform_managed"
      +            ]
      +          }
      +        }
      +      },
      +      {
      +        "properties": {
      +          "credential_source": {
      +            "enum": [
      +              "customer_byok"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "credential_id"
      +        ]
      +      }
      +    ],
      +    "properties": {
      +      "credential_id": {
      +        "maxLength": 128,
      +        "type": "string"
      +      },
      +      "credential_source": {
      +        "enum": [
      +          "platform_managed",
      +          "customer_byok"
      +        ],
      +        "type": "string"
      +      },
      +      "languages": {
      +        "items": {
      +          "maxLength": 64,
      +          "type": "string"
      +        },
      +        "maxItems": 256,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "model": {
      +        "maxLength": 128,
      +        "type": "string"
      +      },
      +      "registry_name": {
      +        "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "registry_name",
      +      "model",
      +      "languages",
      +      "credential_source"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Changed3 schema fields changed
    • changedInput schema / properties / follow_caller / description
      Previous value: -"Automatic multilingual policy, on by default where the transcriber can listen for the whole selected set; send it only to record an explicit choice (false stays in the opening language, true is refused where it cannot follow). Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 32-language limit of an AI agent's selection, can require selected instead."New value: +"Automatic multilingual policy, on by default where the transcriber can listen for the whole selected set; send it only to record an explicit choice (false stays in the opening language, true is refused where it cannot follow). Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 69-language limit of an AI agent's selection, can require selected instead."
    • changedInput schema / properties / language_profiles / maxItems
      Previous value: -32New value: +69
    • changedInput schema / properties / languages / maxItems
      Previous value: -32New value: +69
  6. Changed1 schema field changed
    • changedInput schema / properties / follow_caller / description
      Previous value: -"Explicit automatic multilingual policy. Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 32-language limit of an AI agent's selection, can require selected instead."New value: +"Automatic multilingual policy, on by default where the transcriber can listen for the whole selected set; send it only to record an explicit choice (false stays in the opening language, true is refused where it cannot follow). Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 32-language limit of an AI agent's selection, can require selected instead."
  7. Changed1 schema field changed
    • addedInput schema / properties / listening
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Which languages calls listen for: open (default; the transcriber hears the other party in any language when it can) or agent_language (the call's own language only, slightly more accurate there). Frozen in the publication, so changing it republishes. Refused for an engine without a language axis.",
      +  "properties": {
      +    "mode": {
      +      "enum": [
      +        "open",
      +        "agent_language"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  8. Changed1 schema field changed
    • changedInput schema / properties / follow_caller / description
      Previous value: -"Explicit automatic multilingual policy. Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits can require selected instead."New value: +"Explicit automatic multilingual policy. Omitted scope means selected. All resolves the exact stack's compatible set at publication; provider candidate limits, or the 32-language limit of an AI agent's selection, can require selected instead."
  9. Changed1 schema field changed
    • changedInput schema / properties / navigation / description
      Previous value: -"Per-agent phone-menu navigation (enabled, max_hold_seconds, max_navigation_seconds), validated exactly like PATCH /v1/agents/{agent_id}/voice-stack. On by default: enabled is true, false (off, kept by every save) or null (follow the platform default, on), and is required; an empty object is refused with navigation_enabled_required. Never refused for the engine or the languages: an agent that cannot navigate yet (GPT-Live, or only Estonian or Finnish) keeps the setting and the voice stack reports navigation.eligible and navigation.ineligible_reason."New value: +"Per-agent phone-menu navigation (enabled, max_hold_seconds, max_navigation_seconds), validated exactly like PATCH /v1/agents/{agent_id}/voice-stack. On by default: enabled is true, false (off, kept by every save) or null (follow the platform default, on), and is required; an empty object is refused with navigation_enabled_required. Never refused for the engine or the languages: an agent that cannot navigate yet (GPT-Live) keeps the setting and the voice stack reports navigation.eligible and navigation.ineligible_reason."
  10. Changed1 schema field changed
    • changedInput schema / properties / voice_frontend / enum
      Previous value: -[
      -  "cascade",
      -  "gpt_live",
      -  "gemini_live"
      -]New value: +[
      +  "cascade",
      +  "gpt_live",
      +  "gemini_live",
      +  "eleven_realtime"
      +]
  11. Changed1 schema field changed
    • changedInput schema / properties / voice_setup / description
      Previous value: -"Shared finite input. Requires expected_voice_setup_revision beside it. Do not mix with transcriber or overlapping turn_taking fields. With a workflow, stages input for workflow publication; ordinary calls keep their published stack. Without a workflow, publishes a compatible cascade selection. Native free-form input is engine-owned. GPT-Live Transcribe is workflow-only, English and platform-managed."New value: +"Shared finite input. Requires expected_voice_setup_revision beside it. Do not mix with transcriber or overlapping turn_taking fields. With a workflow, stages input for workflow publication; ordinary calls keep their published stack. Without a workflow, publishes a compatible cascade selection or saves an independent native-engine confirmation listener. Free-form business writes require the finite listener, with additional transcription usage; conversation input remains engine-owned. GPT-Live Transcribe is qualified for finite English input with platform-managed credentials."
  12. Changed2 schema fields changed
    • addedInput schema / properties / expected_voice_setup_revision
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / voice_setup
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Shared finite input. Requires expected_voice_setup_revision beside it. Do not mix with transcriber or overlapping turn_taking fields. With a workflow, stages input for workflow publication; ordinary calls keep their published stack. Without a workflow, publishes a compatible cascade selection. Native free-form input is engine-owned. GPT-Live Transcribe is workflow-only, English and platform-managed.",
      +  "properties": {
      +    "listener": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "oneOf": [
      +            {
      +              "not": {
      +                "required": [
      +                  "credential_id"
      +                ]
      +              },
      +              "properties": {
      +                "credential_source": {
      +                  "enum": [
      +                    "platform_managed"
      +                  ]
      +                }
      +              }
      +            },
      +            {
      +              "properties": {
      +                "credential_source": {
      +                  "enum": [
      +                    "customer_byok"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "credential_id"
      +              ]
      +            }
      +          ],
      +          "properties": {
      +            "credential_id": {
      +              "maxLength": 128,
      +              "type": "string"
      +            },
      +            "credential_source": {
      +              "enum": [
      +                "platform_managed",
      +                "customer_byok"
      +              ],
      +              "type": "string"
      +            },
      +            "languages": {
      +              "items": {
      +                "maxLength": 64,
      +                "type": "string"
      +              },
      +              "maxItems": 128,
      +              "minItems": 1,
      +              "type": "array"
      +            },
      +            "model": {
      +              "maxLength": 128,
      +              "type": "string"
      +            },
      +            "registry_name": {
      +              "pattern": "^[a-z][a-z0-9_]{0,63}$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "registry_name",
      +            "model",
      +            "languages",
      +            "credential_source"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "turn_taking": {
      +      "additionalProperties": false,
      +      "description": "Explicit values override the preset. Workflow bounds: 300–3000 ms silence, 0–1000 ms interruption. Cascade bounds: 100–2000 and 80–2000 respectively.",
      +      "properties": {
      +        "interruption_sensitivity": {
      +          "enum": [
      +            "balanced",
      +            "low",
      +            "high"
      +          ],
      +          "type": "string"
      +        },
      +        "min_speech_ms": {
      +          "maximum": 2000,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "silence_hold_ms": {
      +          "maximum": 3000,
      +          "minimum": 100,
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "listener",
      +    "turn_taking"
      +  ],
      +  "type": "object"
      +}
  13. Changed2 schema fields changed
    • changedInput schema / properties / navigation / description
      Previous value: -"Per-agent phone-menu navigation (enabled, max_hold_seconds, max_navigation_seconds), validated exactly like PATCH /v1/agents/{agent_id}/voice-stack. For an agent on GPT-Live, enabled true is refused with navigation_engine_not_supported (also when switching a navigating agent to GPT-Live)."New value: +"Per-agent phone-menu navigation (enabled, max_hold_seconds, max_navigation_seconds), validated exactly like PATCH /v1/agents/{agent_id}/voice-stack. On by default: enabled is true, false (off, kept by every save) or null (follow the platform default, on), and is required; an empty object is refused with navigation_enabled_required. Never refused for the engine or the languages: an agent that cannot navigate yet (GPT-Live, or only Estonian or Finnish) keeps the setting and the voice stack reports navigation.eligible and navigation.ineligible_reason."
    • addedInput schema / properties / navigation / required
      Added value: +[
      +  "enabled"
      +]
  14. Changed1 schema field changed
    • addedInput schema / properties / navigation
      Added value: +{
      +  "description": "Per-agent phone-menu navigation (enabled, max_hold_seconds, max_navigation_seconds), validated exactly like PATCH /v1/agents/{agent_id}/voice-stack. For an agent on GPT-Live, enabled true is refused with navigation_engine_not_supported (also when switching a navigating agent to GPT-Live).",
      +  "type": "object"
      +}
  15. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Beyond annotations, it discloses validation of the resulting stack and credential binding, creation of a frozen publication, the fact that the audio environment is never caller/STT input, and specific 400 refusals for engines without a language axis. This adds substantial behavioral context for a destructive, non-idempotent mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and contains no obvious filler, but the opening sentence is overloaded with modifiers and the overall paragraph is dense. It would be easier to scan with shorter sentences or structure.

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 complex 23-parameter mutation with no output schema, the description covers the key publication, validation, and engine-restriction behavior. It leaves some parameter-level detail to the schema, which is acceptable given the moderate schema coverage.

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?

The description clarifies that locale overrides are limited to exact voice, transcriber, and greeting, and explains the language-axis restriction on languages, language_profiles, and follow_caller. However, with 23 parameters and only 61% schema description coverage, many parameters still rely on the schema and are not explained in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (save/publish) and resource (agent voice stack), and distinguishes workflow publication from ordinary publication. It is dense and jargon-heavy, but an agent can identify the operation without opening the schema.

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

Usage Guidelines3/5

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

It gives some context for workflow versus ordinary publication and notes engine-level refusals, but it does not explicitly name when to use this versus get_agent_voice_stack or preview_voice. Usage is mostly implied by the setter name and the embedded constraints.

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.