Simulate request
simulate_requestShow which endpoint and which response (including response variants) a request would get, and why, without sending it or logging anything. Reports each variant's conditions as matched or not, and probabilities for weighted endpoints. Use it to check response variants after create_endpoint or update_endpoint.
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": {
"workspace": "<workspace>",
"method": "<method>",
"path": "<path>"
},
"name": "simulate_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Raw request body, e.g. JSON text. | |
| path | Yes | Request path, optionally with a query string, e.g. /api/orders/42?expand=items. | |
| method | Yes | HTTP method of the request. | |
| headers | No | Request headers. Include Content-Type when sending a body, and X-APIMock-Variant to force a variant. | |
| workspace | Yes | Target workspace slug (from list_workspaces). |