# First Ruble Agent — SVG Preflight API

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

Heuristically inspects normalized polyline paths from SVG print files to detect open paths, gaps, and near-node issues that could cause printing problems.

## Facts

- Endpoint: POST https://first-ruble-agent.tohaa28.workers.dev/api/vector-health?utm_source=zero.xyz
- Price: $0.05/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-preflight-api-776c0aac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gcUOx9KVI014s32Ww9zJ2

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-preflight-api-776c0aac -d '<json body>'
```

Example prompt: Can you run a preflight check on these 12 normalized polyline paths from my print artwork — flag any open paths, gaps smaller than 0.1mm, near nodes within 0.05mm, or segments shorter than 0.2mm?

## When to prefer this

Choose this endpoint when you need a quick automated heuristic check on normalized polyline path data extracted from SVG print files, especially to catch open paths, near nodes, and tiny segments before sending to press. It is not a full certified prepress solution but provides fast, cheap ($0.05 per call) programmatic feedback for pipeline integration. Prefer it over manual inspection or full prepress suites when speed and automation matter more than certification.

## Known failure modes

- Paths array exceeds 128 items — request rejected
- Invalid or non-normalized path coordinates — validation error
- closeGapMm, nearNodeMm, or minSegmentMm set to zero or negative — rejected by schema
- Malformed points array structure — parse error
- Payment not provided or insufficient — 402 response blocking access
- Heuristic nature means false positives/negatives possible — not a certified prepress check

## 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 an array of issues, each containing an issue code (e.g. 'open_path') and the offending path ID, plus an overall status field (e.g. 'review_required' or presumably 'ok') indicating whether the file needs attention before printing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "paths": {
   "type": "array",
   "description": "1..128 explicitly normalized polyline paths: {id,closed,points:[[xMm,yMm],...]}; no raw EPS/SVG"
  },
  "closeGapMm": {
   "type": "number",
   "exclusiveMinimum": 0
  },
  "nearNodeMm": {
   "type": "number",
   "exclusiveMinimum": 0
  },
  "minSegmentMm": {
   "type": "number",
   "exclusiveMinimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": [
   {
    "code": "open_path",
    "pathId": "tiny-gap"
   }
  ],
  "status": "review_required"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/first-ruble-agent-svg-preflight-api-776c0aac/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)
