Developers / MCP tools / Start here

before_checkout

Before checkout

Call right before your agent tries to check out. A one-line answer, reaches_checkout, best_route, payment_methods_declared (the store's own UCP declaration; null is not a no), up to 3 blockers and a link to the full precheck record. Same answer as GET /api/precheck, under 2 KB.

NO LOGINREAD-ONLYNOT DESTRUCTIVEIDEMPOTENTNOT REACHES THE OPEN WEB

What it does

Call this right before your agent tries to check out at a store, or when a user asks "can my agent check out at <store>?". Not for an attempt that already happened (log it with report_outcome), the reason an agent keeps failing (why_blocked_and_fix), or choosing between 2 or more stores (compare). Returns a one-line answer, reaches_checkout (true only when a checkout link came back or a shopper reached checkout; false when a route was measured and did not reach checkout; null when not shown either way: no agent catalog found and no browser test is null, and so is a product added to the cart with no shopper reaching checkout; null is not a no), protocol_route, browser_route, standard_shoppers when ARC's standard shoppers tried the store (a dated label, "ARC's standard shoppers: N of M reached checkout, <date>": a lower bound, not a verdict; ARC stops before payment and never places an order), best_route (the best saved way in), payment_methods_declared (the payment handler ids the store declares to agents in its own UCP profile, with source "ucp_profile", checked_at and a note; the store's own declaration, not a test of any agent paying there; null with payment_methods_note when ARC has no UCP profile reading, which is not a no), up to 3 blockers, checked_at, the Agent Readiness Grade (grade, with expired when over 30 days old; grade_note when not graded, which is not a mark against the store), alternatives_hint when the grade is D or F or expired (a find_stores call with min_grade B in the same category), and a full_record link (the precheck answer, which also carries product_markup). Example: before_checkout({"url":"https://allbirds.com"}) → {"answer":"A saved check got a checkout link back at allbirds.com via storefront_mcp (6 hours ago).","reaches_checkout":true,…}. The answer leads with the dated fact; once the record is not current it starts "Last known on <date>.". reaches_checkout false or unknown is not a no. Saved checks only: no store fetch, no scan, no login. Advisory; ARC stops before payment. Every answer carries checked_at (the saved check it rests on; for a list, the oldest) and stale (true when that check is 24 hours old or older, or has no time). Errors: {error:{code, message, next_step}}.

Limits: 60 reads per network per minute, shared with precheck. Free. Does not start a scan.

Arguments

NameTypeRequiredDescription
urlstringyesStore or product URL, such as https://allbirds.com or allbirds.com.
Full input JSON Schema
INPUT SCHEMA
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Store or product URL, such as https://allbirds.com or allbirds.com."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Call it

From Claude, Cursor, ChatGPT or VS Code, connect the server (config) and ask in plain words; the client picks the tool. Or call it directly with JSON-RPC:

CURL · JSON-RPC
curl -s https://www.arcreport.ai/api/ask \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"before_checkout","arguments":{"url":"https://allbirds.com"}}}'
JAVASCRIPT
const res = await fetch("https://www.arcreport.ai/api/ask", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "before_checkout",
      "arguments": {
        "url": "https://allbirds.com"
      }
    }
  }),
});
const { result } = await res.json();
const data = JSON.parse(result.content[0].text); // result.isError is true on errors
console.log(data);
PYTHON
import json, requests

res = requests.post("https://www.arcreport.ai/api/ask", json={
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "before_checkout",
        "arguments": {
            "url": "https://allbirds.com"
        }
    }
}, timeout=30)
result = res.json()["result"]
print(json.loads(result["content"][0]["text"]))

REST equivalent

GET /api/precheck. The full record behind the short answer. Documented in openapi.json.

CURL · GET
curl -s 'https://www.arcreport.ai/api/precheck?url=https://allbirds.com'