Skip to main content
Glama

Where your PBX sends SIP trunk calls

get_sip_connection
Read-onlyIdempotent

Where your PBX sends SIP trunk calls

The EchoCall SIP gateway a connected SIP trunk talks to, as the SIP trunk page in billing shows it. Your PBX sends each inbound call as an INVITE to requestUriPattern with the number in E.164 form including +, without registering. Allow ip for signalling and the rtpPorts range over UDP for media; calls from your agents to your PBX come from the same address. Numbers with sipViaGateway true use this gateway. When viaGateway is false, no gateway is in use and every other field is null.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_sip_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuinely useful semantics beyond that: the `viaGateway` false case means no gateway exists and every other field is null, and the signaling/media requirements (`ip`, `rtpPorts` over UDP) explain what the returned values mean. It stops short of explicitly describing the shape of the response object.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first line is a verbatim repeat of the title, wasting the most prominent position on content the agent already has. The remaining paragraph is a dense run-on that interleaves network configuration instructions with field-condition logic, making it harder to scan than a short 'returns X; fields mean Y; null when Z' structure.

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?

With no input parameters and no output schema, the description carries the full burden and largely succeeds: it documents the key fields, the E.164 `+` format, the no-registration behavior, the allowlist requirements, and the all-null case when `viaGateway` is false. What is missing is an explicit statement that the tool returns these fields and what the top-level response looks like.

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?

The tool takes zero parameters, which is the baseline-4 case. The body nonetheless explains the meaning of the fields the caller will encounter (`requestUriPattern`, `sipViaGateway`, `rtpPorts`), which is helpful but technically return-value semantics rather than parameter semantics.

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

Purpose3/5

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

The description names the resource (the EchoCall SIP gateway a SIP trunk talks to) but never states a verb such as 'returns' or 'retrieves'. A reader must infer that this tool fetches gateway configuration rather than, say, describing how to configure one. It is distinguishable in topic from delete_sip_trunk but not framed as a callable retrieval operation.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to call this before configuring a PBX, alongside get_phone_number, or instead of any sibling. The text explains how to consume the values once known, but never states the conditions that should lead an agent to invoke this tool.

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.