# First Ruble Agent — SVG Small Features Detector

> First Ruble Agent — SVG Small Features Detector is a paid API for AI agents from first-ruble-agent.tohaa28.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-19).

Analyzes polygon shapes to detect features that are too small for reliable printing, counting small holes and small objects based on minimum size thresholds.

## Facts

- Endpoint: POST https://first-ruble-agent.tohaa28.workers.dev/api/small-features?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/first-ruble-agent-svg-small-features-detector-0c328184
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VnDeGDqrfjUQZjJ78WM3g

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 first-ruble-agent-svg-small-features-detector-0c328184 -d '<json body>'
```

Example prompt: Check these 3 polygon shapes for any features smaller than 2mm wide or 1.5mm tall — I need to know if there are any small holes or tiny objects that might not print correctly.

## When to prefer this

Use this endpoint when you need to programmatically validate that polygon shapes in a print or manufacturing file contain no features smaller than specified minimum dimensions, specifically to catch small holes and tiny objects before physical production. It is particularly useful as an automated gate in a print-preflight pipeline where shapes have already been extracted as coordinate arrays. Prefer this over full SVG preflight tools when your shapes are already in polygon form and you need a fast, cheap per-call check focused specifically on minimum feature size.

## Known failure modes

- Shapes array exceeds 128 elements — request rejected
- minWidthMm or minHeightMm is zero or negative — validation error
- Shapes contain Bézier curves or SVG path strings instead of coordinate arrays — unsupported input format
- Empty shapes array — may return zero counts with no meaningful result
- Payment not included or insufficient USDC — 402 Payment Required response
- Polygon rings are malformed or unclosed — may produce incorrect detection results

## How this service works

Focused APIs for SVG print risks, fine print details, Bezier clearance, tiny objects and holes, vector quality, cutting contours and native SVG/CorelDRAW EPS curves. From 0.02 USDC per request with x402 on Base. Free fixed samples and MCP discovery. Not a certified production approval.

## Output

Returns a JSON object with a counts object containing smallHoles (number of detected holes below the minimum size) and smallObjects (number of objects below the minimum size), plus a status string such as 'small_features_detected' or similar indicating whether problematic features were found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "shapes": {
   "type": "array",
   "description": "1..128 shapes: {id,outer:[[xMm,yMm],...],holes?:[ring,...]}. No Béziers or SVG strings."
  },
  "minWidthMm": {
   "type": "number",
   "exclusiveMinimum": 0
  },
  "minHeightMm": {
   "type": "number",
   "exclusiveMinimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "smallHoles": 1,
   "smallObjects": 1
  },
  "status": "small_features_detected"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/first-ruble-agent-svg-small-features-detector-0c328184/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from first-ruble-agent.tohaa28.workers.dev](https://www.zero.xyz/host/first-ruble-agent.tohaa28.workers.dev/llms.txt)
