assert_response
Sends a request and validates its response against defined assertions—status code, headers, JSON body values, and duration—returning pass/fail for each check.
Instructions
Send a request and validate the response against a set of assertions (status code, headers, JSON body values, duration). Returns pass/fail per assertion.
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": {
"request_id": "<request_id>",
"assertions": "<assertions>"
},
"name": "assert_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Set to true to confirm sending to an external URL after reviewing it | |
| assertions | Yes | ||
| request_id | Yes | ||
| environment_id | No |