Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-file-size-humanize

File Size Humanize: Converts a byte count to a human string in B/KB/MB/GB/TB using 1024 steps and 2 decimals 🆓 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-file-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

B3/5.0
Behavior3/5

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

With no annotations, the description does carry useful operational detail: 1024-based steps, B/KB/MB/GB/TB ladder, and 2-decimal output, plus the free-trial-per-signed-wallet quota which hints at auth/payment requirements. It omits how non-numeric or negative inputs are handled and whether output is a bare string or prefixed object, which matters for a tool with no output schema.

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?

One compact sentence, front-loaded with the tool name and the core conversion rule, followed by the quota note. The emoji is noise but the text itself is efficient.

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 converter, the conversion rule is adequately specified, but the unexplained "value" parameter and the absence of both annotations and an output schema leave the contract under-specified. An agent could call it, but not confidently predict the response shape or the meaning of every argument.

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 description coverage is 0% across two parameters, so the description must compensate. It only implicitly covers "bytes"; the second property "value" is never mentioned and its relationship to "bytes" is entirely undefined, a real ambiguity for callers.

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 ("Converts a byte count to a human string") and even pins the output units and formatting, so an agent knows exactly what comes back. It does not distinguish itself from near-neighbors such as x402-data-size-humanize or x402-bytecode-size, leaving the agent to infer the difference.

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-to-use guidance and no named alternative among the many humanize/format siblings. The only contextual hint is the free-trial quota line, which speaks to cost rather than selection.

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.