OpenAPI to tools
openapi_to_toolsTurn an OpenAPI 3.x or Swagger 2.0 spec (JSON object) into LLM tool definitions in the chosen format, one tool per operation. Free: 5 calls/hour per IP with arguments up to 8 KB; then $0.02 USDC per call via x402.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec": "<spec>"
},
"name": "openapi_to_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | OpenAPI 3.x or Swagger 2.0 document as JSON. | |
| target | No | Output format. Default openai. | |
| include | No | Optional operationIds or 'METHOD /path' strings to include. | |
| maxTools | No |