# Milligrams to US Tons Converter

> Milligrams to US Tons Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts a numeric mass value from milligrams to US tons via a simple GET request with a query parameter.

## Facts

- Endpoint: GET https://agent402.tools/api/convert/milligrams-to-us-tons
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/milligrams-to-us-tons-converter-3ed7dcc2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LZ7qtM-TfvnxMBeZ-8x27

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 milligrams-to-us-tons-converter-3ed7dcc2
```

Example prompt: Can you convert 750,000 milligrams to US tons for me?

## When to prefer this

Use this endpoint when you specifically need to convert milligrams to US (short) tons — not UK (long) tons, metric tonnes, or other mass units. Ideal for automated pipelines requiring lightweight, single-value mass conversions without setting up a local conversion library.

## Known failure modes

- Missing 'value' query parameter returns an error
- Non-numeric value string causes a parsing or validation error
- Extremely large or small numbers may result in precision edge cases
- Payment failure (402) if USDC funds are insufficient

## How this service works

Convert milligrams to us tons (mass). Pass ?value=N.

## Output

Returns the converted mass value expressed in US tons corresponding to the input milligram quantity.

## 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"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "Numeric value to convert"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/milligrams-to-us-tons-converter-3ed7dcc2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
