Skip to main content
Glama

x402-is-hex

Is Hex: Check whether a string contains only hexadecimal digits (0-9, a-f, A-F). Provide value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueNoValue to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, but this is a pure predicate so the risk profile is inherently low. It communicates the validation rule (hex digits only) and, via the 'Is Hex' framing, implies a boolean result, but it omits edge-case behavior such as empty strings or a '0x' prefix and never states the return shape.

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 short sentences, front-loaded with the definition of what constitutes hex. The trailing 'Provide value.' adds little beyond the schema and is the only wasted text.

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?

For a trivial one-parameter predicate the definition is nearly sufficient, but with no output schema present the description should state that the result is a boolean and how malformed or empty input is handled. Those gaps keep it at a minimum-viable level.

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%, so the single parameter is documented structurally, though the schema text ('Value to process') is generic. The description only repeats 'Provide value' and adds no format or constraint detail, matching the baseline 3 for high-coverage schemas.

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 names a specific check and defines the exact accepted character set (0-9, a-f, A-F), which lets an agent distinguish it from related siblings such as x402-is-hex-color or x402-hex. It never explicitly contrasts itself with those siblings, so it falls just short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus alternatives like x402-is-hex-color, x402-is-binary, or x402-from-hex. 'Provide value.' is an instruction to the caller, not usage guidance.

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