decode_jwt
Decode a JWT (JSON Web Token) and return its header and payload without verifying the signature. Also reports whether the token is expired and the exact expiry date. Use to inspect claims (sub, iss, exp, roles) during debugging or when integrating with an auth provider.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjQxMDI0NDQ4MDB9.sig"
},
"name": "decode_jwt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The JWT string to decode (header.payload.signature) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| header | No | ||
| expired | No | ||
| payload | No | ||
| expiresAt | No |