set_response
Set the JSON body a route returns for a given status (hand-written response); a null body restores the generated response.
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": {
"slug": "<slug>",
"route": "<route>",
"status": "<status>",
"body": "<body>"
},
"name": "set_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON body, or null to go back to the generated response | |
| slug | Yes | Subdomain of the mock, e.g. "brisk-otter" | |
| route | Yes | Route identifier, lowercase method: "get:/users/{id}" | |
| status | Yes | ||
| ownerToken | No | Owner token received at creation (not needed when the account is connected with an API token) |