OpenAPI to Agent Tools & Tool-Call Evals API
Pricing
from $1.00 / 1,000 validated tool exporteds
OpenAPI to Agent Tools & Tool-Call Evals API
Convert OpenAPI JSON to MCP, Claude and OpenAI tool definitions. Get validated synthetic tool-call fixtures, schema fingerprints and a report of skipped endpoints.
Pricing
from $1.00 / 1,000 validated tool exporteds
Rating
0.0
(0)
Developer
SolidScrape
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
20 days ago
Last modified
Categories
Features
Share
OpenAPI to MCP, Claude and OpenAI tool schemas
Give this Actor an OpenAPI JSON document your team owns or can process. It produces a catalog of API operations, tool definitions for three interfaces, and two synthetic argument fixtures for each exported tool. Use it to review an agent integration, prepare tool-calling evaluation data, or check how an API specification changed after a release.
Try the included example
Open the prefilled issue tracker example to turn two API operations into tool schemas and argument tests.
Using Python? Download the developer starter kit, then follow its guide to run python run.py openapi. The client sets a $0.02 cap per run.
Run with this input to compile two GET endpoints from an original, synthetic issue tracker. The launch price for this run is $0.004.
{"methods":["GET"],"maxOperations":2,"maxSpendUsd":0.01}
The default dataset includes GET /issues/{id} under tool name getIssue_1d38a7189b. Its accepted fixture is {"path":{"id":1}}. Adding the undeclared root property "__unexpected_argument__":true creates the rejected fixture. Both outcomes are checked against the generated schema. These labels describe argument shape. They do not predict server responses, availability or model tool-selection accuracy.
To use your own document, set spec to the parsed JSON object. For example, paste a document in the OpenAPI document field in Console. Supply only contracts you have permission to process. Apify stores the submitted input with the run, so remove live credentials, private examples and secret server URLs before uploading. The Actor does not read remote specs or call target endpoints.
Use from a coding assistant or CI job
This Python example sends openapi.json to the Actor and prints one tool name and accepted argument example for each exported operation. Store your Apify token in your environment.
import json, os, urllib.requestfrom pathlib import Pathspec = json.loads(Path("openapi.json").read_text(encoding="utf-8"))endpoint = "https://api.apify.com/v2/acts/solidscrape~openapi-toolkit-for-agents/run-sync-get-dataset-items?memory=512&timeout=120&maxTotalChargeUsd=0.05"payload = {"spec": spec, "methods": ["GET"], "maxOperations": 20, "maxSpendUsd": 0.05}request = urllib.request.Request(endpoint, data=json.dumps(payload).encode(),headers={"Authorization": "Bearer " + os.environ["APIFY_TOKEN"], "Content-Type": "application/json"})with urllib.request.urlopen(request, timeout=150) as response:for row in json.load(response):print(row["toolName"], row["fixtures"]["positive"]["arguments"])
For an asynchronous pipeline, POST the same input to the Actor's /runs endpoint, wait for SUCCEEDED, then read the default dataset and key-value store. Open Output in Console to download the JSON files directly.
| Output | Use |
|---|---|
| Dataset, Agent tool catalog view | One row per exported HTTP operation with method, path, input schema, transport bindings, response status codes and source document hash. |
| Dataset, Tool-call evaluation fixtures view | Accepted and rejected structural examples, their labels and the originating operation. |
MCP_TOOLS | Array of MCP tool descriptions. Use as the tools array in your own server's list response. |
CLAUDE_TOOLS | Tool definitions using Claude's input_schema shape. |
RESPONSES_TOOLS | OpenAI Responses function definitions with parameters and strict:false. |
FINGERPRINTS | Route-to-SHA256 map for comparing the next revision of the same API. |
SKIPPED and SUMMARY | Visible conversion omissions, reasons, stop condition, source identity and modeled event charges. |
Developers supply their own tool handlers, trusted base URL, authentication, authorization and HTTP serialization. The output contains declarations and test data. Connecting a handler to a model allows calls only after you implement that integration. Review route and field metadata from external documents before exposing it to a model.
Why use this with an OpenAPI workflow?
Run the Actor on two revisions and pass the first run's FINGERPRINTS object as previousFingerprints to the second run. Each emitted operation is labeled unchanged, changed or first_observed. The fingerprint includes the generated name, input schema, transport and authentication binding metadata, security requirements and declared response codes. Review flagged changes before accepting them. Description-only changes can leave this fingerprint unchanged. It is an equality check on the exported interface, rather than a full breaking-change classifier. Missing routes can result from filters, limits or source omissions.
Teams already running FastMCP can build an executable server locally. This Actor serves teams that want a hosted conversion step, downloadable provider-specific JSON, explicit omissions and deterministic evaluation pairs without provisioning another service.
What the converter supports
- OpenAPI 3.0.x and 3.1.x JSON objects with an info title/version and paths. JSON only. Omit
specto use the bundled demo. - GET operations by default. Include other uppercase methods explicitly. Compilation only inspects declarations.
- Local JSON Pointer references, path-level parameter inheritance and operation-level overrides. Path, query, header, cookie and JSON-body inputs occupy separate namespaces.
- Common typed objects, arrays, primitive enums, required fields, numeric bounds, lengths, item counts and nullable types. UUID, email, date, date-time, URI and numeric formats are retained as annotations. Structural checks do not validate field formats.
- Required read-only body properties are omitted from the request schema. Credential headers and declared API-key parameter names are emitted in
authBindingsfor your transport layer. Source descriptions, examples and defaults are omitted from model-facing tool descriptions and synthetic examples. Schema enum values, parameter names and source metadata still come from the supplied document. - External and cyclic references, composed or unspecified schema types, arbitrary regex patterns, complex dictionaries, path-item references, unsupported formats and multipart/binary bodies produce explicit omissions. Response status codes are listed, while response bodies are outside the exported interface.
Hard limits per run include 1 MB of input spec, 1,000 paths, 100 exported operations and a work allowance of three attempted operations per affordable requested export (250 attempts maximum). Rejected operations and invalid path items use this allowance. Conversion stops before the next attempt after six consecutive skips, or after a five-second soft deadline checked between operations. The current bounded operation can finish after that deadline. A budget that covers only startup produces zero conversion attempts. Each operation allows up to 400 schema nodes, nesting depth 12 and 32 KB of input schema. Total row output is bounded to approximately 1.5 MB. The summary reports the stop reason. A valid document may produce zero exports if filtering or supported-schema rules exclude every operation.
Pricing
At the supported 512 MB memory setting, a run starts at $0.002, then costs $0.001 per operation exported. Three provider formats and both fixtures are included. One tool costs $0.003, ten cost $0.012, and 100 cost $0.102. Skipped operations have no export fee. Invalid input or an empty export can still incur the automatic start fee.
Set maxOperations and maxSpendUsd for workload control and use Apify's maximum total charge for the platform limit. The smaller available budget determines output count. For example, exporting 100 operations needs a cap of at least $0.102. A run with an existing processing checkpoint refuses to replay work under that run ID.
Reference formats
OpenAPI specification · MCP tool declarations · FastMCP OpenAPI integration
