# Delx Bool Coerce

> Delx Bool Coerce is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Coerces common truthy/falsy string tokens (e.g. 'yes', 'true', '1', 'off', 'no') into a deterministic boolean JSON result

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/bool-coerce
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-bool-coerce-54f03af6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sHKkyCDgzx8IWNGCOFloM

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 delx-bool-coerce-54f03af6 -d '<json body>'
```

Example prompt: Can you coerce the string 'yes' into a proper boolean true/false value for me?

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, deterministic coercion of common truthy/falsy string tokens (yes, no, true, false, 1, 0, on, off) into machine-readable booleans without implementing your own lookup table. Ideal for agent preflight steps, config normalization, and input sanitization pipelines where correctness matters and the cost is negligible.

## Known failure modes

- Unrecognized token (e.g. an arbitrary string like 'banana') may return an error or null/indeterminate result
- Empty or missing 'value' field returns a validation error
- Non-string input types may not be handled
- Payment failure via x402 prevents execution

## How this service works

Coerce common truthy/falsey tokens into a boolean — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted ext…

## Output

A deterministic JSON object indicating whether the input string token resolves to boolean true or false, with no retained state or side effects.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "string",
   "description": "Input field: value."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "value": true,
  "schema": "delx/util-bool-coerce/v1",
  "source": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-bool-coerce-54f03af6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
