Skip to main content
Glama

Update a phone number

update_phone_number

Update a phone number

Changes which agent answers on a number and the label it carries in the dashboard. Only the fields present in the body are written, everything else is left alone; a body with no known field is rejected with 400. The response is an acknowledgement message only, it does not echo the updated record: read the number back with the GET endpoint if you need the new state. Assigning an agent here does not itself provision the number at the carrier, it only changes the routing recorded for it.

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": {
      "phoneNumberId": "<phoneNumberId>",
      "body": "<body>"
    },
    "name": "update_phone_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe fields to change. `voiceAgentId` points the number at a voice agent, or clears the routing when null, and `label` sets the display name returned as `friendlyName`.
phoneNumberIdYesIdentifier of the phone number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation profile is partly covered. The description still adds real value with the ack-only response (no record echo), the 400 on a body with no known field, and the caveat that agent assignment does not provision at the carrier. However, 'only fields present are written' describes idempotent partial-update behavior while the annotations declare idempotentHint=false – not a flat contradiction, but an ambiguity an agent would want resolved.

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 payload-changing information is front-loaded in the first two sentences, and the response/no-provisioning caveats follow in a logical order. Every clause carries information, though the opening line simply restates the title and could be merged, and the final sentence is a long run-on.

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 two-parameter mutation with a nested body, no output schema, and no auth details in the schema, the description covers what changes, what is left untouched, the failure mode, the shape of the response, and the side effects it does not trigger. An agent has everything needed to call it correctly and interpret the result.

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%: both phoneNumberId and the nested body fields are fully documented, including that voiceAgentId=null clears routing and label maps to friendlyName. The description reinforces the field meaning but adds no syntax or format detail the schema lacks. With the schema doing the heavy lifting, the baseline of 3 applies.

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 gives a concrete verb and resource and spells out exactly the two mutables: 'Changes which agent answers on a number and the label it carries in the dashboard.' That is far more informative than the tautological title. It stops short of naming a sibling tool explicitly, instead gesturing at 'the GET endpoint', so it is clear but not maximally differentiated.

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?

It establishes clear context: patch-style partial writes, a 400 for an empty/unknown-field body, and a redirect to GET when the caller wants to see the resulting state. The final sentence implicitly separates this from carrier provisioning siblings (purchase/cancel), but it never states exclusion conditions for other update tools in the family, so the routing guidance is implied rather than explicit.

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.