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 €9/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. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only establish readOnly/idempotent/openWorld; the description adds the material facts an agent cannot infer: the signature is not verified, processing happens server-side with input discarded immediately, and the free tier is capped at 5 calls/day per IP. The authentication paths (X-API-Key or x402 payment) are spelled out with concrete endpoints, which is exactly the kind of operational context the annotations do not carry.

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?

Front-loaded with the purpose and the critical caveat, then privacy and pricing. Every sentence carries information, though the monetization sentence is dense enough to slow scanning and the file-deletion clause is noise for a text-only input.

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 usefully defines the return payload and the date normalization, and the read-only safety profile is covered. Minor gaps remain: no guidance on malformed or unsigned-token inputs, and the "files" reference introduces ambiguity about whether any file input is possible.

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?

There is a single required parameter whose schema text is only "The text", so the description's framing that the tool decodes a JWT is what tells the agent the string must be a token. Baseline 3 applies given full schema coverage, and the stray mention of "files are deleted" adds no meaning for a parameter that takes no file.

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?

States a specific verb and resource ("Decode a JSON Web Token") and enumerates exactly what comes back: header, payload claims, algorithm, expiry and issued-at rendered as dates. That output inventory distinguishes it from generic siblings like base64_encode_decode at a glance.

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 rather than stated: "Signature is not verified" tells the agent this is an inspection tool, not a validator, which is genuinely useful routing information. However, there is no explicit when-to-use or when-not-to-use framing and no named alternative for verification or for decoding other token formats.

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