Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-data-size-humanize

Data Size Humanize: Converts a byte count to a human-readable size string using 1024-based units 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bytes": "<bytes>"
    },
    "name": "x402-data-size-humanize"
  }
}

Input Schema

NameRequiredDescriptionDefault
bytesYes
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "bytes"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / bytes / description
      Removed value: -"Bytes to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are present, so the description carries the full behavioral burden. It discloses the paid/trial model ('5 free trial calls per signed wallet'), which is useful auth/cost context, but says nothing about output formatting (KB vs KiB), rounding or precision, or overflow handling for very large inputs.

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 compact clauses that front-load the conversion rule, with no filler prose. The emoji and trial-call marketing add little to tool selection but do not obscure the core statement.

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

Completeness2/5

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

With no annotations, no output schema, and an undocumented value parameter, the definition leaves an agent unsure what to pass for value and what the returned string looks like. For such a simple tool the gaps are small in absolute terms but nothing compensates for them.

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 0%, and the description only implicitly maps 'byte count' to the required bytes parameter. The second parameter, value, receives no explanation at all in either the schema or the description, leaving a meaningful gap even for a two-parameter tool.

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 transformation: converts a byte count into a human-readable size string using 1024-based units. That is concrete enough to distinguish it from adjacent converters like duration-humanize or number-humanize, though it never explicitly contrasts with the close sibling x402-file-size-humanize.

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?

The description gives no when-to-use guidance, no prerequisites, and no mention of alternatives such as file-size-humanize for filesystem sizes versus raw data sizes. The only additional sentence is a pricing/trial note, not usage routing.

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.