Skip to main content
Glama

Api Jwt Decode

api_jwt_decode

Decode a JWT header and payload WITHOUT signature verification. ?token= [HTTP x402 price: $0.001]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / params / additionalProperties
      Removed value: -true
    • addedInput schema / properties / params / properties
      Added value: +{
      +  "token": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null
      +  }
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden, and it does disclose a key behavioral trait: no signature verification is performed. It also adds the invocation style and price. It does not cover error behavior for malformed JWTs, but the most important behavioral boundary is clearly stated.

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 one compact sentence plus a usage hint and price. The core behavior is front-loaded, and every element earns its place without redundancy.

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 simple single-parameter utility, the description covers the core operation, the no-verification caveat, the query syntax, and the cost. An output schema exists, so return-value details need not be spelled out. It could mention invalid-token behavior, but the overall context is sufficient for correct invocation.

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?

The schema provides only a generic 'token' string with no description, and coverage is 0%, so the description must compensate. It adds meaning by showing the exact query format '?token=<jwt>' and clarifying that the token is a JWT. For a single-parameter tool, this is sufficient added semantic value.

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 uses a specific verb-resource pair: 'Decode a JWT header and payload.' It also explicitly states what the tool does NOT do ('WITHOUT signature verification'), which distinguishes it from any verification-oriented JWT operation and from the sibling utility tools.

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 usage is implied by the description: use this when you need to decode a JWT without verifying its signature. However, there is no explicit guidance about when not to use it or which alternative tool to choose, though the sibling list is broad enough that confusion is unlikely.

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.