# AgentForge

> Pay-per-call DeFi safety tools for AI agents: simulate a transaction before signing, screen counterparties against sanctions and scam lists, catch new token launches already risk-scored, rug-check tokens, check liquidation risk, decode transactions. x402 payments in USDC on Base or Solana; no API keys or accounts. Every paid endpoint answers an unpaid request with HTTP 402 and its exact price.

## Connect

- [MCP server](https://agentforge-taupe.vercel.app/mcp): Streamable HTTP; tools are free up to a daily cap, then point to the paid endpoint
- [x402 discovery](https://agentforge-taupe.vercel.app/.well-known/x402): every paid resource
- [OpenAPI 3.1](https://agentforge-taupe.vercel.app/openapi.json): schemas for every endpoint
- [Catalog](https://agentforge-taupe.vercel.app/catalog): machine-readable services, prices, schemas
- [Agent card](https://agentforge-taupe.vercel.app/.well-known/agent.json): A2A skills
- [Skill guide](https://agentforge-taupe.vercel.app/SKILL.md): when to use what, with examples

## Paid endpoints

- [Pre-Trade Token Check](https://agentforge-taupe.vercel.app/v1/trade-check): POST /v1/trade-check, $0.025. Check a token before you buy it: quantitative rug check, AI risk assessment with market data, and current gas in one call with a proceed/caution/avoid verdict. Cheaper than the three calls separately.
- [New Launch Feed](https://agentforge-taupe.vercel.app/v1/launches): GET /v1/launches, $0.005. Newly launched tokens on Base, Ethereum, and Arbitrum, each already risk-scored: verification, owner mint/blacklist/tax powers, upgradeable proxy, supply held off-pool, thin liquidity, honeypot trading pattern. Poll it with nextSince to get only new launches.
- [Address Reputation Check](https://agentforge-taupe.vercel.app/v1/address-check): POST /v1/address-check, $0.003 for the first address + $0.001 per additional, up to 100 per call. Screen counterparties before sending, approving, or interacting: OFAC sanctions, known scam/phishing wallets, labeled protocol contracts, and brand-new-address detection. 1-100 EVM or Solana addresses per call.
- [Batch Token Risk Scoring](https://agentforge-taupe.vercel.app/v1/risk-batch): POST /v1/risk-batch, $0.004 per token, 2-25 tokens per call. Rug-check a whole watchlist in one call: holder concentration, mint/blacklist/pause/upgrade permissions, and liquidity depth risk scores for 2-25 EVM tokens. Priced per token, well below single calls.
- [EVM Transaction Simulation](https://agentforge-taupe.vercel.app/v1/tx-simulate): POST /v1/tx-simulate, $0.005. Simulate an EVM transaction (or approve-then-swap sequence) before signing: revert reason, every asset leaving or entering the wallet, approvals granted, counterparty sanctions/scam screening, and a proceed/caution/avoid verdict. Ethereum, Base, Arbitrum, Optimism, Polygon.
- [Signature Phishing Check](https://agentforge-taupe.vercel.app/v1/signature-check): POST /v1/signature-check, $0.003. Check a signature request before signing: decodes EIP-712 permits, Permit2, Seaport orders, transfer authorizations, and x402 payment requests; explains what signing would allow, screens spenders and payees, and catches signature-drainer patterns. Proceed/caution/avoid.
- [Lending Position Health](https://agentforge-taupe.vercel.app/v1/lending/health): GET /v1/lending/health, $0.003. How close a wallet is to liquidation on Aave v3 across five chains in one call: collateral, debt, health factor, status, and how far collateral can fall before liquidation.
- [Token Intelligence](https://agentforge-taupe.vercel.app/v1/token-intel): POST /v1/token-intel, $0.015. Token metadata enrichment with market data and AI risk assessment for any EVM or Solana token.
- [Multi-Source Token Research](https://agentforge-taupe.vercel.app/v1/token-research): POST /v1/token-research, $0.03. Aggregates CoinGecko, DeFiLlama, Etherscan, Polymarket data with AI risk assessment.
- [Contract Documentation](https://agentforge-taupe.vercel.app/v1/contract-docs): POST /v1/contract-docs, $0.05. Human-readable smart contract documentation with function descriptions, risk flags, and security posture.
- [Contract Activity Monitor](https://agentforge-taupe.vercel.app/v1/contract-monitor): POST /v1/contract-monitor, $0.025. Monitors recent admin activity: ownership transfers, upgrades, pause state changes.
- [Token Comparison](https://agentforge-taupe.vercel.app/v1/token-compare): POST /v1/token-compare, $0.08. Compare a primary token against up to 3 competitors with AI comparative analysis.
- [Transaction Decoder](https://agentforge-taupe.vercel.app/v1/tx-decode): POST /v1/tx-decode, $0.05. Decode any EVM transaction: function call, parameters, token transfers, and plain-English explanation.
- [Approval Scanner](https://agentforge-taupe.vercel.app/v1/approval-scan): POST /v1/approval-scan, $0.015. Scan a wallet for risky token approvals. On EVM chains: identifies unlimited ERC-20 approvals and unverified spenders. On Solana: scans SPL token delegate authorities. Returns risk assessment.
- [Wallet Safety Check](https://agentforge-taupe.vercel.app/v1/wallet-safety): POST /v1/wallet-safety, $0.10. Comprehensive wallet safety check: scans approvals, analyzes recent transaction activity for suspicious patterns, and assesses target contract risk. Returns composite risk score (0-100). Supports EVM chains and Solana.
- [Sentiment Analysis](https://agentforge-taupe.vercel.app/v1/sentiment): POST /v1/sentiment, $0.003. AI sentiment analysis for crypto, finance, and social media text. Returns score, confidence, label, reasoning.
- [Text Summarization](https://agentforge-taupe.vercel.app/v1/summarize): POST /v1/summarize, $0.008. AI text summarization with configurable length, format, and optional topic focus.
- [Translation](https://agentforge-taupe.vercel.app/v1/translate): POST /v1/translate, $0.002. AI translation with tone control and auto source language detection. Preserves formatting.
- [Gas Price Oracle](https://agentforge-taupe.vercel.app/v1/gas): GET /v1/gas, $0.003. Current gas prices (slow/standard/fast) for any EVM chain with trend analysis.
- [DeFi Pool Snapshot](https://agentforge-taupe.vercel.app/v1/pool-snapshot): GET /v1/pool-snapshot, $0.005. Cached snapshot of top 500 DeFi liquidity pools. Filter by protocol, chain, or token. Returns TVL, APY, volume, IL risk, and registry enrichment.
- [Token Risk Metrics](https://agentforge-taupe.vercel.app/v1/token-risk-metrics): POST /v1/token-risk-metrics, $0.05. Quantitative risk metrics for any ERC-20 token: holder concentration, contract permissions (mint/burn/pause/blacklist), liquidity depth, deployer history, and composite risk score (0-100).
- [Payment Verification](https://agentforge-taupe.vercel.app/v1/ping): GET /v1/ping, $0.001. Liveness check with x402 payment verification. Test that wallet and payment flow work correctly; the response includes the full service catalog with prices and example inputs.
- [Solana Transaction Explain](https://agentforge-taupe.vercel.app/v1/solana/tx-explain): POST /v1/solana/tx-explain, $0.05. Decode a Solana transaction into plain English: labeled programs, token/SOL movements, and risk flags.
- [Solana Transaction Simulate](https://agentforge-taupe.vercel.app/v1/solana/tx-simulate): POST /v1/solana/tx-simulate, $0.15. Simulate a Solana transaction before signing it: balance changes, labeled programs, and a proceed/caution/avoid recommendation.
- [Solana Token Risk Scan](https://agentforge-taupe.vercel.app/v1/solana/token-risk-scan): POST /v1/solana/token-risk-scan, $0.35. Solana rug check: mint authority, freeze authority, holder concentration, liquidity depth, and a composite 0-100 risk score.

## Free endpoints

- [Contract label registry](https://agentforge-taupe.vercel.app/registry/lookup?address=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&chain=ethereum): GET, label any known EVM contract
- [Solana program lookup](https://agentforge-taupe.vercel.app/v1/solana/program-lookup?programId=JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4): GET, label a Solana program
