# Basic Utils Agent – Length Unit Converter

> Basic Utils Agent – Length Unit Converter 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-14).

Converts a numeric length value from one unit to another (e.g., meters to feet, miles to kilometers).

## Facts

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

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-length-unit-converter-e4784a06 -d '<json body>'
```

Example prompt: Can you convert 10 meters to feet for me?

## When to prefer this

Choose this endpoint when you need a simple, fast, programmatic length/distance unit conversion with a clear numeric input and known source and target units. It is well-suited for AI agents automating measurement conversions in workflows, construction tools, travel planners, or scientific applications. Prefer it over general-purpose LLM math when precision and a structured JSON response with the conversion rate are required.

## Known failure modes

- Unsupported or misspelled unit names return an error or unexpected result
- Missing required fields (value, source_unit, target_unit) may cause a 400 error
- Incompatible unit types (e.g., converting meters to kilograms) may return an error
- Payment failure or insufficient USDC balance results in a 402 response
- Network timeout or Railway.app downtime causes a 503 or connection error

## How this service works

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

## Output

Returns a JSON object with the original value and unit, the target unit, the conversion rate used, and the converted numeric value — e.g., {original_value: 10, original_unit: 'meters', target_unit: 'feet', conversion_rate: 3.28084, converted_value: 32.8084}.

## 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": "feet",
  "original_unit": "meters",
  "original_value": 10,
  "conversion_rate": 3.28084,
  "converted_value": 32.8084
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basic-utils-agent-length-unit-converter-e4784a06/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)
