devpocket.dev

OpenAPI to AI Tools

Convert selected OpenAPI 3.x operations into OpenAI, Anthropic, or MCP tool definitions.

Runs locally
Loading tool…

How to use

Paste an OpenAPI 3.x document as JSON or YAML. Select the operations to expose, then choose OpenAI, Anthropic, or MCP output. Each operation uses its operationId or a sanitized method-and-path fallback. Path, query, and header parameters are merged with an application/json request body into one object schema, while a separate table preserves their transport locations. OpenAI strict mode requires every property and makes originally optional fields nullable. Local references under #/components/ are resolved recursively with a cycle guard.

FAQ

How are operation names generated?

operationId is preferred. Otherwise the HTTP method and path are combined, sanitized to letters, numbers, underscores or hyphens, deduplicated, and limited to 64 characters.

Are remote $ref files fetched?

No. Only local JSON Pointers in the pasted document are resolved. External references are preserved and reported as warnings.

Which request bodies are supported?

application/json and application/*+json schemas are merged. Multipart, form, binary, callbacks, and response schemas are not converted.

Related tools