Skip to main content
Glama

x402-format-bytes

Format Bytes: Convert a byte count to a human-readable size (B/KB/MB/GB/TB/PB, 1024 steps, 2 decimals). Input: bytes. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
bytesNo
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / bytes / description
      Removed value: -"Bytes to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / bytes
      Added value: +{
      +  "description": "Bytes to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose real behavior: the 1024-step base, the B-through-PB ladder, and 2-decimal rounding. It does not state the return shape (presumably a string), error behavior for non-numeric or negative input, or whether large values saturate at PB, and the '5 free trial calls per signed wallet' line is billing promo rather than behavior.

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 core sentence is front-loaded, dense, and free of padding. The emoji trial line is promotional noise that occupies a full sentence, but it is short and does not obscure the spec.

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 two-parameter, no-annotation, no-output-schema utility, the description covers the primary input and conversion semantics adequately. The unresolved second parameter ('value') and unspecified return/error behavior leave a meaningful gap for correct invocation.

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

Parameters2/5

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

Schema coverage is 0% and neither of the two string parameters is documented in the schema. The description explains only 'bytes' and leaves 'value' entirely undefined, so an agent cannot tell whether 'value' is an alias, a unit field, or a duplicate input.

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 and resource (convert byte count to human-readable size) and enumerates the exact unit ladder and precision, which lets an agent distinguish it from generic number formatters at a glance. It stops short of naming the near-duplicate siblings (x402-data-size-humanize, x402-file-size-humanize, x402-format-bits), so it is clear but not sibling-differentiated.

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 when-to-use or when-not guidance and no mention of when a caller should prefer the sibling humanizers instead. 'Input: bytes' only restates the call shape rather than describing invocation conditions.

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