Skip to main content
Glama

AutoTasker Hub — China Social Data API

jwt_decode

Decode a JWT token header and payload without verifying signature. $0.01 USDC.

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": "jwt_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the most important trait — the signature is NOT verified, which is a security-relevant caveat — and states the cost ($0.01 USDC), but it says nothing about malformed-token behavior, whether errors are thrown or returned, or whether the output is parsed JSON vs raw segments.

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?

Two short sentences, with the core capability and the signature caveat front-loaded and nothing redundant. The pricing sentence is a compact add-on that earns its place for cost-awareness but is not part of the tool's semantics.

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 single-parameter decode tool with no output schema, the description states what is returned (header and payload) and the key limitation (no verification), which is nearly enough to call it correctly. The remaining gap is error/edge-case behavior for invalid or truncated 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?

There is one required parameter with 0% schema description coverage, so the description must compensate. It implies the input is a JWT, but does not clarify format details such as whether to pass the raw three-segment string or strip a 'Bearer ' prefix — a real source of invocation error for this class of tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Decode') plus the exact resource ('JWT token header and payload') and even bounds the scope ('without verifying signature'). It does not name or differentiate from a nearby sibling such as base64_decode, so it stops short of a 5.

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?

Usage context is implied rather than stated: 'without verifying signature' signals this is for inspection only, not validation or auth decisions, which is a useful implicit boundary. However, there is no explicit when-to-use, no named alternative for signature verification, and no guidance on prerequisites such as token format.

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.