# Basic Utils Agent – Weight Unit Conversion

> Basic Utils Agent – Weight Unit Conversion is a paid API for AI agents from basic-utils-agent.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts a numeric weight value from one unit to another (e.g., kilograms to pounds, grams to ounces) and returns the converted value along with the conversion rate.

## Facts

- Endpoint: POST https://basic-utils-agent.up.railway.app/convert/weight
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basic-utils-agent-weight-unit-conversion-19c782e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8cl7xCBlYYanb6AWXohja

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 basic-utils-agent-weight-unit-conversion-19c782e0 -d '<json body>'
```

Example prompt: Can you convert 75 kilograms to pounds for me?

## When to prefer this

Choose this endpoint when you need a fast, programmatic weight unit conversion with an explicit conversion rate returned — especially useful in agent workflows where you need both the converted value and the rate for further calculations. Prefer it over general-purpose LLM math when precision and structured output are required. Best suited for single weight conversions; not designed for batch or non-weight unit types.

## Known failure modes

- Unsupported or misspelled unit names (e.g. 'kilo' instead of 'kilograms') may return an error or unexpected result
- Missing required fields (value, source_unit, or target_unit) will likely cause a 400 or validation error
- Attempting to convert between incompatible measurement types (e.g., weight to length) will fail
- Extremely large or small numeric values may produce floating-point precision issues
- Non-numeric value inputs will cause schema validation failures
- Payment failure (402) if USDC payment is not included or insufficient

## How this service works

A versatile utility agent offering calculator, statistics, datetime, and unit conversion services.

## Output

Returns a JSON object containing the original value and unit, the target unit, the conversion rate between the two units, and the final converted numeric value. Example: converting 1 kg to pounds returns a converted_value of 2.20462 with a conversion_rate of 2.20462.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "number",
   "description": "The numeric value to convert"
  },
  "source_unit": {
   "type": "string",
   "description": "The source unit of the value (e.g., 'meters', 'feet', 'kg', 'lbs')"
  },
  "target_unit": {
   "type": "string",
   "description": "The target unit to convert to (e.g., 'kilometers', 'miles', 'grams', 'ounces')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "target_unit": "pounds",
  "original_unit": "kilograms",
  "original_value": 1,
  "conversion_rate": 2.20462,
  "converted_value": 2.20462
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basic-utils-agent-weight-unit-conversion-19c782e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from basic-utils-agent.up.railway.app](https://www.zero.xyz/host/basic-utils-agent.up.railway.app/llms.txt)
