devanvil_openapi_to_mocks
Convert OpenAPI 3.x or Swagger 2.0 YAML/JSON specs into realistic mock routes and cURL snippets, handling circular $refs for reliable API testing.
Instructions
Parse an OpenAPI 3.x / Swagger 2.0 YAML or JSON spec (circular-$ref safe) and synthesize realistic Mock routes and cURL snippets.
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": "devanvil_openapi_to_mocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | OpenAPI YAML or JSON document. |