Skip to main content
Glama

Write an IVR phone-menu script

write_ivr_menu

Builds a complete IVR (phone menu / auto-attendant) script for a business: greeting, numbered options, optional Spanish-language switch, and the operator line. English, Spanish, or bilingual.

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": {
      "business": "<business>"
    },
    "name": "write_ivr_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoMenu options in order (press 1, press 2, …). Defaults to the industry's standard four.
businessYesBusiness name (required).
greetingNoCustom opening greeting. Default: 'Thank you for calling {business}.'
industryNoPick the closest industry; supplies sensible default menu options.
languageNoMenu language. 'both' adds a press-nine Spanish switch. Default: en.

Output Schema

NameRequiredDescriptionDefault
ctaNoOne-line invite to try Lobby, with a signup link.
linesYes
recordAtNoURL of the free web tool that records this menu in a real AI voice.
nextStepsNoHelpful UTM-tagged next-step URLs for hold music, phone audio conversion, and setting up Lobby.
scriptTextYesThe full menu as one recordable script.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / nextSteps
      Added value: +{
      +  "description": "Helpful UTM-tagged next-step URLs for hold music, phone audio conversion, and setting up Lobby.",
      +  "properties": {
      +    "holdMusicUrl": {
      +      "description": "Royalty-free hold music ready for business phone systems.",
      +      "type": "string"
      +    },
      +    "phoneAudioConverterUrl": {
      +      "description": "Browser converter for 8kHz mono WAV and u-law phone audio.",
      +      "type": "string"
      +    },
      +    "signupUrl": {
      +      "description": "Start a 7-day trial and put Lobby on your phone line.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "holdMusicUrl",
      +    "phoneAudioConverterUrl",
      +    "signupUrl"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / cta
      Added value: +{
      +  "description": "One-line invite to try Lobby, with a signup link.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It does disclose the generated content and that the Spanish switch is optional and tied to the language choice, which is useful. However, it says nothing about whether anything is persisted, whether generation is deterministic, or limits/rate behavior for a write-prefixed tool, leaving real gaps.

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

Conciseness5/5

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

A single front-loaded sentence that lists the concrete deliverables and the language scope without redundant phrasing. Every clause earns its place and nothing is buried.

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 five-parameter generation tool with a fully documented schema and an output schema, the description covers what is produced and the language variants well. Only the relationship to the sibling write_phone_script and any side-effect/persistence notes are missing.

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 coverage is 100%, and the schema already explains defaults for options, greeting, industry, and language, so the baseline is 3. The description echoes the Spanish-switch behavior already stated in the language enum and adds no new semantics such as option ordering rules or bilingual formatting.

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 names a specific verb and artifact: builds a complete IVR/auto-attendant script with greeting, numbered options, Spanish switch, and operator line. An agent can picture the output immediately. It never distinguishes itself from the sibling write_phone_script, so it falls short of a 5.

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?

Usage is implied rather than stated: the language clause ('English, Spanish, or bilingual') hints at the relevant scenario, but there is no explicit when-to-use, when-not-to-use, or pointer to write_phone_script as the alternative for non-IVR scripts. The agent must infer selection from the name alone.

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