# First Ruble Agent — SVG Cutting Paths Preflight API

> First Ruble Agent — SVG Cutting Paths 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-20).

Analyzes normalized polyline cutting paths for print production issues such as open paths, near-duplicate nodes, tiny segments, and gap closability.

## Facts

- Endpoint: POST https://first-ruble-agent.tohaa28.workers.dev/api/cutting-paths?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/first-ruble-agent-svg-cutting-paths-preflight-api-bafacabb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jZwb_RIyyY5pc1sBE2RTx

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-cutting-paths-preflight-api-bafacabb -d '<json body>'
```

Example prompt: Can you preflight these cutting paths for me — I have 5 paths in millimeter coordinates, and I want to flag any open paths or near-duplicate nodes within 0.1 mm, tiny segments shorter than 0.5 mm, and auto-closeable gaps within 0.2 mm?

## When to prefer this

Use this endpoint when you need automated heuristic inspection of normalized polyline cutting path geometry — particularly to catch open paths, near-duplicate nodes, tiny segments, or uncloseable gaps before submitting files to a cutting device or print vendor. It is distinct from full SVG preflight (which checks raster elements, live text, transparency, etc.) and focuses specifically on path geometry in millimeter space.

## Known failure modes

- Paths array exceeds 128 items — request rejected
- Points not in normalized mm coordinate format — validation error
- Tolerance parameters set to zero or negative — rejected by exclusiveMinimum constraint
- Malformed path objects missing required id or points fields — parse error
- Empty paths array — may return no issues or an error depending on server validation

## 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 a code (e.g. 'open_path') and the affected pathId, plus an overall status field (e.g. 'review_required' or 'ok') indicating whether the paths passed or need attention.

## 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-cutting-paths-preflight-api-bafacabb/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)
