Skip to main content
Glama

security_jwt_decode

Read-only

Decode and inspect a JWT — Decode a JWT header and payload (no signature verification) and flag security issues: alg:none, expired, nbf in future, missing exp. Pass ?token= with the JWT. Price: $0.004 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
tokenYesthe JWT string header.payload.signature

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/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 non-derivable behavior: no signature verification (so a pass here does not mean the token is authentic) and the exact set of checks performed. It also discloses the payment requirement ($0.004 USDC on Base via x402), which is operational context an agent cannot get from structured fields. It stops short of describing the response shape, which keeps it from a 5.

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?

The critical constraint (no signature verification) and the flagged issues are front-loaded, and the pricing note is correctly relegated to the end. The opening 'Decode and inspect a JWT' is mildly redundant with the following 'Decode a JWT header and payload', costing a little tightness.

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 tool this covers what an agent needs: input format, the absence of signature verification, the specific security flags raised, and the payment cost. Since no output schema exists, a brief note on the returned structure would have closed the remaining gap.

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?

Schema coverage is 100%, so the baseline is 3, and the description nudges above that by telling the agent the token is passed as '?token=' and by echoing the header.payload.signature structure expected. That is a small but real addition about transport rather than just repeating the schema.

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 names a specific verb and resource ('Decode and inspect a JWT') and immediately narrows the scope with '(no signature verification)', which is the single most important disambiguation for a JWT tool. It further specifies the output purpose (flagging alg:none, expired, nbf in future, missing exp), so an agent knows exactly what it gets without opening the schema.

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 is implied by the explicit mention of what gets flagged, so an agent can infer this is the tool for inspecting an untrusted or expired token rather than verifying one. However, there is no explicit when-to-use/when-not framing and no named alternative for signature verification or token generation, leaving the agent to infer that boundary.

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