Skip to main content
Glama

Look up a SIP header (RFC-cited)

lookup_sip_header
Read-only

[cost: free (pure CPU, no network) | read-only]

Instant lookup of a SIP header by canonical or compact form (e.g. "Via" / "v", "Diversion", "P-Asserted-Identity", "Identity", "Session-Expires"). Returns canonical form, compact alias, RFC anchor, where it appears (request / response / both), cardinality (exactly-one / at-most-one / one-or-more / any), allowed/forbidden URI parameters with RFC citations, short description, and related headers.

USE FIRST when the user asks about a specific header they saw in a trace - sub-millisecond, no API cost. The cardinality + paramRules fields surface failure modes (e.g. two From: headers, ;tag= on P-Asserted-Identity) without needing a RAG round-trip.

Pair with: lint_sip_request to mechanically check a real request against these rules; search_sip_docs for vendor-specific or 3GPP P-headers not in the bundled registry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHeader name (canonical, e.g. "Via", or compact, e.g. "v"). Case-insensitive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already mark the tool as read-only, and the description adds cost and network behavior ('pure CPU, no network') and performance ('sub-millisecond'). It does not cover error handling or result formatting, but the added context is useful beyond annotations.

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 well-structured with a cost banner, core functionality, usage guidance, and pairing suggestions. Every sentence serves a purpose, and the length is appropriate given the lack of an output schema.

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?

With only one parameter and no output schema, the description fully enumerates the return fields, gives use-case examples, and points to complementary tools. It is comprehensive for the tool's complexity and leaves no critical gap for an agent deciding whether to invoke it.

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 schema already describes the name parameter thoroughly, including case-insensitivity and examples. The description reinforces this with additional examples of canonical and compact forms, adding practical context without redundancy.

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 'Instant lookup of a SIP header' and provides concrete examples, making the action and resource unmistakable. It distinguishes itself from sibling tools like lint_sip_request or search_sip_docs by focusing on the definitional lookup use case.

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?

It explicitly states 'USE FIRST when the user asks about a specific header they saw in a trace' and names specific alternative tools ('lint_sip_request', 'search_sip_docs') for checking or vendor-specific headers. This gives clear when-to-use and when-to-defer 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.