# AgentTools Weight Unit Converter

> AgentTools Weight Unit Converter is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a numeric value between weight/mass units including metric tons, kilograms, grams, milligrams, pounds, ounces, and stones using exact international definitions.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/converters/weight-converter?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-weight-unit-converter-c8fccf74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dFFI84JqBznVeQ9W2awT1

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-weight-unit-converter-c8fccf74
```

Example prompt: Convert 185 pounds to kilograms for me.

## When to prefer this

Choose this endpoint when you need a deterministic, exact weight or mass unit conversion between the seven most common units (metric tons, kg, g, mg, lb, oz, stones) without relying on an LLM approximation. Ideal for agents handling shipping, nutrition, fitness, or scientific data where precision matters and a simple GET call is preferred over a general-purpose math tool.

## Known failure modes

- Missing required query parameters (value, from, to) returns a 400 error
- Unsupported unit codes outside the enum (t, kg, g, mg, lb, oz, st) are rejected
- Non-numeric value parameter causes a validation error
- Same-unit conversion (from === to) should return the original value but may behave unexpectedly

## How this service works

Convert between weight and mass units: metric tons, kilograms, grams, milligrams, pounds, ounces and stones with exact international definitions. Use this when an agent needs to kilograms, pounds, ounces and more.

## Output

Returns the converted numeric value in the target weight unit, computed using exact international definitions for each unit (e.g. 1 pound = 0.45359237 kg exactly).

## 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": [
        "t",
        "kg",
        "g",
        "mg",
        "lb",
        "oz",
        "st"
       ],
       "type": "string",
       "description": "To"
      },
      "from": {
       "enum": [
        "t",
        "kg",
        "g",
        "mg",
        "lb",
        "oz",
        "st"
       ],
       "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-weight-unit-converter-c8fccf74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
