Website launch check
$0.01 per callUSDC via x402
POST /api/launch-checkCheck a website before it goes live.
Details
One call reads the page, its https redirect and www address, certificate, robots.txt, sitemap, indexing rules, canonical link, title, description, phone layout, share card, icon, leftover test text, and SPF and DMARC mail records. Returns ready true or false (null when a check that blocks a launch could not be made) and each check with what was found and how to fix it. A check that could not be made says so. It reads one page and gives no legal or security clearance.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | The page to check. https:// is assumed when left out. Also accepted as link, uri, href, page. Up to 2048 characters. The example sends https://agent402.tools. |
Example request
curl -i -X POST https://agent402.tools/api/launch-check \
-H "Content-Type: application/json" \
-d '{"url":"https://agent402.tools"}'Watch a call get paid
Request
POST /api/launch-check402
$0.01 USDCSign
PAYMENT-SIGNATURESettle
on 14 chainsAnswer
200 OKReceipt
Agent402-ReceiptEd25519Example response
{
"url": "https://agent402.tools/",
"ready": true,
"summary": {
"passed": 2,
"warnings": 1,
"failed": 0,
"notChecked": 0
},
"checks": [
{
"id": "answers",
"blocksLaunch": true,
"result": "pass",
"found": "HTTP 200 at https://agent402.tools/"
},
{
"id": "certificate",
"blocksLaunch": true,
"result": "pass",
"found": "trusted, covers agent402.tools, 54 days left"
},
{
"id": "share-card",
"blocksLaunch": false,
"result": "warn",
"found": "none",
"fix": "Add og:title and og:image so a shared link shows a card."
}
],
"checkedAt": "2026-12-04T15:40:00.000Z"
}| Field | Type | Always present | In the example |
|---|---|---|---|
url | string | yes | https://agent402.tools/ |
ready | boolean | yes | true |
summary | object | yes | 4 fields: passed, warnings, failed, notChecked |
checks | array of objects | yes | 3 items in the example |
checkedAt | string | yes | 2026-12-04T15:40:00.000Z |
From an MCP client
catalog.call {
"slug": "launch-check",
"params": {
"url": "https://agent402.tools"
}
}Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.20.1): pays from a wallet or AGENT402_CREDITS_KEY.
Errors and behavior
- Pay $0.01 per call over x402 or MPP. Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - Required:
url; a rejected input answers 4xx witherror,tool,expected,requiredandexample. - On this route, a call ending in any status of 400 or above is not charged over x402, MPP or a credits key. A Tempo push credential pays before the call; a failure is a refund owed.
- A bodyless
GETorHEADreturns the same 402 quote. - An
Idempotency-Keyreplays the first 200 uncharged (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.01" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/launch-check", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"url": "https://agent402.tools"
}),
});Get a wallet or run npx -y agent402-mcp@0.20.1 wallet new.
The quote (Python)
import base64, json, urllib.error, urllib.request
req = urllib.request.Request("https://agent402.tools/api/launch-check", method="POST", data="{\"url\":\"https://agent402.tools\"}".encode(), headers={"Content-Type": "application/json"})
try:
urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]]) # the price, per chain, in base units