Skip to main content
Glama

SIP trace messages

sip_trace_messages
Read-onlyIdempotent

The call's SIP messages in time order, both legs, read from the stored trace (kept 1 hour after hangup): status or request line, Reason, Warning, P-Asserted-Identity, Diversion and more. Customer service and super admin only. Credentials are never shown and numbers are masked to the last four digits.

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

Input Schema

NameRequiredDescriptionDefault
call_idYesThe call's id (CDR call_id).
leg_uuidNoOnly the SIP dialog of this leg (uuid from `legs`).
sip_call_idNoOnly this SIP Call-ID.
consumer_user_idNoAct on this seat (own seat, account owner or admin, or staff). Same checks as the site.
method_or_statusNoOnly this method (INVITE, ACK) or status code (486).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds substantive context beyond them: a one-hour post-hangup retention window, an authorization requirement (customer service and super admin only), and redaction behavior (credentials never shown, numbers masked to last four). These are exactly the facts an agent needs before calling.

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 dense sentence with the payload front-loaded: what is returned, in what order, from where, then the constraints. The field enumeration ('status or request line, Reason, Warning, P-Asserted-Identity, Diversion and more') runs long but earns its place by telling the agent what to expect in the output.

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?

There is no output schema, yet the description enumerates the key returned fields, so return-value expectations are set. Combined with retention, permission gating, and redaction, plus a fully documented schema, nothing an agent needs to call this correctly is missing.

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 description coverage is 100%, so all five parameters, including leg_uuid, sip_call_id and method_or_status, are already documented in the schema. The description adds only the implied notion of 'both legs' versus a single leg; it gives no filter syntax or combination semantics beyond that, so baseline 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 names a specific resource (the call's SIP messages) and scopes it precisely: time-ordered, both legs, read from the stored trace. An agent knows exactly what it gets. It does not explicitly contrast with a sibling like search_messages, which keeps it from a 5.

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

Usage Guidelines3/5

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

Usage is implied (SIP-level diagnostics on a specific call) rather than stated, and no alternative is named. The retention note 'kept 1 hour after hangup' is a genuine usage constraint an agent must respect, and the role restriction further narrows applicability, but there is no explicit when-not 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.