Skip to main content
Glama

JWT Decoder API - read header, claims and expiry

jwt_decoder
Read-onlyIdempotent

Decode a JSON Web Token: header, payload claims, algorithm, expiry and issued-at as dates. Signature is not verified. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/jwt-decoder.

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": {
      "text": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMiLCJleHAiOjE5MDAwMDAwMDB9.c2ln"
    },
    "name": "jwt_decoder"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations: annotations only cover read-only/idempotent/open-world, while the description discloses the key behavioral caveat that the signature is not verified, that processing is server-side with files deleted immediately and nothing stored, and that there is a 5 calls/day per-IP quota plus two paid auth paths (X-API-Key and x402). Those are exactly the facts an agent needs before calling — trust boundary, privacy posture, and rate/auth constraints.

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?

Three tight sentences in a deliberate order: what it returns, the safety caveat, then operational/privacy/access facts. Nothing is repeated and the only 'extra' wording (URLs, price) is functional rather than filler.

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 no output schema, the description carries the burden of describing return values and it does so explicitly (header, claims, algorithm, expiry/issued-at as dates). Combined with the no-verification caveat, storage behavior, quota, and both auth mechanisms, an agent has everything required to call it 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 coverage is 100%, so the baseline is 3, and the sole parameter's own schema text ('The text') is nearly meaningless. The description implicitly clarifies that the input is an encoded JWT string, which is a small but genuine addition; however it never states whether the token needs the 'Bearer ' prefix, how malformed input is treated, or any size limits.

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?

Names a specific verb and resource ('Decode a JSON Web Token') and enumerates exactly what is produced: header, payload claims, algorithm, expiry and issued-at as dates. That verb+resource framing separates it cleanly from adjacent text-processing siblings such as base64_encode_decode without needing to name them.

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 context is only implied: 'Signature is not verified' signals it is unsuitable for trust/security validation, but there is no explicit when-to-use or when-to-prefer-an-alternative statement. The free-tier and paid-access sentences describe cost and authentication, not tool selection, so an agent gets no routing guidance beyond the tool's obvious domain.

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