jwt_tools
op=decode reads header/payload without checking the signature. op=verify checks it with a secret (HS*), a PEM public_key (RS*/ES*/PS*) or a jwks_url (cached 10 min); the allowed algorithm family is pinned to the key type you provide, blocking alg-confusion attacks. op=sign issues a new token (HS256/384/512, RS256, ES256). Tokens and keys are never logged or cached. Cost €0.0005 per call, charged to the API key in Authorization: Bearer. Parameters — op: decode (default) | verify | sign; token: JWT (decode, verify); secret: HMAC secret (verify, sign); public_key: PEM public key (verify); private_key: PEM private key (sign); jwks_url: JWKS endpoint (verify); payload: JSON object of claims (sign); alg: HS256|HS384|HS512|RS256|ES256, default HS256 (sign); exp_seconds: lifetime in seconds, optional (sign).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "jwt_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | ||
| alg | No | ||
| token | No | ||
| secret | No | ||
| payload | No | ||
| jwks_url | No | ||
| public_key | No | ||
| exp_seconds | No | ||
| private_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |