update_data_validation
Update data validation rules for a specified cell range, including validation type, values, error messages, and input help text in Google Sheets.
Instructions
Update existing data validation rules in a cell 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>",
"sheet_name": "<sheet_name>",
"range": "<range>",
"validation_type": "<validation_type>"
},
"name": "update_data_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | Range to update validation (e.g., "A1:A10") | |
| strict | No | Update strict mode setting | |
| values | No | New values for validation | |
| sheet_name | Yes | Name of the sheet | |
| error_message | No | Updated custom error message for invalid input | |
| input_message | No | Updated help text shown when cell is selected | |
| spreadsheet_id | Yes | Google Spreadsheet ID | |
| validation_type | Yes | Type of validation rule |