validate_api_response
Validate API responses against Swagger/OpenAPI schemas to ensure compliance with documented specifications.
Instructions
Validate an API response against the schema from Swagger documentation
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": {
"path": "<path>",
"method": "<method>",
"statusCode": "<statusCode>",
"responseBody": "<responseBody>"
},
"name": "validate_api_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The endpoint path | |
| method | Yes | The HTTP method | |
| statusCode | Yes | The HTTP status code | |
| responseBody | Yes | The response body to validate |