Skip to main content
Glama

Set who answers

set_number_routing
DestructiveIdempotent

Points a number at ring_me, personal_assistant, a receptionist, a menu, a queue, voicemail, busy, or decline. ai_receptionist is the same destination as receptionist. An optional closed target uses the opening hours. A shared line, receptionist, menu, or queue needs Plus.

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": "set_number_routing"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberNo
targetNoDestination. Which names work depends on the place being set. Older names still work.
number_idNo
target_idNo
auto_recordNo
closed_targetNoDestination. Which names work depends on the place being set. Older names still work.
time_group_idNo
closed_target_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / closed_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"
      +]
    • changedInput schema / 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. Changed4 schema fields changed
    • addedInput schema / properties / closed_target / description
      Added value: +"Destination. Which names work depends on the place being set. Older names still work."
    • addedInput schema / properties / closed_target / enum
      Added 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 / target / description
      Added value: +"Destination. Which names work depends on the place being set. Older names still work."
    • addedInput schema / properties / target / enum
      Added 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. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds plan prerequisites ('needs Plus'), the alias equivalence (ai_receptionist == receptionist), and the meaning of closed_target. It stops short of stating explicitly that an existing routing assignment is replaced and what happens on a rejected target.

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?

Four short, front-loaded sentences with no filler; the destination list leads and prerequisites follow. 'A shared line, receptionist, menu, or queue needs Plus' is slightly compressed but still parses.

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 an eight-parameter destructive mutation with no output schema, it covers the conceptual model and plan gating but omits how to specify the number (number vs number_id), what auto_record does, and what a successful response looks like.

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 only 25%, and the description compensates for the two enum params by naming real destinations and resolving the ai_receptionist alias the schema text does not. The other six parameters (number, number_id, target_id, auto_record, closed_target_id, time_group_id) get no explanation, leaving ambiguity about how the target number is identified.

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?

States a concrete verb and resource ('Points a number at ...') and enumerates the destination set, so the agent knows this sets inbound routing. It never names the near siblings set_callback_routing or set_number_channels, so the boundary between them must be inferred.

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?

Gives real usage context - the available destinations, that a closed target follows opening hours, and that shared line/receptionist/menu/queue need Plus. It does not say when to pick this over set_callback_routing or set_number_channels, nor when to choose one target over another.

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.