# AgentForge Contract Documentation

> AgentForge Contract Documentation is a paid API for AI agents from agentforge-taupe.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-01).

Generates human-readable documentation for a smart contract: function descriptions, parameter explanations, risk flags, and a security posture summary

## Facts

- Endpoint: GET https://agentforge-taupe.vercel.app/v1/contract-docs?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentforge-contract-documentation-9f2e5a98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T0bAG0f6Cvyg3HTlDGd8E

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentforge-contract-documentation-9f2e5a98
```

Example prompt: Before I interact with the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum, can you pull up human-readable documentation for it — especially the transfer and approve functions — including any risk flags or security concerns I should know about?

## When to prefer this

Choose this endpoint when an AI agent or developer needs to understand what a smart contract does before interacting with it — especially in DeFi contexts where understanding function semantics and risk is critical. Prefer this over a raw security audit endpoint when you need quick, human-readable documentation rather than a deep vulnerability scan, and over a transaction decoder when you want pre-interaction understanding rather than post-transaction explanation.

## Known failure modes

- Invalid or non-existent contract address returns an error
- Unverified contracts with no ABI may produce incomplete or low-confidence documentation
- Unsupported chain returns a validation error
- Rate limiting or payment failure (402) if USDC payment is not properly configured
- Contract with obfuscated or minimal bytecode may yield generic or incomplete results

## How this service works

Human-readable documentation for agents that need to understand a smart contract before calling it: function descriptions, parameter explanations, risk flags, and a security posture summary. Category: inference.

## Output

Returns human-readable documentation for the specified smart contract including: plain-English descriptions of each function, explanations of input parameters, identified risk flags (e.g. owner privileges, unchecked calls), and an overall security posture summary. If focusFunctions are specified, output is scoped to those functions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "ethereum",
    "base",
    "polygon",
    "arbitrum",
    "optimism",
    "avalanche"
   ],
   "type": "string",
   "default": "ethereum"
  },
  "address": {
   "type": "string",
   "minLength": 1,
   "description": "Contract address"
  },
  "focusFunctions": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Optional list of function names to focus on"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentforge-contract-documentation-9f2e5a98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentforge-taupe.vercel.app](https://www.zero.xyz/host/agentforge-taupe.vercel.app/llms.txt)
