validate_api_response
Check API response data against an OpenAPI schema definition to confirm it matches the expected structure and catch contract mismatches early.
Instructions
Validate an API response against an OpenAPI schema definition. Checks if the response matches the expected schema.
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": {
"response": "<response>",
"schema": "<schema>"
},
"name": "validate_api_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | Expected OpenAPI schema | |
| response | Yes | API response data to validate |