Skip to main content
Glama

Validate JWT

shop_validate_jwt
Read-onlyIdempotent

Returns whether or not a given JWT is valid and associated with a specified user:

  • HTTP_200_OK : The JWT is valid and linked to the targeted user. The is_anonymous field in the response payload indicates if the user is anonymous or logged in into its account.

  • HTTP_400_BAD_REQUEST with error code 4000 : The JWT is not valid or not related to the specified user Guidance: Returns whether or not a given JWT is valid and associated with a specified user. HTTP 200: The JWT is valid and link... | context: jwt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jwtYesToken to validate.
user_idNoUnique ID of the user against which the token should be validated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The description explains expected HTTP status codes and the meaning of the is_anonymous field, which adds useful behavioral detail. Annotations already indicate read-only, idempotent, non-destructive behavior, and the description does not contradict them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is repetitive: the first sentence is essentially duplicated in the 'Guidance' section, and the status-code explanation is also partially repeated before truncation. The redundancy reduces clarity and makes the description less efficient than it could be.

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?

The description provides useful response details such as HTTP 200/400 semantics and the is_anonymous field. However, it does not clarify how the optional user_id parameter affects validation, nor does it cover other potential error cases, leaving some ambiguity for callers.

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 coverage is 100% and both parameters are individually described, so the baseline applies. The description adds only minor context by linking the JWT to a specified user, but does not materially expand on 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 clearly states the tool validates a JWT and checks it against a specific user, which is a specific verb plus resource. It is also distinct from the surrounding CMS and shop sibling tools, which focus on content and commerce operations.

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?

The purpose implies when to use the tool — whenever JWT validation is needed — but it does not explicitly state when not to use it or mention any alternative validation mechanisms. No specific exclusions or sibling comparisons are provided.

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.