Skip to main content
Glama

Set up a phone menu

upsert_menu
Destructive

Creates or edits a press-1 menu. The account owner needs Plus. A key can ring a person, ring a queue, or send the caller to an AI receptionist. A direct person target and every queue agent also need Plus. Older target names still work.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
keysNoPress-1 choices. Sending keys replaces the menu's choices.
nameNo
enabledNo
greetingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / keys / items / properties / target / enum
      Previous value: -[
      -  "ai_receptionist",
      -  "busy",
      -  "call_forwarding",
      -  "call_forwarding_function",
      -  "consumer_user_id",
      -  "decline",
      -  "default",
      -  "end",
      -  "forward_native",
      -  "function",
      -  "hangup",
      -  "menu",
      -  "other_queue",
      -  "personal_ai_assistant",
      -  "personal_assistant",
      -  "queue",
      -  "receptionist",
      -  "ring_me",
      -  "this_device",
      -  "user",
      -  "voicemail"
      -]New value: +[
      +  "ai_receptionist",
      +  "busy",
      +  "call_forwarding",
      +  "call_forwarding_function",
      +  "consumer_user_id",
      +  "decline",
      +  "default",
      +  "end",
      +  "forward_native",
      +  "forward_user",
      +  "function",
      +  "hangup",
      +  "menu",
      +  "other_queue",
      +  "personal_ai_assistant",
      +  "personal_assistant",
      +  "queue",
      +  "receptionist",
      +  "ring_me",
      +  "user",
      +  "voicemail"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / keys / items / properties / target / description
      Previous value: -"user rings a person. queue rings a queue. ai_receptionist sends the caller to an AI receptionist."New value: +"Destination. Which names work depends on the place being set. Older names still work."
    • changedInput schema / properties / keys / items / properties / target / enum
      Previous value: -[
      -  "user",
      -  "queue",
      -  "ai_receptionist"
      -]New value: +[
      +  "ai_receptionist",
      +  "busy",
      +  "call_forwarding",
      +  "call_forwarding_function",
      +  "consumer_user_id",
      +  "decline",
      +  "default",
      +  "end",
      +  "forward_native",
      +  "function",
      +  "hangup",
      +  "menu",
      +  "other_queue",
      +  "personal_ai_assistant",
      +  "personal_assistant",
      +  "queue",
      +  "receptionist",
      +  "ring_me",
      +  "this_device",
      +  "user",
      +  "voicemail"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / keys / description
      Added value: +"Press-1 choices. Sending keys replaces the menu's choices."
    • addedInput schema / properties / keys / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / keys / items / properties
      Added value: +{
      +  "consumer_user_id": {
      +    "description": "Person on this account when target is user.",
      +    "type": "string"
      +  },
      +  "digit": {
      +    "description": "Key the caller presses, such as 1.",
      +    "type": "string"
      +  },
      +  "queue_id": {
      +    "description": "Queue on this account when target is queue.",
      +    "type": "string"
      +  },
      +  "receptionist_id": {
      +    "description": "AI receptionist on this account when target is ai_receptionist.",
      +    "type": "string"
      +  },
      +  "target": {
      +    "description": "user rings a person. queue rings a queue. ai_receptionist sends the caller to an AI receptionist.",
      +    "enum": [
      +      "user",
      +      "queue",
      +      "ai_receptionist"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / keys / items / required
      Added value: +[
      +  "digit",
      +  "target"
      +]
  4. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true, so the agent knows this is a destructive write; the description usefully adds entitlement requirements (account owner needs Plus, person targets and queue agents need Plus) and a backward-compatibility note that old target names still work. However it never warns that submitting keys replaces existing menu choices or that the call is not idempotent, both of which matter for a destructive upsert.

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?

The description front-loads the core verb phrase and stays to five short sentences with no filler. The Plus requirement is stated twice in slightly different forms, which is mild redundancy but keeps the prerequisite near the target that triggers it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent write with no output schema and five weakly documented parameters, the description covers entitlements and target semantics but leaves the create-vs-edit mechanics and the name/enabled/greeting fields unexplained. It is adequate to attempt a call but not complete enough to predict the effect on an existing menu.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% across five parameters, so the description carries a heavy burden and only partially meets it: it explains that a key can ring a person, a queue, or an AI receptionist, mapping loosely to the keys.target field, and hints that old target names remain valid. The other parameters (id, name, enabled, greeting) get no explanation anywhere, and the description never clarifies that supplying id edits an existing menu while omitting it creates one.

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 opens with a specific verb and resource: 'Creates or edits a press-1 menu', which tells an agent exactly what the tool produces. It does not name or contrast any sibling (crm_set_menu, crm_get_menu, list_phone_system), so the agent must infer that this is the write path for menus rather than the read one.

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 only implied: 'creates or edits' plus a plan requirement suggests this is the write tool for menus, but there is no explicit when-to-use rule and no statement of when to prefer a sibling or how to distinguish create from edit. No exclusions or preconditions beyond 'needs Plus' are given.

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.