# Agent Dev Tools – Text Analyze

> Agent Dev Tools – Text Analyze is a paid API for AI agents from agent-dev-tools.frcompanycheck.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Analyzes a text string and returns word count, sentence count, character count, approximate LLM token count, reading time, and a URL slug — all computed deterministically per call.

## Facts

- Endpoint: GET https://agent-dev-tools.frcompanycheck.workers.dev/v1/text/analyze?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-dev-tools-text-analyze-205b89b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EMKHrWwynhvrTUJpBIrwA

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 agent-dev-tools-text-analyze-205b89b5
```

Example prompt: Can you analyze this text for me — 'Bonjour le monde ! Ceci est un test.' — and tell me the word count, sentence count, character count, approximate LLM tokens, reading time, and a URL-friendly slug?

## When to prefer this

Choose this endpoint when you need fast, cheap, deterministic text statistics (word count, token estimation, slug, reading time) without storing data or requiring an API key — especially useful for pre-processing content before sending to LLMs or publishing to the web. Prefer it over heavyweight NLP APIs when you only need surface-level metrics, not semantic analysis.

## Known failure modes

- Missing 'text' query parameter returns an error (not charged)
- Empty string input may return zero counts
- Very long texts may hit Cloudflare Worker request size limits
- Non-UTF-8 or malformed text may produce unexpected counts

## How this service works

Fast deterministic developer utilities for AI agents, paid per call in USDC via x402 (no account, no API key): UUID v4/v7, secure random numbers, dice, MD5/SHA/HMAC hashing, base64/hex/URL/HTML encoding, JSON validation/formatting, QR code SVG, password generation, JWT decoding and text statistics. Pure computation, nothing stored. Errors are never charged.

## Output

Returns a JSON object with: 'slug' (URL-friendly version of the text), 'words' (integer word count), 'sentences' (integer sentence count), 'characters' (integer character count), 'approx_llm_tokens' (estimated LLM token count as integer), and 'reading_time_seconds' (estimated reading time as integer).

## 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": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "example": "Bonjour le monde ! Ceci est un test.",
       "description": "Text to analyze"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "bonjour-le-monde-ceci-est-un-test",
  "words": 7,
  "sentences": 2,
  "characters": 36,
  "approx_llm_tokens": 9,
  "reading_time_seconds": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-dev-tools-text-analyze-205b89b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-dev-tools.frcompanycheck.workers.dev](https://www.zero.xyz/host/agent-dev-tools.frcompanycheck.workers.dev/llms.txt)
