# Grams to Grains Converter

> Grams to Grains Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Converts a numeric mass value from grams to grains via a simple GET request with a query parameter.

## Facts

- Endpoint: GET https://agent402.tools/api/convert/grams-to-grains
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grams-to-grains-converter-0e45c3c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1nx1-y112pig5ZUHa5WTv

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 grams-to-grains-converter-0e45c3c3
```

Example prompt: Convert 15.5 grams to grains for me.

## When to prefer this

Use this endpoint when you need a quick, reliable grams-to-grains unit conversion without writing your own formula. Ideal for contexts like ballistics (bullet/powder weights), pharmacy (apothecary units), jewelry, or any workflow requiring mass expressed in grains from a metric gram input.

## Known failure modes

- Missing or non-numeric value parameter returns an error
- Value parameter is null or empty string
- Extremely large or small floating point values may cause precision issues
- Payment failure (402) if USDC balance is insufficient

## How this service works

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

## Output

Returns the numeric equivalent of the input gram value expressed in grains, enabling downstream use in calculations, labeling, or display.

## 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/grams-to-grains-converter-0e45c3c3/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)
