Skip to main content
Glama

Update SIP Voice IN Trunk

update_sip_trunk
Destructive

Update one of the authenticated customer's SIP Voice IN Trunks (inbound voice trunks). Pass the trunk id and ONLY the fields to change — never invent values for fields the user did not ask about; untouched fields keep their current values. Fields have the same semantics as in create_sip_trunk. For PSTN trunks use update_pstn_trunk; for phone.systems™ trunks use update_phone_systems_trunk. Returns the updated trunk attributes (passwords masked) or a readable error.

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": {
      "id": "<id>"
    },
    "name": "update_sip_trunk"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUUID of the SIP Voice IN Trunk to update.
popNoDIDWW Point of Presence the trunk is served from. Null unpins the trunk and lets DIDWW pick.
hostNoNew host part of R-URI (SIP host/IP).
nameNoNew trunk name.
portNoNew port part of R-URI. Null resolves the SRV/A record instead.
codecsNoNew codec list, in order of preference. Replaces the whole list, so keep "telephone-event" in it unless the user asked otherwise — it carries RFC 2833 DTMF, and dropping it stops DTMF from reaching the customer equipment.
weightNoLoad-balancing weight among trunk-group members of the same priority; higher is preferred (default 65535).
priorityNoPriority of this trunk; DIDWW contacts the lowest-numbered priority first. Range 0-65535.
rtp_pingNoEnable/disable RTP keep-alive packets.
usernameNoNew user part of R-URI ("{DID}" pattern supported). Null removes it.
auth_userNoNew username for outgoing SIP authentication.
cli_formatNoFormat of the caller ID sent to the customer equipment (default e164).
cli_prefixNoPrefix prepended to the caller ID. Letters, digits, "+" and "#" only, up to 7 characters. Null removes the prefix.
cnam_lookupNoEnable/disable CNAM lookup on the trunk.
descriptionNoDescription of the Voice IN Trunk. Null clears it.
rtp_timeoutNoNew number of seconds without inbound RTP before the call is dropped.
sip_timer_bNoNew INVITE transaction timeout in MILLISECONDS.
sst_enabledNoEnable/disable SIP Session Timers. Enabling requires sst_min_timer and sst_max_timer.
auth_enabledNoEnable/disable outgoing SIP digest authentication (enabling requires auth_user and auth_password).
resolve_ruriNoResolve the R-URI host to an IP before sending the INVITE.
auth_passwordNoNew password for outgoing SIP authentication.
max_transfersNoNew maximum number of SIP transfers (REFER) to follow.
sst_max_timerNoNew maximum session timer in seconds; must be >= sst_min_timer.
sst_min_timerNoNew minimum session timer in seconds.
auth_from_userNoNew From-header user part. Null removes it.
capacity_limitNoMaximum number of simultaneous calls for the Voice IN Trunk. Null lifts the limit.
rx_dtmf_formatNoNew format for DTMF received from the DIDWW network.
sst_accept_501NoTreat a 501 answer to the session refresh as success.
trunk_group_idNoVoice IN Trunk Group UUID to assign the trunk to (or null to detach).
tx_dtmf_formatNoNew format for DTMF sent to the customer equipment.
allowed_rtp_ipsNoNew RTP source restriction (CIDR notation, e.g. "203.0.113.0/24"). Replaces the whole list; up to 10 entries, and 0.0.0.0/0 and ::/0 are rejected. Pass null to remove the restriction and accept RTP from any address.
ringing_timeoutNoSeconds to wait for a 200 OK after a 18x ringing response before ending the routing attempt with the "Ringing timeout" disconnect code. Null restores the platform default.
use_did_in_ruriNoOnly with enabled_sip_registration: put the called DID in the R-URI user part.
auth_from_domainNoNew From-header domain part. Null removes it.
stir_shaken_modeNoNew STIR/SHAKEN attestation passing mode.
max_30x_redirectsNoNew maximum number of 3xx redirects to follow.
src_number_list_idNoVoice IN Number List UUID to apply as the caller-ID filter (or null to detach).
sst_refresh_methodNoNew SIP method used to refresh the session.
transport_protocolNoNew SIP transport protocol.
force_symmetric_rtpNoSend RTP back to the source address of the received stream instead of the SDP address.
sst_session_expiresNoNew Session-Expires value in seconds; must be between sst_min_timer and sst_max_timer. Null clears it.
diversion_relay_modeNoNew Diversion header relay mode.
diversion_inject_modeNoNew Diversion header inject mode.
media_encryption_modeNoNew SRTP media encryption mode.
dns_srv_failover_timerNoNew DNS SRV failover time in milliseconds; must not exceed sip_timer_b.
enabled_sip_registrationNoSwitch the trunk to/from SIP-registration mode. When enabling, host/port are cleared and registration credentials are generated server-side; when disabling, set a host.
network_protocol_priorityNoNew IP version preference when resolving the host.
symmetric_rtp_ignore_rtcpNoWith force_symmetric_rtp, ignore RTCP when learning the source address.
rerouting_disconnect_codesNoNew list of SIP response codes that trigger rerouting ("486" Busy Here, "503" Service Unavailable, ...), plus "Ringing timeout" — the no-answer disconnect reason, which has no SIP code and is not a timeout setting. Replaces the whole list; omit the argument to leave it untouched, or pass null to go back to the platform default set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / codecs / items / enum
      Previous value: -[
      -  "telephone-event",
      -  "G723",
      -  "G729",
      -  "PCMU",
      -  "PCMA",
      -  "speex",
      -  "GSM",
      -  "G726-32",
      -  "G721",
      -  "G726-24",
      -  "G726-40",
      -  "G726-16",
      -  "L16"
      -]New value: +[
      +  "telephone-event",
      +  "G723",
      +  "G729",
      +  "PCMU",
      +  "PCMA",
      +  "speex",
      +  "GSM",
      +  "G726-32",
      +  "G721",
      +  "G726-24",
      +  "G726-40",
      +  "G726-16",
      +  "L16",
      +  "AMR",
      +  "AMR-WB"
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already flag this as destructive and non-idempotent. The description adds important behavior beyond those annotations: untouched fields keep their current values, the response returns updated trunk attributes with passwords masked, and errors are returned in readable form.

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?

The description is front-loaded with the core action and partial-update contract, then adds sibling routing and return behavior. Every sentence earns its place, with no redundant or vague wording.

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 49-parameter mutation tool with no output schema, the description covers the critical cross-cutting information: partial update behavior, alternatives for other trunk types, response shape with masked passwords, and readable errors. Field-level details are appropriately left to the fully described input schema.

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 49 parameters and 100% schema description coverage, the schema already carries the detailed per-field semantics. The description still adds aggregate update semantics that the schema does not state globally: only changed fields should be supplied, untouched fields remain unchanged, and field meanings match create_sip_trunk.

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 first sentence states a specific verb (Update), resource (SIP Voice IN Trunks / inbound voice trunks), and scope (the authenticated customer's trunks). It also distinguishes this tool from the PSTN and phone.systems trunk update tools by naming those alternatives explicitly.

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

Usage Guidelines5/5

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

The description routes PSTN trunks to update_pstn_trunk and phone.systems trunks to update_phone_systems_trunk, giving clear alternative selection guidance. It also states the partial-update contract: pass the id and only the fields to change, and never invent values for fields the user did not ask about.

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