# Verdict MCP — agent skill

> **Name:** `verdict-mcp`
> **Service:** https://verdict-mcp.cakraegg.workers.dev/mcp
> **Tools:** 3 — token-safety ($0.005), wallet-verdict ($0.005), token-verdict ($0.02), USDC on Base (eip155:8453), x402 v2, facilitator PayAI.
> **No API key.** Payment is per call, attached to the MCP request.

## What this server does

One MCP server (Streamable HTTP, stateless, protocol 2026-07-28) for three pay-per-call verdict APIs: token safety score, wallet risk score, token grade. An agent calls a tool, gets an x402 payment challenge, pays in USDC, retries, gets the verdict. Facts + scores — NOT investment advice.

## Discovery (do this first — never hardcode URLs, prices, or addresses)

1. `GET /` — landing page: tools, prices, live 402 examples (free).
2. `GET /health` — liveness + tool count (free).
3. `GET /.well-known/x402` — x402 service descriptor: payment requirements, accepted asset, payTo, facilitator (free).
4. `GET /skill.md` (this file), `GET /llms.txt` (free).
5. `POST /mcp` with `tools/list` — the 3 tools + input schemas (free).

## How to call a tool

- **Step 1 — initialize (optional).** `POST /mcp` with `{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2026-07-28","capabilities":{},"clientInfo":{"name":"...","version":"..."}}}`.
- **Step 2 — list tools (free).** `tools/list` returns token-safety, wallet-verdict, token-verdict with input schemas.
- **Step 3 — call without payment.** `tools/call` with the tool name + arguments. You receive a result whose text is the 402 challenge JSON: exact amount (5000 or 20000 atomic USDC), asset `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, payTo `0x89f982EeFff6e6Cd8E4F4DcA6d290a6D6208c291`. Nothing is charged yet.
- **Step 4 — pay.** Sign an EIP-3009 authorization for exactly the amount/asset/payTo in the challenge. The facilitator settles — you do NOT pay gas.
- **Step 5 — retry the SAME tools/call** with the `X-PAYMENT` header. A 200 returns the verdict JSON.

## Tools

- `token-safety` — $0.005/call. Safety score 0–100 + flags for one token (honeypot risk, sell tax, owner powers, liquidity, holder concentration). Params: `token` (0x + 40 hex on base/ethereum, or solana mint), `chain?` (base, ethereum, solana; default base).
- `wallet-verdict` — $0.005/call. Risk score 0–100 + reasons for one wallet on Base. Params: `address` (0x + 40 hex).
- `token-verdict` — $0.02/call. Grade A–F + one-line roast + live onchain metrics for one token. Params: `tokenAddress` (0x + 40 hex on base/robinhood, or solana mint), `chain?` (base, solana, robinhood; auto-detected when omitted).

## Free routes (never pay for these)

- `POST /mcp` `initialize`, `ping`, `tools/list` — free.
- `GET /`, `GET /health`, `GET /.well-known/x402`, `GET /skill.md`, `GET /llms.txt` — free.

## Errors (all free — no payment is taken)

- Invalid token/address (tool result isError) — fix the input, do not pay.
- 402 challenge (tool result, isError false) — payment required, see flow above.
- Upstream 5xx — do not pay; retry later.

## Rules

- Discovery is not authorization to pay. Only call a tool when the task actually needs that verdict.
- Never pay for initialize, tools/list, health, descriptor, or docs routes.
- Keep the call identical between the unpaid 402 call and the paid retry (same tool + arguments).
- Pay exactly the quoted amount — never more.

## Links

- MCP: https://verdict-mcp.cakraegg.workers.dev/mcp
- Registry: io.github.cakraegg/verdict-mcp
- Source: https://github.com/cakraegg/verdict-mcp
- Token Safety: https://token-safety-verdict.cakraegg.workers.dev
- Wallet Verdict: https://wallet-verdict.cakraegg.workers.dev
- Token Verdict v2: https://token-verdict-v2.cakraegg.workers.dev
