Skip to main content
Glama

Validate STIR/SHAKEN Identity JWT

validate_stir_shaken_identity
Read-only

[cost: external_io (HTTPS fetch of the x5u cert) | read-only]

Verify a SIP Identity: JWS (RFC 8224 / SHAKEN). Fetches the x5u certificate, parses it, verifies the ES256 signature against the cert's public key, and optionally validates the RCD icon hash (RFC 9795). The icon-hash check accepts both payload.rcdi["/icn"] (RFC 9795 §6.1 spec form) and the legacy payload.rcdi["icn"] form deployed in the wild - the legacy form raises a warning unless strictRfc9795: true (then it fails). Returns per-check pass/fail/warning with details - useful for diagnosing 438 Invalid Identity Header rejections, expired certs, and tampered PASSporTs.

Pair with: stir_attestation_explainer for the human-readable A/B/C interpretation; lookup_response_code(438) for the SIP-side context; lint_sip_request for non-cryptographic structural checks on the host INVITE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rcdiNoFull `payload.rcdi` claim. The validator looks up `/icn` first (RFC 9795 §6.1 spec form), then falls back to the legacy `icn` key (still seen in the wild). A legacy hit produces a `rcdi-pointer-form` warning unless `strictRfc9795: true` (then it fails).
iconUrlNoRCD icon URL - `payload.rcd.icn`. Omit if no Rich Call Data icon.
infoUrlNoCert URL from the SIP Identity header `info=` param (or the JWT `x5u`). If omitted, signature verification is skipped.
headerB64YesBase64url-encoded JWS protected header (the first dot-separated segment).
payloadB64YesBase64url-encoded JWS payload (the second segment).
signatureB64YesBase64url-encoded ES256 signature (the third segment, raw R||S, 64 bytes).
strictRfc9795NoWhen true, reject the legacy `rcdi['icn']` key as a hard failure rather than warning. Default false.
expectedIconHashNoPre-extracted icon hash, e.g. `sha256-XYZ` (RFC 9795 §6.1 form `<algorithm>-<base64>`). Pass this OR `rcdi`.

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint, openWorldHint), the description discloses an external IO cost (HTTPS fetch of x5u cert), the read-only nature, specific edge-case behavior (legacy rcdi['icn'] form handling, strictRfc9795 warning/fail), and that it returns per-check pass/fail/warning. This adds significant behavioral context not present in 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 long but every sentence earns its place: it leads with a cost annotation, then a concise functional summary, followed by edge-case details, use-case rationale, and explicit sibling pairings. It is well-structured and front-loaded, with no fluff.

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?

Despite the tool's complexity (8 params, no output schema), the description is thorough: it covers cost, safety, functionality, edge cases, diagnostics use cases, and companion tools. The input schema fully documents all parameters, so the description is complete enough for an agent to select and invoke correctly.

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% (per context signals) and the schema already elaborately describes rcdi, strictRfc9795, expectedIconHash, and the B64 segments. The tool description adds no additional parameter-level meaning beyond what the schema states, so the baseline 3 applies.

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 states a specific verb (Verify) and resource (SIP Identity: JWS) with detailed cryptographic operations: fetches x5u certificate, parses it, verifies ES256 signature, and validates RCD icon hash. It also differentiates from sibling tools by naming stir_attestation_explainer for A/B/C interpretation and lookup_response_code(438) for SIP context.

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?

The description explicitly states when the tool is useful ('diagnosing 438 Invalid Identity Header rejections, expired certs, and tampered PASSporTs') and gives explicit alternatives to pair with: stir_attestation_explainer, lookup_response_code(438), and lint_sip_request. This provides clear when-to-use and when-to-use-other tools 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.

TDQS

A4.4/5.0
Disambiguation4/5

Most tools have clearly distinct purposes. The only notable overlap is between detect_sip_stack and detect_sip_vendor_from_config, which could cause confusion. Otherwise, each tool covers a unique aspect of SIP debugging.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (e.g., compare_sdp_offer_answer, detect_sip_stack, validate_stir_shaken_identity). No mixing of styles.

Tool Count4/5

22 tools is slightly above the typical 3-15 range, but each tool serves a specific and necessary function for comprehensive SIP debugging. The count is justified by the server's broad scope.

Completeness4/5

The tool set covers a wide range of SIP debugging tasks: parsing, diffing, DNS, STIR validation, config review, codec comparison, etc. Minor gaps exist (e.g., no dedicated RTP analysis tool), but core workflows are well-supported.