# OSA Agent Spend Preflight

> OSA Agent Spend Preflight is a paid API for AI agents from 187-124-119-223.sslip.io:8443, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Evaluates the live reliability and trustworthiness of an API, MCP server, or provider and returns an ALLOW/HOLD/DENY routing decision with confidence score.

## Facts

- Endpoint: GET https://187-124-119-223.sslip.io:8443/api/agent-preflight
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/osa-agent-spend-preflight-1c34963b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1wMEVJqw5Y7O7CUQMVZsH

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 osa-agent-spend-preflight-1c34963b
```

Example prompt: Before calling the OpenAI MCP server, run a preflight reliability check on it and tell me whether I should allow, hold, or deny the request — and how confident you are.

## When to prefer this

Use this endpoint when an AI agent needs a real-time, live reliability signal before committing to a paid or critical API/MCP call. Prefer it over static provider lists or hardcoded routing logic when you need a dynamic ALLOW/HOLD/DENY verdict with a confidence score. Especially valuable for agentic workflows where wrong provider selection wastes money or causes downstream failures.

## Known failure modes

- Query string too short (under 2 chars) or too long (over 120 chars) — input validation error
- Unknown or unrecognized provider/API name — low confidence result with possible DENY
- Provider data stale or unavailable — may return HOLD decision
- Network timeout reaching the preflight service — HTTP 5xx error
- Payment not completed (x402) — request blocked before evaluation

## How this service works

Paid machine API for live API/MCP provider reliability decisions.

## Output

Returns a JSON object with: a boolean 'ok' field, the original query, a routing 'decision' of ALLOW/HOLD/DENY, a numeric confidence score (0-1), a human-readable reason code, a 'best_provider' object with name and status, and an 'alternatives' array of fallback providers.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 120,
       "minLength": 2,
       "description": "API, MCP server, provider, or category to evaluate"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "decision",
      "query"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "query": {
       "type": "string"
      },
      "reason": {
       "type": "string"
      },
      "decision": {
       "enum": [
        "ALLOW",
        "HOLD",
        "DENY"
       ],
       "type": "string"
      },
      "confidence": {
       "type": "number"
      },
      "alternatives": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "best_provider": {
       "type": [
        "object",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "query": "mcp",
  "reason": "best_live_trust_score_82",
  "decision": "ALLOW",
  "confidence": 0.91,
  "alternatives": [],
  "best_provider": {
   "name": "example-provider",
   "status": "active"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/osa-agent-spend-preflight-1c34963b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 187-124-119-223.sslip.io:8443](https://www.zero.xyz/host/187-124-119-223.sslip.io%3A8443/llms.txt)
