Skip to main content
Glama

WritersLogic developer agents

jwt-verify

JWT signature and claims verification — Verifies a JWS-compact JWT: signature over base64url(header).base64url(payload) with Web Crypto under the exact algorithm in the token's alg header (HS256/384/512, RS256/384/512, PS256/384/512, ES256/384/512, EdDSA). Refuses 'none' unconditionally and rejects any alg not in the caller's allowedAlgorithms. Validates exp/nbf with a configurable clock-skew tolerance (default 60s), iss equality, a

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>",
      "key": "<key>",
      "allowedAlgorithms": "<allowedAlgorithms>"
    },
    "name": "jwt-verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
tokenYesThe JWS-compact JWT: three base64url parts joined by '.'.
issuerNoRequire payload.iss to equal this.
nowIsoNoOverride 'now' for deterministic tests.
audienceNoRequire payload.aud to include this.
toleranceSecondsNoClock-skew tolerance for exp/nbf. Default 60s.
allowedAlgorithmsYesAlgorithms the caller accepts; verification fails if the header's alg is not here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources