Skip to main content
Glama

cyberchef_jwt_decode

Decode and inspect JSON Web Tokens without a secret key. Parse the JOSE header, claims payload, expiration, and flag dangerous 'none' algorithm.

Instructions

Decodes and inspects JSON Web Tokens (JWT) without requiring a signature secret. Parses and validates the Jose header, claims payload, algorithm specifications, expiration dates, and detects dangerous 'none' algorithms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesThe complete encoded JSON Web Token in standard 'header.payload.signature' dot-separated format.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • changedInput schema / properties / token / description
      Previous value: -"Full JWT token (header.payload.signature)"New value: +"The complete encoded JSON Web Token in standard 'header.payload.signature' dot-separated format."
  2. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It usefully discloses that no signature secret is required, that the tool parses and validates the header, payload, algorithm specification, expiration dates, and that it detects dangerous 'none' algorithms. It does not describe error handling or output format, but for a simple read-only decode tool this is a reasonably complete behavioral picture.

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

Conciseness5/5

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

The description is a single, front-loaded sentence that conveys the core operation first and then details the validation scope. There is no redundant text, filler, or repetition of the tool name.

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

Completeness4/5

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

For a one-parameter, read-only decoding tool, the description covers the input format, the operation's purpose, and key behaviors such as secret-free decoding and 'none' algorithm detection. It does not explain the exact return shape, but that is a minor gap given the simplicity of the tool and the absence of an output schema.

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

Parameters3/5

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

Schema description coverage is 100% and the only parameter, 'token', is well described in the schema as a dot-separated 'header.payload.signature' JWT. The tool description adds no parameter-level information beyond what the schema already provides, so the baseline score of 3 applies.

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?

The description states a specific verb ('Decodes and inspects') and a clear resource (JSON Web Tokens), plus specific capabilities such as parsing the header, claims, expiration dates, and detecting 'none' algorithms. This is sufficient to distinguish the tool from all listed CyberChef siblings, none of which relate to JWT handling.

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

Usage Guidelines4/5

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

The description clearly communicates that this tool is for decoding/inspecting JWTs without a signature secret, which gives an agent a clear context for choosing it. It does not explicitly mention exclusions or alternative tools, but no sibling tool performs a similar JWT function.

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