Decode a JWT and check its times; optionally verify an HS256/384/512 signature
jwt_decodeDecode a JWT and check its times; optionally verify an HS256/384/512 signature. Decodes header and payload, converts exp/iat/nbf to ISO dates, reports whether the token is expired or not yet valid, and flags alg=none. If a shared secret is given, verifies HMAC signatures (HS256/384/512) in constant time. Secrets are not stored or logged. Price: $0.003 USDC per call via x402 (eip155:8453).
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": "jwt_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| secret | No | Optional HMAC secret to verify the signature | |
| secretEncoding | No | utf8 |