Skill: DeFi protocol scanner
POST /api/skill/defi-protocol-scannerDue-diligence a DeFi protocol in one workflow: live token price, market context, the token's fundamentals (supply, valuation, all-time high and low, links), and recent news - the market and off-chain picture together. Send POST /api/skill/defi-protocol-scanner with the required field protocol and pay $0.02 per call over x402 or MPP (there is no free tier). It returns a JSON object with pack, args, steps and summary.
DeFi protocol scanner skill pack: one x402 payment runs 4 underlying tools (crypto-price, crypto-market, coin-profile, search); partial-success per step. Data provided by CoinGecko (https://www.coingecko.com/en/api).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | yes | The protocol token's coin id (e.g. aave, uniswap) |
Example request
curl -i -X POST https://agent402.tools/api/skill/defi-protocol-scanner \
-H "Content-Type: application/json" \
-d '{"protocol":"aave"}'Without payment this returns HTTP 402 Payment Required with the exact price for skill-defi-protocol-scanner; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
POST /api/skill/defi-protocol-scanner$0.02 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"pack": "defi-protocol-scanner",
"args": {
"protocol": "aave"
},
"steps": [
{
"slug": "crypto-price",
"ok": true,
"result": {}
},
{
"slug": "crypto-market",
"ok": true,
"result": {}
},
{
"slug": "coin-profile",
"ok": true,
"result": {}
},
{
"slug": "search",
"ok": true,
"result": {}
}
],
"summary": "4/4 steps succeeded"
}| Field | Type | Always present | In the example |
|---|---|---|---|
pack | string | yes | defi-protocol-scanner |
args | object | yes | 1 field: protocol |
steps | array of objects | yes | 4 items in the example |
summary | string | yes | 4/4 steps succeeded |
credit | string | no | Present when a step that reads the credited source answered: Data provided by CoinGecko (https://www.coingecko.com/en/api). |
From an MCP client
catalog.call {
"slug": "skill-defi-protocol-scanner",
"params": {
"protocol": "aave"
}
}The hosted connector at https://agent402.tools/mcp needs a payment for skill-defi-protocol-scanner; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.0.
Errors and behavior
- Arguments left out fall back to the pack's own defaults. Each step reports on its own; the call succeeds when at least one step does, and a run where every step fails is refused (400 when the input caused it, 502 otherwise).
- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/skill/defi-protocol-scanner returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (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.02" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/skill/defi-protocol-scanner", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"protocol": "aave"
}),
});Related tools
Skill: Convert anything to markdown
Convert anything at a URL - HTML, PDF, or an image - to clean markdown.
Skill: API health check
Is this API endpoint healthy?
Skill: API investigation
Point at an unknown API endpoint and figure out how to use it: auth scheme, content type, version, rate limits.
Skill: Article digest
Quick research brief on any topic - web search results plus an AI-generated answer in one pass.
Skill: Brand protection
Is this domain legitimate?
Skill: Cheapest rail right now
Where should an agent transact this minute?