assert_response
Validates the last HTTP response against status, JSONPath existence, duration, and value checks, then reports every failed check after execute_api_request.
Instructions
Assert on the last HTTP response: status, jsonPathExists, maxDurationMs and value checks (contains, regex, equality, ranges, list membership). Reports every check that failed. Run after execute_api_request.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "assert_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | Value checks, each {path (JSONPath; omit = whole body), contains | containsAny | notContains | matches | equals | min | max | minLength | maxLength | includesAll | includesAny | subsetOf, ignoreCase, minRatio}. | |
| status | No | ||
| maxDurationMs | No | ||
| workspaceRoot | No | Optional when MCP_WORKSPACE_ROOT is set. | |
| jsonPathExists | No |