add_data_validation
Apply data validation rules to Google Sheets ranges to control input values and maintain data integrity in spreadsheets.
Instructions
Add data validation rules to a 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>",
"rule": "<rule>"
},
"name": "add_data_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spreadsheet_id | Yes | The ID of the spreadsheet | |
| range | Yes | A1 notation range | |
| rule | Yes | Validation rule specification |