Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

verify_jwt

Read-onlyIdempotent

Check a JWT signature and claims against an HMAC secret, PEM public key, or JWK Set, returning true/false plus a reason for bad signature, expiry, audience/issuer mismatch, or algorithm refusal.

Instructions

utilpeek: Verify a JWT signature and claims. To read the claims without a key use decode_jwt. Returns valid true or false for a JWT checked with PyJWT against one key (HMAC secret, PEM public key or JWK Set), with a reason: bad signature, expired, wrong audience or issuer, algorithm not allowed. Algorithm none is refused; the key type fixes the algorithm family. Input: Send exactly one of secret, public_key or jwks. Pure computation, no network; secrets and keys are not echoed. A failed check is a normal charged result (valid false). No JWKS URL fetch: send the key set. Malformed input is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/jwt-decode-verify-api.html

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": "verify_jwt"
  }
}

Input Schema

NameRequiredDescriptionDefault
jwksNoJWK Set object {"keys": [...]} (asymmetric keys; oct keys are ignored). The key is picked by the token kid.
tokenYesCompact JWT to verify.
issuerNoRequired iss.
secretNoHMAC secret (HS256/384/512).
audienceNoRequired aud (a string, or a list of which one must match).
algorithmsNoAllow-list that narrows the default for the key type; none is refused.
public_keyNoPEM public key (RS*, PS*, ES*, EdDSA).
leeway_secondsNoClock skew allowed for exp, nbf and iat.

Output Schema

NameRequiredDescriptionDefault
algNo
kidNo
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
validNo
detailNo
headerNo
reasonNo
payloadNo
key_sourceNo
leeway_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent/destructive annotations: pure local computation with no network, secrets and keys never echoed, a failed check is a normal charged result (valid false), malformed input returns 422 and is not charged, sub-0.1s latency, price and free quota, and no logging or storage of submitted text. The only tension is openWorldHint=true against 'pure computation, no network', but that is a hint labeling issue rather than a misdescribed risk to the caller.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the sibling alternative are front-loaded, and nearly every sentence carries distinct operational information. It runs long and mixes in pricing/quota/docs boilerplate, which is useful but slightly dilutes the core call instructions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter verification tool with an output schema, the description covers inputs, failure modes, cost, and latency without needing to restate return structure. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description still adds non-schema constraints: exactly one of secret/public_key/jwks must be sent, the key type fixes the algorithm family (clarifying how `algorithms` narrows the default), and the jwks value must be an inline key set rather than a URL. These are call-shaping rules the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (verify a JWT signature and claims) and immediately distinguishes itself from the sibling decode_jwt, which only reads claims without a key. An agent can select between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance: use decode_jwt to read claims without a key; use this tool when a signature/claims check is needed. It also states the exclusions an agent would otherwise have to discover — no JWKS URL fetch (send the key set), algorithm 'none' refused, and exactly one key input.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools