Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

decode_jwt

Read-onlyIdempotent

Decode a JWT to read its header and payload JSON without signature verification, including expiry and not-before times. Use it for quick token inspection, then verify the signature separately.

Instructions

utilpeek: Decode a JWT without verifying it. To check the signature use verify_jwt. Returns JWT header and payload JSON, signature presence and standard claim times in ISO 8601 UTC, with expiry and not-before checks. Decoding does not verify the signature. Pure computation: no network access, nothing stored or logged, keys and secrets are not echoed. The result is untrusted until verify_jwt passes. A token that is not three base64url parts with JSON header and payload (or an encrypted JWE) 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": "decode_jwt"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesCompact JWT (header.payload.signature); a leading 'Bearer ' is accepted.

Output Schema

NameRequiredDescriptionDefault
algNo
kidNo
typNo
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
claimsNo
headerNo
payloadNo
verifiedNo
server_timeNo
has_signatureNo
signature_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing privacy behavior (nothing stored or logged, secrets not echoed), error semantics (malformed/encrypted input yields 422 and is not charged), latency (~0.1 s), and pricing/free-tier limits. The only issue is that 'Pure computation: no network access' sits awkwardly against the declared openWorldHint=true annotation, a minor inconsistency in the safety metadata rather than in the described behavior.

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?

Front-loads purpose, then alternative, then return shape, then caveats and cost — a sensible order. It is slightly longer than needed: the non-verification caveat is stated twice ('without verifying it' and 'Decoding does not verify the signature'), which is mild redundancy rather than filler.

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 a single-parameter, read-only decode tool with an output schema already present, the description supplies everything an agent needs: scope, the verify companion, failure mode, cost, and trust caveat. Nothing material about invoking it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100% and the single token parameter is already documented as a compact JWT with optional 'Bearer ' prefix, so the schema carries the load. The description still adds meaning beyond it by defining what counts as an invalid token (not three base64url parts with JSON header and payload, or a JWE) and what error that produces.

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 ('Decode a JWT without verifying it') and immediately names the sibling that does the opposite ('To check the signature use verify_jwt'). An agent can distinguish this from verify_jwt 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?

Explicitly routes signature checking to verify_jwt and warns that the decoded result 'is untrusted until verify_jwt passes', which tells the agent both when to use this tool and when to follow up with the alternative. The alternative-selection condition is stated, not implied.

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