validator_validate_length
Check if a string or list's length falls within specified minimum and maximum limits. Returns validation status, actual length, and a reason for failure.
Instructions
[validator] Validate string or list length. Returns {valid: bool, length: int, reason: str}.
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": {
"value": "<value>"
},
"name": "validator_validate_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| min_length | No | ||
| max_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |