Skip to main content
Glama

decode_jwt

Read-onlyIdempotent

Jwt decoder — header + payload only, no signature verification

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
tokenYesA JWT in header.payload.signature form. It is decoded, not verified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / token / description
      Added value: +"A JWT in header.payload.signature form. It is decoded, not verified."
  2. Changed1 schema field changed
    • addedInput schema / properties / token / minLength
      Added value: +1
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the genuinely important behavioral fact that the signature is never verified and only header plus payload are returned, which the annotations alone would not reveal; it stops short of describing malformed-token error behavior.

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?

A single em-dash-separated line with the scope constraint front-loaded and no redundant wording; every clause earns its place.

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, annotation-rich, output-schema-less tool this is nearly complete: it states input expectations and what part of the token is returned. Minor gaps remain around the output format (JSON object vs string) and handling of 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?

Schema description coverage is 100% and the single parameter already documents "header.payload.signature form" and that it is decoded not verified, so the description largely restates what the schema provides; 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?

"Jwt decoder" names a specific verb and resource, and the qualifier "header + payload only, no signature verification" immediately bounds the operation so an agent can distinguish it from any verify/validate tool in the same family.

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 "no signature verification" clause implicitly tells the agent when this is appropriate (inspection/debugging) versus when it is insufficient (security validation), but no alternative tool or explicit when-to-use condition is named, and no siblings are referenced.

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