Skip to main content
Glama

Configure callback routing

set_callback_routing
DestructiveIdempotent

Save opt-in callback routing for an owned number without replacing the default agent. Only a unique real outbound call from the same account and number within lookbackSecs (60 to 604800) may route the returning caller to one of agentIds. Unknown or ambiguous callers keep the default. Empty agentIds disables immediately. Optional firstMessage is spoken only for a verified callback. The response engineSyncRequired means the default agent's engine webhook inbound_route_url must separately be activated with readback; this operation does not rewrite live agent configuration. Same as PUT /v1/numbers/{e164}/callback-routing.

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": {
      "agentIds": "<agentIds>",
      "lookbackSecs": "<lookbackSecs>",
      "e164": "<e164>"
    },
    "name": "set_callback_routing"
  }
}

Input Schema

NameRequiredDescriptionDefault
e164YesOwned phone number in E.164 format, such as +420266266641.
agentIdsYesOwned active engine agents eligible for verified callbacks; an empty list disables callback routing.
firstMessageNoOptional greeting spoken only for a verified campaign callback, up to 500 characters.
lookbackSecsYesMaximum age of a real outbound call in seconds, from 60 to 604800.
missedFirstMessageNoOptional greeting for a verified callback whose preceding outbound call had no conversation with the customer (not answered, voicemail, voice menu or nobody spoke), up to 500 characters. Without it firstMessage applies to every verified callback.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it explains which callers are affected, what happens to unknown callers, that empty agentIds disables immediately, and critically that engineSyncRequired means the default agent's engine webhook inbound_route_url must be activated separately with readback because this call does not rewrite live agent configuration.

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?

Sentences are front-loaded with the action and its key constraint, then progress to conditions, disable semantics, greeting behavior, and the engine-sync caveat. Dense but every sentence carries distinct operational information with no filler.

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

Completeness5/5

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

For a destructive, idempotent mutation with no output schema and 100% schema coverage, the description supplies everything an agent needs: eligibility rules, the disable path, greeting scope, and an explanation of the engineSyncRequired response field plus the follow-up action it implies.

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 description coverage is 100%, and the description largely restates schema content (lookbackSecs 60-604800, empty agentIds disables, firstMessage only for verified callbacks). It adds little interpretation beyond the schema and never mentions missedFirstMessage, so the baseline of 3 is appropriate.

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

Purpose5/5

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

The opening sentence names a specific verb and resource ('Save opt-in callback routing for an owned number') and immediately delimits scope with 'without replacing the default agent', which distinguishes it from routing tools that rewrite default routing. It also maps the operation to a concrete endpoint (PUT /v1/numbers/{e164}/callback-routing).

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

Usage Guidelines4/5

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

Usage is spelled out clearly: routing only applies to a unique real outbound call from the same account and number within lookbackSecs, unknown or ambiguous callers keep the default, and an empty agentIds disables immediately. It does not explicitly point at the read counterpart (get_callback_routing) or contrast with set_number_routing, so a 4 rather than a 5.

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.