Skip to main content
Glama

devanvil_jwt_audit

Decode JWTs offline, audit for alg:none, missing or expired exp, and sensitive claims, then optionally verify HS, RS, or ES signatures to catch token security issues.

Instructions

Decode a JWT offline, run an automated security audit (alg:none, missing exp, expired, sensitive claims), and optionally verify HS/RS/ES signature.

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

Input Schema

NameRequiredDescriptionDefault
tokenYesCompact JWT string (header.payload.signature).
algorithmsNoOptional algorithm allowlist (e.g. ["HS256"]).
secretOrKeyNoOptional HMAC secret or PEM public key to cryptographically verify.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does a reasonable job: it discloses that decoding runs offline, that the audit is automated and covers four named weakness categories, and that verification supports the HS/RS/ES families (useful because it tells the agent RSA/EC keys are accepted, not just HMAC secrets). It does not say what happens on a malformed token, whether a verification failure errors or is reported in the result, or whether the token is retained/logged.

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 dense sentence that front-loads the core action and then layers the audit checks and the optional verification. Every clause carries information; nothing is redundant padding.

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

Completeness3/5

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

A three-parameter tool with fully documented parameters, but there is no output schema, so the description is the only place an agent could learn what the audit report looks like (findings list, severity, verification verdict). That return-shape gap and the undefined failure behavior keep it at minimum viable rather than complete.

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%, so the schema already explains token, algorithms (allowlist), and secretOrKey (HMAC secret or PEM public key). The description adds only the framing that verification is optional and the supported algorithm families, which is mildly useful but largely overlaps the schema. Baseline 3 applies when the schema does the heavy lifting.

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 resource (JWT) and enumerates the concrete audit checks performed: alg:none, missing exp, expired, sensitive claims, and optional HS/RS/ES signature verification. That level of specificity makes it clearly distinct from generic siblings like devanvil_scan_secrets or devanvil_inspect_cert, although no sibling is named explicitly.

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 rather than stated: 'offline' signals no network dependency, and 'optionally verify' tells the agent signature checking is opt-in via the secretOrKey/algorithms parameters. There is no explicit when-to-use versus when-not guidance or named alternative, so an agent must infer selection from the JWT-specific framing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.