Skip to main content
Glama

Agent Data Hub

JWT decoder: header, claims, expiry, risk warnings

security_jwt_decode
Read-onlyIdempotent

Decode a JSON Web Token (with or without 'Bearer ') and get header, payload claims, issuer/subject/audience, issued/not-before/expiry as ISO dates, status (active, expired, not_yet_valid), seconds until expiry, and warnings (alg none, HMAC shared secret, no exp, lifetime > 30 days). Detects encrypted JWE. Decode only — the signature is not verified; the token is used only to answer the request. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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": {
      "token": "<token>"
    },
    "name": "security_jwt_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe JWT, e.g. eyJhbGciOi... (a leading 'Bearer ' is ignored)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description adds materially more: no signature verification, the token is used only to answer the request (a privacy assurance), encrypted JWE detection, the specific risk warnings produced, and the pricing model ($0.001/call, first 10 free per day). These are behavioral facts an agent cannot get from the annotations.

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?

The output payload is front-loaded in the first clause and the critical caveat (no verification) plus cost follow in order of importance. It is a long run-on sentence with heavy parenthetical listing, but nearly every clause carries information an agent needs.

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 takes on the burden of describing return values and does so thoroughly, including status enumerations and warning categories. It also discloses the cost model and the verification limitation, so an agent has everything needed 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?

There is a single parameter at 100% schema coverage, and the schema already documents that a leading 'Bearer ' is ignored. The description's parenthetical '(with or without Bearer )' merely restates the schema, so it adds no new meaning beyond structured fields — 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?

States a specific verb (Decode) and resource (JSON Web Token) and enumerates exactly what the caller gets back: header, claims, issuer/subject/audience, ISO dates, status, seconds until expiry, and warnings. No sibling tool in the catalog does JWT decoding, so the tool is unambiguous without differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Decode only — the signature is not verified' clause gives a clear condition for when this tool is appropriate (inspection, not verification) and warns about the key limitation. It does not name an alternative for signature verification or state when not to call it, so it stops short of full when/when-not 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.

Resources