Skip to main content
Glama

ScorpTech x402 API

Jwt Decode

jwt_decode
Read-onlyIdempotent

Decode a JWT (JWS or JWE header), POST only (token in the JSON body, never in a URL): header, claims, alg/kid, exp/nbf/iat status with leeway, aud/iss checks, and security findings (alg none, HMAC alg-confusion risk, jku/x5u/jwk header keys, missing exp, odd kid). Optionally verifies the signature against a JWKS URL you supply, or one discovered from the token's https iss via OpenID discovery (fetched SSRF-safely): RS256/384/512, PS256/384/512, ES256/384/512, ES256K and EdDSA. Never trusts alg none. Price: $0.005 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/jwt-decode

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audNoExpected audience to check
issNoExpected issuer to check
tokenYesCompact JWT in the JSON body (a "Bearer " prefix is stripped). Alias: jwt
leewayNoClock skew allowance in seconds, 0-600 (default 60)
discoverNoVerify via OpenID discovery from the https iss claim when no jwks_url is given
jwks_urlNoOptional JWKS (or single JWK) URL to verify the signature

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources