Skip to main content
Glama

jwt_decode

Read-only

Decode JWT header and payload claims locally without verifying the signature. The response always marks verification as false.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesJWT compact serialization, up to 20 KB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds genuinely useful behavioral context beyond that: decoding is local and the signature is deliberately not verified, and the response always reports verification=false — a non-obvious output trait that prevents misuse.

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?

Two tight sentences with zero waste. The key constraint (no signature verification) is front-loaded rather than buried.

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?

No output schema exists, and the description compensates by explaining the salient return characteristic (verification always false). For a one-parameter decode tool this is nearly complete, though it omits any note on error handling for malformed tokens.

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?

With a single parameter at 100% schema coverage, the schema already documents the token format (compact serialization, 20 KB limit). The description adds no syntax or format detail beyond what the schema provides, so the baseline 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?

States a specific verb (decode) and resource (JWT header and payload claims), with scope qualifier 'locally without verifying the signature'. This clearly distinguishes it from siblings like base64_convert and tx_decode_explain, which handle different artifacts.

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

Usage Guidelines3/5

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

The description implies the use case (inspecting a JWT's claims) and adds the important caveat that no signature verification happens, but it never states when to reach for this tool versus alternatives, nor any exclusions such as 'use a verification tool when authenticity matters'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources