scan_input
Validate input arguments against a JSON schema to confirm agent call validity. Returns valid/invalid status with error details.
Instructions
Validate an args dict against a JSON schema; return OK or first error.
Use when: "is my agent's call valid before I send it?". Example: args={"q":"hi"}, schema={"type":"object","properties":{"q":{"type":"string"}}}.
Returns {"valid": true} or {"valid": false, "error": "..."}.
Never raises — the tool surfaces validation results as data.
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": {
"args": "<args>",
"schema": "<schema>"
},
"name": "scan_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |