validate_json
Validate JSON string syntax and optionally check against a JSON Schema.
Instructions
Validate JSON string syntax and optionally against a JSON Schema.
Parameters:
json_str — JSON string to validate.
schema — Optional JSON Schema to validate against.
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": {
"json_str": "<json_str>"
},
"name": "validate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_str | Yes | ||
| schema | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |