Tanod
Security tools for AI agents and developers. Tanod (Filipino for a village watchman) watches and reports; it does not promise safety. HTTP and MCP; pay per call in USDC on Base or Polygon or Solana or BNB Chain or Arbitrum with x402; no account or API key.
- pactlint, the contract scan: Static security analysis of Solidity source or a verified contract on Ethereum or Base.
- txpeek, the pre-transaction check: Risk verdict for an address in about a second, before an agent sends a transaction, approves or buys.
- toolsniff, the skill and MCP server scanner: Static security scan of an AI-agent skill or MCP server package before it is installed.
Scans run automatically; no person reviews individual results.
Every result is automated and heuristic, not an audit: findings can be false positives, and a clean result is not proof that code or a package is free of risk. Tanod issues no badges or certificates.
Pricing
| Call | Price (USDC on base) |
|---|---|
| pactlint scan, up to 3,000 normalised source lines | USD 0.25 |
| pactlint scan, 3,001 to 15,000 lines | USD 0.75 |
| pactlint verified source + ABI lookup | USD 0.005 |
| txpeek pre-transaction check | USD 0.005 |
| toolsniff skill / MCP server scan | USD 0.02 |
| toolsniff scan of a whole GitHub repository, or an upload over 5 MB unpacked | USD 0.05 |
| Free tier | 3 scans (or 30 txpeek checks, 10 per scan) and
10 lookups per IP per UTC day; send header X-Tanod-Free: 1 on an unpaid
HTTP call to use it (automatic over MCP) |
Inputs are validated before any payment is settled: rejected inputs, unverified contracts and a full queue are never
charged. Payments go to 0x593857A4a4F619543ea12394137C3004ce841720 on eip155:8453, eip155:137, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, eip155:56, eip155:42161.
pactlint: scan a contract
Source
curl -s -X POST https://tanod.dev/v1/scan/source -H 'X-Tanod-Free: 1' -H 'Content-Type: application/json' \
-d "$(jq -Rs '{source: .}' Vault.sol)"
Body: {"source": "..."} (one file, no imports) or {"standard_json": {...}} (solc
standard-JSON input with every import inline). Optional filename, compiler_version,
options. solc + Slither + custom detectors for recurring DeFi bug classes, triaged into a fixed JSON
report with file:line findings. Typically a few seconds; at most 60 s per scan (then the
report says timeout).
Deployed contract
curl -s -X POST https://tanod.dev/v1/scan/address -H 'X-Tanod-Free: 1' -H 'Content-Type: application/json' \
-d '{"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", "chain": "ethereum"}'
Verified source comes from Sourcify (Ethereum and Base). Unverified addresses return 404 and are not charged.
txpeek: check an address before transacting
curl -s -X POST https://tanod.dev/v1/check/address -H 'X-Tanod-Free: 1' -H 'Content-Type: application/json' \
-d '{"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "base"}'
Returns in about a second: verdict (low, caution, high, unknown), risk_score 0-100 and
plain-language reasons (upgradeable by a single key, unverified source, mint/blacklist/fee functions,
SELFDESTRUCT or DELEGATECALL, an EOA where a contract was expected, ...), with proxy, token and verification details.
Heuristic pre-check, not an audit; a low verdict is not a clearance, and the buy/sell (honeypot) simulation of ERC-20 tokens
only sees one trade now (delays, per-wallet or owner-toggled sell blocks can pass).
toolsniff: scan an agent skill or MCP server before installing it
curl -s -X POST https://tanod.dev/v1/scan/package -H 'X-Tanod-Free: 1' -H 'Content-Type: application/json' \
-d '{"source": "npm:@modelcontextprotocol/server-filesystem"}'
curl -s -X POST https://tanod.dev/v1/scan/package -H 'X-Tanod-Free: 1' -F [email protected]
Sources: npm:name[@version], pypi:name[==version],
github:owner/repo[@ref][//subdir], clawhub:[owner/]slug[@version], or upload a
.zip/.tgz (or a single SKILL.md) as multipart file or JSON content_base64.
The package is unpacked in a sandbox and read as text, never installed or run. The report gives a verdict
(safe-looking, review, dangerous, unknown), a 0-100 risk score and findings with file:line evidence for prompt
injection and tool poisoning, hidden text, remote code execution, secret and wallet access, exfiltration endpoints,
install hooks, persistence, over-broad MCP tools, typosquats and known-vulnerable dependencies (OSV.dev, registry
sources only; uploads are never sent there). Static analysis: dynamically registered tools, code fetched at run time
and nested archives are not covered, and "safe-looking" only means no rule matched. Usually a few seconds; at most
60 s (a very large monorepo may end as timeout; scan a //subdir
instead). Not-found or unreachable packages are not charged.
Paying with x402
An unpaid call without the X-Tanod-Free: 1 header, or one past the free tier, gets
402 Payment Required (x402 v2). The PAYMENT-REQUIRED header and the JSON body carry
the same requirements (scheme exact, USDC, payTo, amount in
atomic units). An x402 client signs an EIP-3009 USDC authorization and retries with PAYMENT-SIGNATURE (or
X-PAYMENT); the receipt comes back in PAYMENT-RESPONSE / X-PAYMENT-RESPONSE.
A request with a missing or invalid input and no payment also gets the 402, at the base price, with an error that says
what is wrong. With a payment attached, invalid input is refused before the payment is used, and a payment for the
wrong price tier is refused and never settled. Idempotent retries: every 402 declares the x402 payment-identifier extension (an ID is optional). Put a payment ID (16-128 characters: letters, digits, - and _) in extensions["payment-identifier"].info.id of your payment and keep it when you retry the same request. A retry with the same ID, route and body, paid by the same wallet, gets the paid answer again with no second verify or charge (header Idempotent-Replayed: true; over MCP _meta["tanod/idempotent-replayed"]). The same ID with another request or payer gets 409 payment_identifier_conflict, an invalid ID 400, and a retry while the first call still runs 409 payment_identifier_in_progress. Only settled 200 answers are kept, each up to 5 MB; a larger answer, or one from a route that never stores what it is sent (mlpeek, imagepeek, pdfpeek, the utilpeek text and personal-value routes), is not kept, so a retry gets 409 payment_identifier_not_kept and is not charged. A retry is matched to the payer by its own EIP-3009 or Permit2 signature; on Solana or with a smart-contract wallet it gets 409 instead. If a client sends an x402 payment ID, we keep that paid answer for up to 1 hour so a retry gets it without paying again, then delete its cached output; the financial identity remains bound. Financial safety tracking is mandatory even without an optional payment ID: keyed spend/request/terms bindings and bounded receipt/status metadata survive cancellation, restart and output expiry. No raw authorization, document or private output is kept in that journal. An unresolved identical purchase for the same verified payer blocks fresh authorizations (409 purchase_unresolved, not charged) until evidence-based reconciliation; do not pay again while settlement_unknown. This conservative rule can block intentional identical concurrent purchases. Financial metadata is capacity-bounded and may be retained indefinitely; unavailable/full storage refuses new submissions while retaining recovery. The journal key is stored in its database, not protection against offline guessing after database compromise.
MCP
{
"mcpServers": {
"tanod": {
"type": "http",
"url": "https://tanod.dev/mcp"
}
}
}
Server tanod. Tools: pactlint scan_contract_source and scan_contract_address;
txpeek check_contract_before_interaction; toolsniff scan_agent_package. Paid calls use the
x402 MCP transport (_meta["x402/payment"]).
Sample reports
| Report | What it shows | |
|---|---|---|
| Swap with zero minimum output | A router call with amountOutMin = 0: sandwichable by MEV bots (synthetic example). Result: 2 high. | JSON |
| ERC-4626 first-depositor inflation | Vault share price derived from balanceOf(this) without virtual shares (synthetic example). Result: 1 high, 2 medium, 1 low. | JSON |
| Unchecked Chainlink price | latestRoundData() used without staleness or sign checks (synthetic example). Result: 1 medium. | JSON |
| Uniswap V2 Router02 (Ethereum) | A widely used live contract, scanned from its verified source. How to read it: every finding is a low-severity note on intended design (multi-hop swaps call each pair in a loop, the fee-on-transfer swap measures output as a balance difference, the createPair address is not needed). Result: 6 low. | JSON |
| Uniswap SwapRouter02 (Base) | A multi-file verified project fetched from Sourcify and scanned as standard JSON. How to read it: every finding is a low-severity note on intended design (swaps and oracle checks loop over the path's pools, a balance read before a swap measures the output or spends the router's own balance when asked to, the strict equalities are a price-limit default, an exact-output check and an opt-in previous-blockhash check, and verifyCallback reverts on its own). Result: 14 low. | JSON |
Reference
- OpenAPI spec
- llms.txt
- pactlint report schema: every report has
status,findings[](detector, severity, confidence,file:line, snippet, explanation, recommendation, stable fingerprint),stats,timing,engineand the disclaimer. Product responses carry anX-Tanod-Productheader. - Limits: 200 KB per single file, 1 MB standard JSON, 60 s per contract scan and 60 s per package scan, one scan at a time (3 queued at most, up to 25 s each), every answer within about 90 s (otherwise 503 with Retry-After, not charged), 600 requests per minute per IP.
Tanod · https://tanod.dev