# AgentTools Data Size Converter

> AgentTools Data Size Converter is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Converts a numeric value between digital storage units — supporting both decimal (KB, MB, GB, TB) and binary (KiB, MiB, GiB, TiB) unit systems.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/converters/data-size-converter?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-data-size-converter-4f584b84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_idPqEN8ZyHUkK4YLJKYCH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttools-data-size-converter-4f584b84
```

Example prompt: How many GiB is 500 GB? Convert 500 from GB to GiB for me.

## When to prefer this

Use this endpoint when an agent needs a precise, reliable conversion between any combination of decimal and binary digital storage units. Ideal when the agent must distinguish between SI decimal (KB=1000) and IEC binary (KiB=1024) standards — common in cloud storage, OS file systems, and networking contexts.

## Known failure modes

- Missing required query parameters (value, from, or to) returns a validation error
- Unsupported unit string passed to from or to returns an enum validation error
- Non-numeric value for the value parameter causes a type error
- Same unit for from and to returns the same value (not an error, but agent should handle trivially)

## How this service works

Convert digital storage units: bits, bytes, KB, MB, GB, TB (decimal, ×1000) and KiB, MiB, GiB, TiB (binary, ×1024) — both systems side by side. Use this when an agent needs to decimal (KB/MB/GB) and binary (KiB/MiB/GiB) units.

## Output

Returns the converted numeric value in the requested target unit, allowing the agent to present a precise conversion result between any combination of decimal (B, KB, MB, GB, TB) and binary (KiB, MiB, GiB, TiB) storage units.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "enum": [
        "TB",
        "GB",
        "MB",
        "KB",
        "B",
        "TiB",
        "GiB",
        "MiB",
        "KiB"
       ],
       "type": "string",
       "description": "To"
      },
      "from": {
       "enum": [
        "TB",
        "GB",
        "MB",
        "KB",
        "B",
        "TiB",
        "GiB",
        "MiB",
        "KiB"
       ],
       "type": "string",
       "description": "From"
      },
      "value": {
       "type": "number",
       "description": "Value"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-data-size-converter-4f584b84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
