is_legal
Check whether a UCI chess move is legal in the current position, returning a boolean or parse error for invalid input.
Instructions
Check if a UCI move is legal in the current position.
Returns (in result):
{ legal:boolean }.
If the UCI string cannot be parsed, { parse_error:string, legal:false }.
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": {
"uci": "<uci>"
},
"name": "is_legal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uci | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |