Skip to main content
Glama

FMF Tools Dev Utils

code_jwt

JWT decoder ($0.001 per call, paid via MPP on Tempo). Decodes a JWT/JWS: header (alg, kid, typ), claims, issued/not-before/expiry as ISO times, expired flag and seconds left. Optional HS256/384/512 signature check when you pass the shared secret. Nothing is stored. HTTP POST https://mpp-utils.fmf-x402.workers.dev/code/jwt. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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

Input Schema

NameRequiredDescriptionDefault
tokenYes
secretNooptional HMAC secret to verify HS* signatures

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With zero annotations the description carries the full burden and does so: it discloses cost ($0.001/call), the payment rail (MPP on Tempo), that nothing is stored, the transport (HTTP POST to a specific URL), and the critical caveat that the MCP wrapper does not itself settle payment. That last point is exactly the kind of failure-mode disclosure an agent needs before calling.

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 dense sentences with no filler, front-loaded with the verb and then the return payload. The trailing payment/endpoint sentence is long but operationally load-bearing; slightly tighter phrasing would push this to a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, yet the description specifies the return shape (header fields, claims, ISO timestamps, expired flag, seconds left) and the auth/payment requirement. An agent has everything needed to construct the call and interpret the result.

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 only 50% (only `secret` is documented in the schema), so the description must compensate, and it does by naming the supported algorithms (HS256/384/512) and tying the secret to verification rather than decoding. The `token` parameter gets no added guidance such as whether a raw token or a 'Bearer '-prefixed string is expected, which is the remaining gap.

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?

Opens with a specific verb+resource ('JWT decoder') and immediately enumerates what it returns: header fields (alg, kid, typ), claims, ISO-8601 iat/nbf/exp, expired flag and seconds remaining. No sibling in the list does JWT decoding, so the tool is unambiguously distinguishable.

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

Usage Guidelines4/5

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

Gives clear operational context for both modes: decode-only by default, and signature verification 'when you pass the shared secret'. It also states the payment precondition (needs an MPP Payment Authorization header, or use mppx against the HTTP route) rather than leaving the agent to discover a payment failure. No explicit when-not guidance, but no sibling alternative exists to route away to.

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