validate_example
Validate a JSON example against an OpenAPI operation's resolved request or response schema; violations are reported with JSON pointers to pinpoint mismatches.
Instructions
Check a JSON document against the resolved schema of an operation. kind is 'request'
(validates against the request body) or 'response' (against the response for status,
default 200; falls back to 2XX then default). json is the document as JSON text.
Violations are reported with a JSON pointer into the document. Optionally pick a
content_type; otherwise application/json (or the first JSON type) is used.
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": {
"spec": "<spec>",
"path": "<path>",
"method": "<method>",
"kind": "<kind>",
"json": "<json>"
},
"name": "validate_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | ||
| kind | Yes | ||
| path | Yes | ||
| spec | Yes | ||
| method | Yes | ||
| status | No | 200 | |
| content_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |