Decode a JWT and flag risks
inspect_jwtDecode a JWT locally to inspect header, claims, time claims and risk notes; signature is not verified. Use token_env to keep the raw token out of model context.
Instructions
Decodes a JWT locally and returns its header, claims (field values whose names look like secrets are masked), time-claim status (exp, nbf, iat) and risk notes such as alg none, HMAC algorithms that cannot be verified offline, missing exp, and jku/jwk/x5u key-injection headers. DECODING IS NOT VERIFICATION: this tool has no key, never checks the signature and cannot tell you the token is genuine. Prefer token_env (the NAME of an environment variable) so the raw token does not pass through the model; a token passed as token is already in the context. The claims returned are in the model context either way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | The JWT itself. Passing it here puts it in the model context; use token_env when possible. | |
| token_env | No | NAME of an environment variable that holds the JWT. Preferred: the raw token then never passes through the model. |