Skip to main content
Glama

inspect_jwt_metadata_safe

Read-onlyIdempotent

Safely decode a JWT or Bearer header to inspect algorithm, sanitized issuer domain, claim count, and expiry/clock-skew status without exposing subject, PII claims, or signature bytes.

Instructions

Safely decode a JWT or Authorization Bearer header to inspect header alg, sanitized issuer domain (iss), claim count, and clock-skew/expiry status (exp, iat, nbf) without returning raw sub, PII claims, or signature bytes.

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": {
      "tokenOrHeader": "<tokenOrHeader>"
    },
    "name": "inspect_jwt_metadata_safe"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenOrHeaderYesRaw JWT string (eyJ...) or full Authorization: Bearer <jwt> header value to inspect safely.
referenceTimeIsoNoOptional ISO-8601 timestamp against which exp, nbf, and iat deltas are evaluated.
clockSkewToleranceSecNoAllowed clock-skew tolerance in seconds when checking exp and nbf boundaries (default: 5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: it specifies the sanitization boundary (no raw sub, no PII claims, no signature bytes) and that expiry evaluation is clock-skew aware. It does not say what happens on a malformed or truncated token, which is the remaining gap.

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 that front-loads the action and the resource, then lists inspected fields and the sanitization guarantee. Nothing is redundant, though the long comma-delimited field list is slightly harder to scan than a short structured breakdown would be.

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 output schema, the description carries the burden of describing results, and it does so by naming the four inspection outputs and explicitly excluding sensitive values. For a three-parameter read-only tool that is close to sufficient; only error/edge-case behavior for invalid tokens is unaddressed.

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 the baseline is 3. The description reinforces the two optional parameters by referencing clock-skew and expiry status, but adds no syntax, format, or precedence detail beyond what the schema already states for tokenOrHeader, referenceTimeIso, and clockSkewToleranceSec.

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 opens with a specific verb and resource ('Safely decode a JWT or Authorization Bearer header') and enumerates exactly what is inspected: alg, sanitized iss, claim count, and exp/iat/nbf status. That is far more precise than the name alone, though it never contrasts itself with the sibling sanitizers, leaving differentiation to the obvious domain difference (JWT vs HAR/curl).

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 by 'inspect ... without returning raw sub, PII claims, or signature bytes', which hints this is the privacy-preserving way to look at a token. There is no explicit when-to-use statement, no when-not condition, and no named alternative, so the agent must infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.