verify.assert_api_response
Calls an API and asserts the response matches expected status code and optional body substrings, confirming correctness.
Instructions
[network][risk:network] Call an API and assert status and optional body substrings.
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": {
"url": "<url>"
},
"name": "verify.assert_api_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| method | No | ||
| headers | No | ||
| timeoutMs | No | ||
| bodyContains | No | ||
| expectedStatus | No |