contract_test
Send an API request and validate the response against an expected JSON schema, failing on structural drift such as missing fields or type changes.
Instructions
Send a request and check the response against a stored expected JSON schema. Fails if the response structure has drifted (missing fields, type changes).
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>",
"expected_schema": "<expected_schema>"
},
"name": "contract_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Set to true to confirm sending to an external URL after reviewing it | |
| request_id | Yes | ||
| environment_id | No | ||
| expected_schema | Yes | JSON Schema object to validate against |