Skip to main content
Glama

Assign DIDs to Voice IN Trunk

assign_did_to_trunk
DestructiveIdempotent

Assign one or more of the customer's DIDs (did_ids, max 100 per call) to a Voice IN Trunk so inbound calls route to it. trunk_id accepts ANY trunk id returned by list_trunks — SIP, PSTN, phone.systems™ or a trunk group. Pass trunk_id null (or omit it) to UNASSIGN the listed DIDs instead (they then route inbound calls nowhere). The batch is all-or-nothing: every id must resolve to a DID in the account and every assignment must be valid, otherwise NOTHING is changed and a readable error explains why. Returns the trunk (name and type) plus the assigned/unassigned numbers and count; a number that was already routed elsewhere is reported as re-routed FROM its previous trunk (assigning replaces the existing routing).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
did_idsYesUUIDs of the DIDs to configure (1..100, must all belong to the customer).
trunk_idNoUUID of the target Voice IN Trunk — any type from list_trunks (SIP, PSTN, phone.systems™ or trunk group). Pass null (or omit) to unassign the DIDs.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (destructiveHint=true, idempotentHint=true), and the description adds substantial extra context: all-or-nothing batch semantics, that assigning replaces existing routing (reported as re-routed FROM the previous trunk), the null-to-unassign overload, and what the response contains. This is far beyond what annotations provide.

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?

A single front-loaded paragraph where each sentence carries distinct information (routing, accepted ids, unassign mode, atomicity, return shape). It is dense but no sentence is wasted; only the length of the single block slightly hurts scanability.

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?

With no output schema, the description proactively documents return contents (trunk name/type, assigned/unassigned numbers and count, re-routed reporting). Combined with atomicity and unassign behavior, an agent has everything needed to call it correctly.

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?

Schema coverage is 100%, so the baseline is 3. The description adds real meaning beyond the schema: trunk_id accepts any type returned by list_trunks (SIP, PSTN, phone.systems, trunk group), and null/omit means unassign rather than a normal target.

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?

States a specific verb (assign) and resource (DIDs → Voice IN Trunk) plus the routing consequence. It is clearly distinguishable from siblings like assign_did_to_sms_trunk and assign_did_to_capacity_group by naming the Voice IN Trunk target.

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?

Gives clear context: which trunk ids are acceptable, the null/omit path that turns the call into an unassign, and the max-100 batch constraint. It doesn't explicitly name the sibling assignment tools to steer between them, but the routing scenario is unambiguous.

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.

Resources