Skip to main content
Glama

Set up a queue

upsert_queue
Destructive

Creates or edits a queue. The account owner and every queue member need Plus. A queue rings only members who are signed in and available. strategy ring_all, round_robin, least_recent, and priority ring every available member at once. hunt rings one available member at a time for ring_seconds, then the next. overflow and no_agents can be voicemail, another queue, hangup, or an AI receptionist. outbound_caller_id is optional and must already be a caller ID on this account.

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_queue"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
nameNo
overflowNoDestination. Which names work depends on the place being set. Older names still work.
strategyNoring_all, round_robin, least_recent, and priority ring every available member. hunt rings one member at a time in priority order.
no_agentsNoDestination. Which names work depends on the place being set. Older names still work.
member_idsNo
auto_recordNo
ring_secondsNoHunt ring time for each member, unless that member has their own.
overflow_targetNoQueue id, voicemail box, or AI receptionist id for overflow.
receptionist_idNoAI receptionist id when overflow or no_agents is ai_receptionist.
max_wait_secondsNo
no_agents_targetNoQueue id, voicemail box, or AI receptionist id when nobody is signed in.
outbound_caller_idNoOptional caller ID for callbacks and outbound calls in this queue. Must already be allowed on this account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / no_agents / 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"
      +]
    • changedInput schema / properties / overflow / 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. Changed4 schema fields changed
    • addedInput schema / properties / outbound_caller_id
      Added value: +{
      +  "description": "Optional caller ID for callbacks and outbound calls in this queue. Must already be allowed on this account.",
      +  "type": "string"
      +}
    • addedInput schema / properties / ring_seconds
      Added value: +{
      +  "description": "Hunt ring time for each member, unless that member has their own.",
      +  "maximum": 600,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / strategy / description
      Added value: +"ring_all, round_robin, least_recent, and priority ring every available member. hunt rings one member at a time in priority order."
    • changedInput schema / properties / strategy / enum
      Previous value: -[
      -  "round_robin",
      -  "least_recent",
      -  "priority"
      -]New value: +[
      +  "round_robin",
      +  "least_recent",
      +  "priority",
      +  "ring_all",
      +  "hunt"
      +]
  3. Changed6 schema fields changed
    • addedInput schema / properties / no_agents
      Added value: +{
      +  "description": "Destination. Which names work depends on the place being set. Older names still work.",
      +  "enum": [
      +    "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"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / no_agents_target
      Added value: +{
      +  "description": "Queue id, voicemail box, or AI receptionist id when nobody is signed in.",
      +  "type": "string"
      +}
    • addedInput schema / properties / overflow / description
      Added value: +"Destination. Which names work depends on the place being set. Older names still work."
    • changedInput schema / properties / overflow / enum
      Previous value: -[
      -  "voicemail",
      -  "other_queue",
      -  "hangup"
      -]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"
      +]
    • addedInput schema / properties / overflow_target
      Added value: +{
      +  "description": "Queue id, voicemail box, or AI receptionist id for overflow.",
      +  "type": "string"
      +}
    • addedInput schema / properties / receptionist_id
      Added value: +{
      +  "description": "AI receptionist id when overflow or no_agents is ai_receptionist.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds genuinely new behavior: a paid-plan prerequisite for the owner and all members, the availability rule for ringing, and the constraint that outbound_caller_id must already exist on the account. It still does not say what an edit overwrites or whether omitted fields are cleared, which matters 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?

Five short sentences, front-loaded with the action, then the plan prerequisite, then ring semantics and destination options. Every sentence carries information an agent needs; the strategy sentence slightly duplicates the enum descriptions in the schema but is defensible since it groups the four all-ring strategies.

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 13-parameter, no-required-field configuration tool with no output schema and destructive semantics, the description covers the decision-heavy parts (strategy selection, overflow routing, caller ID prerequisite, plan gating). Remaining gaps around member_ids and auto_record are moderate but not blocking for correct invocation.

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

Parameters4/5

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

With 62% schema coverage, the description adds real meaning for the trickiest parameters: it explains hunt versus the other strategies (tying directly to ring_seconds), characterizes the overflow/no_agents destination space beyond the raw enum, and states the precondition on outbound_caller_id. It says nothing about id, name, member_ids, auto_record, or max_wait_seconds, leaving half the surface to the schema.

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?

"Creates or edits a queue" is a specific verb+resource pair that an agent can act on immediately, and the queue resource is distinct from every sibling (upsert_hours, upsert_menu, upsert_receptionist). It does not explicitly compare itself to any sibling, but no sibling could be mistaken for it.

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?

The definition gives strong in-tool context (Plus requirement on the account owner and all members, only signed-in/available members ring, how each strategy behaves), which implicitly guides configuration choices. However, it never states when to use this tool versus alternatives, nor any exclusions or prerequisites for editing an existing queue versus creating a new one.

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.