Skip to main content
Glama

hex_codec

Converts between UTF-8 text, hex, decimal (big integers) and byte length. 0.001 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
fromYestext, hex or decimal
valueYesInput
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose the paid nature (0.001 USDC per call via x402), which is meaningful context. However it omits the payment round-trip behavior (first call returns 402, then retry with proof) that only appears in the paymentProof schema field, and says nothing about output format or whether conversion is lossless.

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?

Two tight sentences, front-loading what it converts followed by the pricing note. No filler; every clause earns its place.

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

Completeness4/5

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

For a simple codec with full schema coverage and no output schema, the description covers the formats and the payment cost adequately. The payment retry mechanic is left to the schema, which is acceptable, though noting the direction ambiguity (converting to byte length) would round it out.

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 'from' (text/hex/decimal) and 'value' are already documented. The description adds that 'byte length' is a conversion target (a direction not evident from the 'from' values alone), giving slight extra value, but the baseline 3 holds.

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?

States a specific verb ('Converts between') and enumerates the concrete formats (UTF-8 text, hex, decimal, byte length), so an agent can tell this is a hex/base conversion codec distinct from base64 or base58 siblings. It stops short of explicitly naming or contrasting against those siblings.

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 only implied by the purpose ('converts between…'), with no explicit when-to-use/when-to-avoid guidance or reference to alternative codec tools like base64 or case_convert. The 402 payment note adds a precondition but does not route among alternatives.

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.