mockserver_create_expectation
Create a mock HTTP expectation by defining request matching criteria and the response to return for testing APIs.
Instructions
Create a mock HTTP expectation on MockServer. Define request matching criteria and the response to return.
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": {
"httpRequest": "<httpRequest>"
},
"name": "mockserver_create_expectation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional expectation identifier | |
| times | No | How many times this expectation should be matched | |
| timeToLive | No | How long this expectation should remain active | |
| httpRequest | Yes | Request matching criteria (method, path, headers, body, etc.) | |
| httpResponse | No | Response configuration |