Skip to main content
Glama

Tanod Util

utilpeek: verify a JWT signature and claims with a secret, a PEM public key or a JWK Set

verify_jwt
Read-onlyIdempotent

utilpeek: Verify a JWT signature and claims. Returns valid true or false for a JWT checked with PyJWT against one key (HMAC secret, PEM public key or JWK Set), with a reason: bad signature, expired, wrong audience or issuer, algorithm not allowed. Algorithm none is refused; the key type fixes the algorithm family. Input: token and exactly one of secret, public_key or jwks; optional algorithms, audience, issuer, leeway_seconds. Pure computation, no network; secrets and keys are not echoed. A failed check is a normal charged result (valid false). No JWKS URL fetch: send the key set. Malformed input is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Tanod does not log or store the submitted text; it is processed in memory for this answer. Docs: https://tanod.dev/learn/jwt-decode-verify-api.html

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jwksNoJWK Set object {"keys": [...]} (asymmetric keys; oct keys are ignored). The key is picked by the token kid.
tokenYesCompact JWT to verify.
issuerNoRequired iss.
secretNoHMAC secret (HS256/384/512).
audienceNoRequired aud (a string, or a list of which one must match).
algorithmsNoAllow-list that narrows the default for the key type; none is refused.
public_keyNoPEM public key (RS*, PS*, ES*, EdDSA).
leeway_secondsNoClock skew allowed for exp, nbf and iat (0-300).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
algNo
kidNo
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
validNo
detailNo
headerNo
reasonNo
payloadNo
key_sourceNo
leeway_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources