Skip to main content
Glama

Create SIP Voice IN Trunk

create_sip_trunk

Create a SIP Voice IN Trunk (inbound voice trunk) for the authenticated customer. A minimal trunk only needs name and host (the host part of R-URI in the INVITE request). Set ONLY the parameters the user explicitly asked for and never invent values — every omitted field keeps the same default the customer panel applies. To register a SIP endpoint instead of pointing at a host, set enabled_sip_registration to true and omit host/port — registration credentials are generated server-side and returned in the configuration (password masked). For a PSTN call-forwarding trunk use create_pstn_trunk; for a phone.systems™ trunk use create_phone_systems_trunk. Returns the created trunk id and its configuration, or a readable error if the configuration is invalid.

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

Input Schema

NameRequiredDescriptionDefault
popNoDIDWW Point of Presence the trunk is served from. Omit to let DIDWW pick.
hostNoHost part of R-URI in the INVITE request (SIP host/IP). Required unless enabled_sip_registration is true.
nameYesFriendly name of the Voice IN Trunk (must be unique for the customer).
portNoOptional. Port part of R-URI in the INVITE request (default 5060; if omitted, the SRV/A record is resolved).
codecsNoOptional. Codecs which will be sent with the SDP Offer, 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_pingNoOptional. Send RTP keep-alive packets to the customer equipment (default false).
usernameNoOptional. User part of R-URI in the INVITE request. You may use the "{DID}" pattern, which is replaced by the called DID number in E.164 format.
auth_userNoOptional. Username for outgoing SIP authentication. Only with auth_enabled true.
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.
cnam_lookupNoOptional. Enable CNAM lookup on the trunk (default false/disabled).
descriptionNoDescription of the Voice IN Trunk.
rtp_timeoutNoOptional. Drop the call after this many seconds without inbound RTP (default 30).
sip_timer_bNoOptional. INVITE transaction timeout in MILLISECONDS (default 8000).
sst_enabledNoOptional. Enable SIP Session Timers (default false). Requires sst_min_timer and sst_max_timer.
auth_enabledNoOptional. Enable outgoing SIP digest authentication (requires auth_user and auth_password).
resolve_ruriNoOptional. Resolve the R-URI host to an IP before sending the INVITE (default false).
auth_passwordNoOptional. Password for outgoing SIP authentication. Only with auth_enabled true.
max_transfersNoOptional. Maximum number of SIP transfers (REFER) to follow (default 0).
sst_max_timerNoOptional. Maximum session timer in seconds (default 900); must be >= sst_min_timer.
sst_min_timerNoOptional. Minimum session timer in seconds (default 600). Only with sst_enabled.
auth_from_userNoOptional. Custom From-header user part used with outgoing authentication.
capacity_limitNoMaximum number of simultaneous calls for the Voice IN Trunk.
rx_dtmf_formatNoOptional. How DTMF is RECEIVED from the DIDWW network.
sst_accept_501NoOptional. Treat a 501 answer to the session refresh as success (default true).
trunk_group_idNoOptional Voice IN Trunk Group UUID to assign the trunk to.
tx_dtmf_formatNoOptional. How DTMF is SENT to the customer equipment.
allowed_rtp_ipsNoOptional. Restrict the RTP source to these IPs/subnets (CIDR notation, e.g. "203.0.113.0/24"). Up to 10 entries; 0.0.0.0/0 and ::/0 are rejected. Omit to 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. Omit to use the platform default.
use_did_in_ruriNoOptional. Only with enabled_sip_registration: put the called DID (instead of the registered username) in the R-URI user part.
auth_from_domainNoOptional. Custom From-header domain part used with outgoing authentication.
stir_shaken_modeNoOptional. How STIR/SHAKEN attestation is passed to the customer equipment.
max_30x_redirectsNoOptional. Maximum number of 3xx redirects to follow (default 0).
src_number_list_idNoOptional Voice IN Number List UUID (from list_voice_in_number_lists) to apply as the caller-ID (source number) filter on this trunk.
sst_refresh_methodNoOptional. SIP method used to refresh the session (default Invite).
transport_protocolNoOptional. SIP transport protocol (default UDP).
force_symmetric_rtpNoOptional. Send RTP back to the source address of the received stream instead of the SDP address (default false).
sst_session_expiresNoOptional. Session-Expires value in seconds; must be between sst_min_timer and sst_max_timer.
diversion_relay_modeNoOptional. How the Diversion header is relayed to the customer equipment.
diversion_inject_modeNoOptional. Whether to add a Diversion header with the called DID number.
media_encryption_modeNoOptional. SRTP media encryption mode (default Disable).
dns_srv_failover_timerNoOptional. Milliseconds before failing over to the next DNS SRV record (default 2000). Must not exceed sip_timer_b.
enabled_sip_registrationNoOptional. When true the trunk accepts a SIP registration instead of forwarding to a fixed host: incoming registration credentials are generated server-side and host/port must be omitted.
network_protocol_priorityNoOptional. IP version preference when resolving the host (default "force IPv4").
symmetric_rtp_ignore_rtcpNoOptional. With force_symmetric_rtp, ignore RTCP when learning the source address (default false).
rerouting_disconnect_codesNoOptional. SIP response codes that trigger rerouting to the next trunk-group member ("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 keep the platform defaults.

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.6/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world creation. The description adds substantive behavior beyond them: omitted fields inherit the customer panel's defaults, registration credentials are generated server-side with the password masked, and the call returns either the trunk id plus configuration or a readable error on invalid configuration. It stops short of flagging duplicate-name failure behavior explicitly, so not a 5.

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?

Front-loaded with the core action, then the minimal-argument rule, then the registration variant, then sibling routing, then return behavior. Dense but every sentence carries a distinct decision the agent must make; no filler for a 48-parameter tool.

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

Completeness4/5

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

Given 48 parameters, one required field, and no output schema, the description covers the essentials an agent needs: minimal viable call, the registration branch, defaults, and return/error shape. Not quite exhaustive — it does not mention uniqueness constraints on name or whether any fields are immutable after creation — but nothing critical is missing.

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, but the description adds cross-parameter semantics the schema cannot express: a minimal trunk is just name+host, and registration mode requires omitting host/port entirely. Those conditional relationships materially change how an agent fills 48 parameters.

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 and resource ('Create a SIP Voice IN Trunk (inbound voice trunk)') and immediately distinguishes itself from create_pstn_trunk and create_phone_systems_trunk by name. An agent can tell which trunk-creation tool to pick without opening a schema.

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?

Gives explicit routing rules: PTSN forwarding goes to create_pstn_trunk, phone.systems to create_phone_systems_trunk, and registration mode is selected via enabled_sip_registration with host/port omitted. It also sets a usage discipline ('set ONLY the parameters the user explicitly asked for and never invent values'), which is unusually actionable guidance.

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