call_mock
Call a route of the mock like an HTTP client would and return the status, the x-loutre-* headers and the body. The headers x-loutre-status, x-loutre-delay, x-loutre-count, x-loutre-message and x-loutre-seed are honoured; latency is not awaited, it is reported in delayMs. Writes (POST, PUT, PATCH, DELETE) are persisted when persistent state is on. For a GraphQL mock, POST to its GraphQL path with the body { "query": "…", "variables": { … } }; mutations are persisted the same way.
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>",
"method": "<method>",
"path": "<path>"
},
"name": "call_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST, PUT, PATCH | |
| path | Yes | Path with its query string: "/users/42?expand=orders" | |
| slug | Yes | Subdomain of the mock, e.g. "brisk-otter" | |
| method | Yes | GET | |
| headers | No | Request headers, including x-loutre-* | |
| accessKey | No | Access key (lk_…) of a private mock you do not own | |
| ownerToken | No | Owner token received at creation (not needed when the account is connected with an API token) |