Skip to main content
Glama
labaccessnow

secops-field-notes

Official
by labaccessnow

decode_jwt

Decode JWT header and payload, display iat/nbf/exp as dates, and flag security issues like alg none, missing alg, expired, or long-lived tokens.

Instructions

Decode a JWT's header and payload (no verification — it says so), show iat/nbf/exp as dates, and flag alg:none, missing alg, expiry, tokens that never expire, and long-lived tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesThe token, with or without a 'Bearer ' prefix.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.3/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 behavioral disclosure burden. It explicitly states that JWT signatures are not verified and describes the useful behaviors: converting iat/nbf/exp to dates and flagging alg:none, missing alg, expiry, non-expiring tokens, and long-lived tokens. It does not define thresholds like 'long-lived' or describe malformed-token handling, but the disclosure is still substantial.

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?

The entire behavior is captured in one efficient, front-loaded sentence. It starts with the core action, then lists all significant outputs and checks without redundant phrasing. The parenthetical 'it says so' is slightly informal but does not waste meaningful space.

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?

For a single-parameter read-only decode tool with no output schema, the description is complete enough for an agent to invoke it correctly and anticipate the main results. It covers what is decoded, the timestamp formatting, and the security-related flags. Missing details like exact output formatting are not necessary for correct invocation.

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% and there is only one parameter, so the schema already fully documents the token parameter, including the optional 'Bearer ' prefix. The description's value is mostly about output behavior rather than adding parameter-level meaning, matching the baseline for high schema coverage.

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 opens with a specific verb and resource: 'Decode a JWT's header and payload'. It also enumerates what the tool reports (date conversion, security flags), making it clearly distinguishable from siblings like decode_layers, convert_timestamp, and identify_hash without needing to open 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 Guidelines4/5

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

The parenthetical 'no verification' clearly tells agents this is not the tool for signature validation, and the decode/flag behavior makes the intended use obvious. It does not explicitly name an alternative tool or provide formal when-not conditions, so it falls just short of a 5.

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

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/labaccessnow/secops-field-notes-mcp'

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