Create a NEW tool from a description, an input schema and test examples
Create a NEW tool from a description, an input schema and test examples. The code is generated, run in a sandbox against your examples (up to 3 attempts), and on success published as a paid endpoint /v1/t/<name> for every agent. Infinite tools, on demand.
250000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-08
updated
Provider
toll402.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x318d34fa0bd69eff17fac648d2df8cf7a88b3dbe",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "250000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"description": "Return the top N Hacker News story titles and URLs from https://hacker-news.firebaseio.com/v0/topstories.json and /v0/item/<id>.json",
"examples": [
{
"input": {
"n": 3
}
}
],
"inputSchema": {
"properties": {
"n": {
"type": "integer"
}
},
"required": [
"n"
],
"type": "object"
},
"name": "hn_top",
"priceUsd": 0.005
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"attempts": 1,
"published": true,
"tool": {
"name": "hn_top",
"price": "$0.005",
"url": "https://toll402.dev/v1/t/hn_top"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"allowNetwork": {
"default": true,
"description": "Whether the tool may call public HTTP endpoints",
"type": "boolean"
},
"creator": {
"description": "Your wallet address or agent id, for attribution",
"maxLength": 80,
"type": "string"
},
"description": {
"description": "What the tool does, precisely. Mention data sources (public URLs/APIs without keys) if any.",
"maxLength": 1000,
"minLength": 20,
"type": "string"
},
"examples": {
"description": "Test cases; the tool must pass them to be published",
"items": {
"additionalProperties": false,
"properties": {
"expectedOutput": {},
"input": {
"additionalProperties": true,
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"inputSchema": {
"additionalProperties": true,
"description": "JSON Schema (type object) for the input",
"type": "object"
},
"name": {
"description": "Tool name (becomes the endpoint slug)",
"maxLength": 40,
"minLength": 3,
"type": "string"
},
"outputSchema": {
"additionalProperties": true,
"description": "JSON Schema for the output (recommended)",
"type": "object"
},
"priceUsd": {
"default": 0.005,
"description": "Price per call for other agents (you never pay to use your own tool's endpoint less than this either)",
"maximum": 0.05,
"minimum": 0.001,
"type": "number"
},
"tags": {
"default": [],
"items": {
"maxLength": 30,
"type": "string"
},
"maxItems": 8,
"type": "array"
}
},
"required": [
"name",
"description",
"inputSchema",
"examples"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://toll402.dev/v1/forge" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://toll402.dev/v1/forge");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://toll402.dev/v1/forge")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7054.json, and this resource appears in /discovery/resources and /discovery/search.