# x402-toolbox Word Count

> x402-toolbox Word Count is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Counts the number of words in a given text string or schema input

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/util/word-count?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-word-count-177db2f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GgjPdmdx_KAE4nqEZf5wz

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 x402-toolbox-word-count-177db2f2
```

Example prompt: Can you count how many words are in this paragraph: 'The quick brown fox jumps over the lazy dog and then ran away into the forest'?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC), no-signup word count computation paid via x402 on Base. Ideal for AI agents that need to programmatically verify word counts without managing API keys or OAuth flows — payment via USDC is the authentication mechanism itself.

## Known failure modes

- Empty or missing schema/text input returns an error or zero count
- Malformed JSON input may cause processing failure
- Payment failure via x402 results in 402 response before processing
- Very large text inputs may hit Cloudflare Worker size limits
- Network timeout on the Workers edge if input is too large

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with an 'ok' boolean indicating success, a 'paid' boolean confirming payment was processed via x402, and the computed word count for the provided input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-word-count-177db2f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
