set_data_validation
Define data validation rules for a cell range in Google Sheets, specifying condition type and optional accepted values.
Instructions
Set a data validation rule on an A1 range.
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": {
"spreadsheet_id": "<spreadsheet_id>",
"range": "<range>",
"condition_type": "<condition_type>"
},
"name": "set_data_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| strict | No | ||
| values | No | ||
| input_message | No | ||
| condition_type | Yes | ||
| show_custom_ui | No | ||
| spreadsheet_id | Yes | ||
| filtered_rows_included | No |