api mock
api_mockRealistic mock responses from an OpenAPI spec (JSON/YAML, inline or URL) or a JSON Schema: pick the operation, status and count (1-20) and get distinct, internally consistent bodies that honour every type, format, enum and required field, with notes on anything the spec left ambiguous. For tests, demos and front-ends built before the backend. $0.008. Costs $0.008 USDC per call (x402).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "api_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| schema | No | or a JSON Schema of the response | |
| status | No | ||
| openapi | No | spec object, YAML/JSON string, or URL | |
| operation | No | e.g. GET /orders/{id} |