Skip to main content
Glama

IDNTEQ tools

SIP trace anonymizer

sip_trace_anonymize
Read-onlyIdempotent

Rewrites a SIP trace (messages, log lines, sngrep or ngrep output) so it can be shared: IPv4 and IPv6 addresses become documentation addresses (RFC 5737, RFC 3849; private ones keep a separate range), telephone numbers, SIP user parts, display names and host names become placeholders, and Call-ID, tags, Via branches (keeping the z9hG4bK magic cookie), urn:uuid values and digest auth parameters (username, realm, nonce, cnonce, response, opaque) are replaced. The same original value always gets the same replacement, so the call flow still reads correctly. Loopback, unspecified and broadcast addresses are kept. Unlike the browser tool on telcobench.com, this anonymization runs on the server: the trace is sent to the API, processed in memory and not stored. To keep a trace on your machine, use the browser tool.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trace": "INVITE sip:bob@biloxi.example.com SIP/2.0\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds\nMax-Forwards: 70\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:alice@pc33.atlanta.example.com>\nContent-Type: application/sdp\nContent-Length: 213\n\nv=0\no=alice 2890844526 2890844526 IN IP4 192.168.1.10\ns=-\nc=IN IP4 192.168.1.10\nt=0 0\nm=audio 49170 RTP/AVP 0 8 101\na=rtpmap:0 PCMU/8000\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n\nSIP/2.0 100 Trying\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContent-Length: 0\n\nSIP/2.0 180 Ringing\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Length: 0\n\nSIP/2.0 200 OK\nVia: SIP/2.0/UDP pc33.atlanta.example.com;branch=z9hG4bK776asdhds;received=203.0.113.9\nFrom: Alice <sip:alice@atlanta.example.com>;tag=1928301774\nTo: Bob <sip:bob@biloxi.example.com>;tag=a6c85cf\nCall-ID: a84b4c76e66710@pc33.atlanta.example.com\nCSeq: 314159 INVITE\nContact: <sip:bob@198.51.100.20>\nContent-Type: application/sdp\nContent-Length: 188\n\nv=0\no=bob 2808844564 2808844564 IN IP4 198.51.100.20\ns=-\nc=IN IP4 198.51.100.20\nt=0 0\nm=audio 3456 RTP/AVP 8 101\na=rtpmap:8 PCMA/8000\na=rtpmap:101 telephone-event/8000\na=sendrecv\n"
    },
    "name": "sip_trace_anonymize"
  }
}

Input Schema

NameRequiredDescriptionDefault
traceYesThe SIP trace to anonymize.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, and the description adds substantial context beyond that: replacement is deterministic per original value so the call flow remains readable, loopback/unspecified/broadcast addresses are deliberately preserved, and the trace is processed in memory and not stored. That is exactly the kind of behavioral disclosure an agent needs for a privacy-sensitive operation.

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?

It is a single dense paragraph, but front-loaded with purpose and every clause carries information (what is replaced, what is preserved, determinism, hosting model). The comparison to the browser tool at the end is well placed, though the list of replaced items is long enough to slightly slow scanning.

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 single-input, no-output-schema tool, the description covers the important ground: accepted input shapes, transformation behavior, invariants preserved, and the server-side/privacy model. The only missing detail is the explicit return value and the size limit, both minor given the 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 one parameter at 100% schema coverage, the baseline is a 3, but the description adds real meaning by stating what counts as a 'trace' (raw SIP messages, log lines, sngrep/ngrep dumps). It does not mention the 200,000-character input cap, which is the only notable omission.

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 description opens with a specific verb and resource ('Rewrites a SIP trace') plus the goal ('so it can be shared'), then enumerates the exact input formats accepted (messages, log lines, sngrep/ngrep output) and the categories of data that get replaced. That level of specificity makes it clearly distinct from siblings like sip_message_parse or sip_trace_ladder.

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?

It gives a clear routing rule between this tool and the telcobench.com browser tool: use this one for server-side anonymization, use the browser tool to keep the trace on your machine. It does not explicitly state when to prefer it over sibling parsing tools, but the sharing/sanitization context 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