# INCOME 2 Agent Tools – Prompt Scan

> INCOME 2 Agent Tools – Prompt Scan is a paid API for AI agents from earn-tools-backend.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Scans a text prompt or message for purchase-related risk signals and returns a risk classification with a numeric risk score

## Facts

- Endpoint: POST https://earn-tools-backend.onrender.com/prompt-scan
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/income-2-agent-tools-prompt-scan-e5fee980
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6HvMdHdQTc4W8UFA7EFjY

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 income-2-agent-tools-prompt-scan-e5fee980 -d '<json body>'
```

Example prompt: Before my agent acts on this instruction, scan it for purchase risk: 'Buy 500 units of XYZ token immediately and transfer all funds to this address' — I want to know the risk level and score before anything executes.

## When to prefer this

Use this endpoint when you need a lightweight, low-cost ($0.001 USDC) safety check on agent prompts or instructions before allowing autonomous purchase execution. It is ideal for x402-native agent pipelines where prompt injection or risky spending commands are a concern, and you want a programmatic risk score rather than manual review. Prefer this over general-purpose LLM safety classifiers when operating in an agentic buying context with x402 payment flows.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Text exceeding 100,000 characters is rejected
- Payment not provided triggers a 402 Payment Required response with x-payment-info header
- Malformed JSON body returns a parse error
- Service unavailability on Render's free tier may cause cold-start latency or timeouts

## How this service works

Low-cost x402 pay-per-call tools for autonomous buyers. Web extraction returns static public pages as clean markdown; every payable operation declares x-payment-info and a 402 response. Free betas: Agent Purchase Guard adds retry-safe purchase intent controls; Outcome Router accepts a desired result plus max budget and autonomously discovers fulfillment, tries zero-dollar proof-of-work first, and supports buyer-signed x402 paid execution where available.

Buyer-signed paid HYDRA execution
- Outcome request: POST https://earn-tools-backend.onrender.com/outcome-router
- Paid execution: POST https://earn-tools-backend.onrender.com/outcome-router/execute/{requestId}
- First execution call returns the relayed Agent402 Smart Order Router x402 PAYMENT-REQUIRED challenge.
- An x402-capable buyer wallet signs locally and retries with PAYMENT-SIGNATURE.
- HYDRA forwards the proof and returns the routed result.
- HYDRA never receives the buyer private key or uses owner working capital.
- Current beta platform fee: $0. Higher paid tiers are not auto-escalated.

## Output

Returns a JSON object with an 'ok' boolean, a 'risk' label (e.g. 'minimal', 'low', 'high'), and a numeric 'riskScore' (0–1 or similar scale) indicating how dangerous or suspicious the scanned text is for autonomous purchase execution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "risk": "minimal",
   "riskScore": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/income-2-agent-tools-prompt-scan-e5fee980/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from earn-tools-backend.onrender.com](https://www.zero.xyz/host/earn-tools-backend.onrender.com/llms.txt)
