# Micrograms to Grains Converter

> Micrograms 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 micrograms (μg) to grains (gr) via a simple GET request with a query parameter.

## Facts

- Endpoint: GET https://agent402.tools/api/convert/micrograms-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/micrograms-to-grains-converter-a15042ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CLr-svEvPmaSXb9xI_qzH

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 micrograms-to-grains-converter-a15042ab
```

Example prompt: Convert 5000 micrograms to grains for me.

## When to prefer this

Use this endpoint when you need a precise, programmatic conversion from micrograms (μg) to grains (gr) — common in pharmaceutical dosing, ballistics, gemology, or scientific contexts. Prefer it over general-purpose calculators when integrating into an automated agent workflow that charges per-use and requires reliable, single-purpose mass unit conversion.

## Known failure modes

- Missing or non-numeric value parameter returns an error
- Value out of representable range may cause overflow or undefined behavior
- Malformed query string results in a 400-level error
- Network or service unavailability returns a 5xx error

## How this service works

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

## Output

The agent receives the converted mass value expressed in grains, corresponding to the input numeric quantity in micrograms.

## 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/micrograms-to-grains-converter-a15042ab/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)
