Check Request
check_requestValidate an HTTP API request body against a supplied JSON Schema before sending it. This tool does not execute the request. Use it when an agent needs to determine whether a proposed JSON body satisfies its expected schema. Optional economics adds proceed/abort advice from expected waste versus a $0.002 check.
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": "<request>",
"schema": "<schema>"
},
"name": "check_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | JSON Schema applied to request.body | |
| request | Yes | ||
| economics | No | Optional V0.2 cost context. Omit for V0.1 validation-only output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| warnings | Yes | ||
| economics | No | ||
| requestHash | Yes |