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.
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 |