verify_mock
Validate that a mock API endpoint received the expected number of calls, with optional constraints for minimum or maximum invocations.
Instructions
Check whether a mock was called the expected number of times. Returns pass/fail status, actual call count, and invocation details. Optionally assert with expected_count, at_least, or at_most parameters. Use this to assert your application is making the right API calls.
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": {
"id": "<id>"
},
"name": "verify_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at_least | No | Minimum invocations expected | |
| at_most | No | Maximum invocations expected | |
| expected_count | No | Expected number of invocations (exact match) | |
| id | Yes | Mock ID to verify |