# ToolSchema Forge Cookbook (x402)

> ToolSchema Forge Cookbook (x402) is a paid API for AI agents from toolschema-forge.toolschemaforge.workers.dev, paid per call via x402, $7/call, status unknown (last checked 2026-10-21).

Purchases and downloads the Tool-Schema Cookbook & Template Pack (PDF + ZIP) for LLM tool schema conversion across OpenAI, Anthropic, Gemini, and MCP formats, paid per call in USDC via x402.

## Facts

- Endpoint: POST https://toolschema-forge.toolschemaforge.workers.dev/v1/cookbook?utm_source=zero.xyz
- Price: $7/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolschema-forge-cookbook-x402-e47ca0df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gu33EF4emFj6PMBfbaW3X

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 toolschema-forge-cookbook-x402-e47ca0df -d '<json body>'
```

Example prompt: Buy me the ToolSchema Forge Tool-Schema Cookbook & Template Pack — I need the PDF and ZIP downloads for writing and converting tool schemas across OpenAI strict mode, Anthropic, Gemini, and MCP formats.

## When to prefer this

Choose this endpoint when you need a pre-built, authoritative reference pack (PDF + templates) for writing, converting, and linting LLM tool schemas across OpenAI (strict mode), Anthropic, Gemini, and MCP — and you want to pay per call in USDC via x402 rather than subscribe to a service. Not suitable if you need to programmatically convert a specific schema at runtime rather than purchase a static resource pack.

## Known failure modes

- Payment not received or insufficient USDC balance — transaction fails before order is created
- x402 payment header missing or malformed — server returns 402 Payment Required
- Network or Cloudflare Worker timeout — no order created, must retry
- Invalid or missing request body fields — server returns 400 validation error
- Download URL expired or order ID tampered with — download returns 404 or 403

## How this service works

Deterministic LLM tool-schema conversion, linting and MCP manifest generation for OpenAI (incl. strict mode), Anthropic, Gemini and MCP, paid per call in USDC on Base via x402.

## Output

Returns a JSON object with a paid status, a private 32-hex-character order ID, the product name, a private order page URL, and two signed download URLs — one for the PDF cookbook and one for the ZIP template pack — both accessible via the returned links.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "order_id",
      "status",
      "product",
      "order_page",
      "downloads"
     ],
     "properties": {
      "status": {
       "enum": [
        "paid"
       ],
       "type": "string"
      },
      "product": {
       "type": "string"
      },
      "order_id": {
       "type": "string",
       "description": "128-bit random order id (32 hex chars); keep it private"
      },
      "downloads": {
       "type": "object",
       "required": [
        "pdf",
        "zip"
       ],
       "properties": {
        "pdf": {
         "type": "string"
        },
        "zip": {
         "type": "string"
        }
       }
      },
      "order_page": {
       "type": "string",
       "description": "Private order page with both download links"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "paid",
  "product": "Tool-Schema Cookbook & Template Pack",
  "order_id": "0123456789abcdef0123456789abcdef",
  "downloads": {
   "pdf": "https://toolschema-forge.toolschemaforge.workers.dev/cookbook/download/0123456789abcdef0123456789abcdef/pdf",
   "zip": "https://toolschema-forge.toolschemaforge.workers.dev/cookbook/download/0123456789abcdef0123456789abcdef/zip"
  },
  "order_page": "https://toolschema-forge.toolschemaforge.workers.dev/cookbook/order/0123456789abcdef0123456789abcdef"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolschema-forge-cookbook-x402-e47ca0df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolschema-forge.toolschemaforge.workers.dev](https://www.zero.xyz/host/toolschema-forge.toolschemaforge.workers.dev/llms.txt)
