AG
Payments · x402 · early usage
Pre-execution decision for a metered search or browse tool call
Pre-execution decision for a metered search or browse tool call. Evaluates the proposal; does not execute the external tool.
by api.agent-preflight.com · discovered, not yet claimed by its owner · updated 2026-10-11
30d calls3
30d payers3
MethodPOST
Outputjson
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Pre-execution decision for a metered search or browse tool call. Evaluates the proposal; does not execute the external tool.
Tags: bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-11
Input example from Bazaar metadata
{
"budget": {
"maxToolCallsRemaining": 4,
"remainingUsd": 0.08,
"reservedUsd": 0.02
},
"history": [],
"runId": "settlement-check-01",
"stepId": "paid-call-01",
"task": {
"goalHash": "settlement-verification"
},
"tool": {
"estimatedExternalCostUsd": 0.01,
"estimatedModelCostUsd": 0.002,
"operation": "web_search",
"provider": "search",
"request": {
"max_results": 5,
"query": "Acme Corp Series B funding"
}
}
}Output example
{
"decision": "allow",
"enforcement": "execute",
"estimated": {
"avoidableExternalCostUsd": 0,
"avoidableModelCostUsd": 0,
"billable": false,
"confidence": 0.5,
"netSavingsUsd": 0,
"preflightCostUsd": 0,
"priceChargedUsd": 0
},
"issues": [],
"reasonCodes": [
"NO_PROVEN_WASTE"
],
"requestFingerprint": "f2aa17128536fec8262229a5654e49e9abc18f7f7387cb571a0d035906da9e0f"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/36169.jsonfor the price and payment options. - Pay. Call
GET https://api.agent-preflight.com/v0.2/preflight/tool-call. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.002 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 3 calls · 3 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.002 | 0x75ea953cf2c5dd8ebb304d50fb52a7d47c952a8a | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x75ea953cf2c5dd8ebb304d50fb52a7d47c952a8a",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"amountUsd": 0.002,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"additionalProperties": false,
"description": "Deterministic pre-execution decision. The destination tool is never executed by this service.",
"properties": {
"decision": {
"enum": [
"allow",
"block",
"reuse",
"defer",
"advise"
],
"type": "string"
},
"enforcement": {
"enum": [
"execute",
"safe_to_skip",
"advisory"
],
"type": "string"
},
"estimated": {
"additionalProperties": false,
"properties": {
"avoidableExternalCostUsd": {
"type": "number"
},
"avoidableModelCostUsd": {
"type": "number"
},
"billable": {
"type": "boolean"
},
"confidence": {
"description": "Rule constant, not a calibrated probability.",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"netSavingsUsd": {
"type": "number"
},
"preflightCostUsd": {
"type": "number"
},
"priceChargedUsd": {
"description": "Legacy modeled actionable fee, NOT an actual settlement receipt. Paid allow/advise responses can show zero here.",
"type": "number"
}
},
"required": [
"preflightCostUsd",
"priceChargedUsd",
"avoidableExternalCostUsd",
"avoidableModelCostUsd",
"netSavingsUsd",
"billable",
"confidence"
],
"type": "object"
},
"issues": {
"items": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"path": {
"type": "string"
}
},
"required": [
"path",
"code",
"message"
],
"type": "object"
},
"type": "array"
},
"matchedCallId": {
"type": "string"
},
"reasonCodes": {
"items": {
"type": "string"
},
"type": "array"
},
"recommendation": {
"additionalProperties": false,
"properties": {
"action": {
"type": "string"
},
"resultReference": {
"type": "string"
}
},
"type": "object"
},
"requestFingerprint": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
}
},
"required": [
"decision",
"enforcement",
"reasonCodes",
"requestFingerprint",
"issues",
"estimated"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"decision": "allow",
"enforcement": "execute",
"estimated": {
"avoidableExternalCostUsd": 0,
"avoidableModelCostUsd": 0,
"billable": true,
"confidence": 0,
"netSavingsUsd": 0,
"preflightCostUsd": 0,
"priceChargedUsd": 0
},
"issues": [
{
"code": "string",
"message": "string",
"path": "string"
}
],
"matchedCallId": "string",
"reasonCodes": [
"string"
],
"recommendation": {
"action": "string",
"resultReference": "string"
},
"requestFingerprint": "string"
},
"type": "string"
}Examples
curl
curl "https://api.agent-preflight.com/v0.2/preflight/tool-call"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidJavaScript
const res = await fetch("https://api.agent-preflight.com/v0.2/preflight/tool-call");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.agent-preflight.com/v0.2/preflight/tool-call")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.agent-preflight.com
- Endpoint
- https://api.agent-preflight.com/v0.2/preflight/tool-call
- Machine-readable
/resources/36169.json