Skip to main content
Glama

jwt_inspect

Decode and audit JWT tokens to detect algorithm weaknesses, expired tokens, missing required claims, and suspicious kid values. Optionally checks signatures against common weak secrets.

Instructions

Decode and audit a JWT.

Reports algorithm issues (none, weak HS*), expiry, missing standard claims (exp, iat, iss, aud), suspicious kid values that look like path traversal or SQL, and (optionally) checks the signature against a small dictionary of common weak HS256/384/512 secrets.

Args: token: The JWT string (three dot-separated base64url segments). check_weak_secrets: If True, attempt a small dictionary of common secrets against the signature for HS* algorithms. Default True.

Returns: Structured inspection report (see JwtInspection schema).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYes
check_weak_secretsNo
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses all behavioral traits: decoding, auditing specific claim issues, and optional weak secret checking. It states it returns a structured report. However, it does not mention if the tool has any side effects or is purely read-only.

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 description is front-loaded with the purpose and uses bullet-style listing for details. Although slightly verbose, each sentence adds value. It could be tightened but remains well-structured.

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?

Given the complexity of JWT inspection, the description covers most essential aspects. However, the lack of an output schema means the agent does not know the exact structure of the returned inspection report, which is a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description adds essential meaning: token is described as 'JWT string (three dot-separated base64url segments)' and check_weak_secrets explains its default and behavior. This fully compensates for the missing schema descriptions.

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 explicitly states 'Decode and audit a JWT' and lists specific checks (algorithm issues, expiry, missing claims, suspicious kid, weak secret check), making the purpose clear and distinct from sibling tools like graphql_introspect or owasp_llm_classify.

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?

While the description implies usage for JWT analysis, it does not explicitly state when to use this tool versus alternatives or provide exclusions. No guidance on preconditions like token format validation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/actions-marketplace-validations/x0base_mcp-security-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server