# agent402.tools Tonnes to Grams Converter

> agent402.tools Tonnes to Grams 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 tonnes (metric tons) to grams via a simple GET request.

## Facts

- Endpoint: GET https://agent402.tools/api/convert/tonnes-to-grams
- 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/agent402-tools-tonnes-to-grams-converter-62a9e7eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jZpiKt_mCJsEncoUkv3fu

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 agent402-tools-tonnes-to-grams-converter-62a9e7eb
```

Example prompt: How many grams is 3.5 tonnes? Can you convert that for me?

## When to prefer this

Use this endpoint when you need a fast, reliable programmatic conversion from tonnes (metric tons) to grams and want a simple GET-based API with per-call micropayment pricing. Prefer it over manual calculation or general-purpose math tools when integrating into automated workflows that require mass unit conversions at scale.

## Known failure modes

- Missing or non-numeric value parameter returns an error
- Value parameter out of supported range may fail
- Network or payment (x402) failure prevents response
- Malformed query string returns 400-type error

## How this service works

Convert tonnes to grams (mass). Pass ?value=N.

## Output

Returns the numeric equivalent of the input value converted from tonnes to grams (1 tonne = 1,000,000 grams), likely as a JSON object containing the result.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "value": "2.5"
  }
 }
}
```

## 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/agent402-tools-tonnes-to-grams-converter-62a9e7eb/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)
