get_data_validation
Reads existing data validation rules for a cell range and returns each cell's rule, omitting cells without one. Use it to audit validation settings in a sheet.
Instructions
Read existing data validation rules for a cell range.
Args: spreadsheet_id: The ID of the spreadsheet sheet: The name of the sheet range: A1 notation range to inspect (e.g. "A1:A100")
Returns: List of {cell, rule} for every cell in the range that has a validation rule; cells without one are omitted. 'rule' matches the Sheets API's DataValidationRule shape: {condition: {type, values}, inputMessage, strict, showCustomUi}. Returns {"error": ...} if the sheet isn't found.
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": "<sheet>",
"range": "<range>"
},
"name": "get_data_validation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| sheet | Yes | ||
| spreadsheet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |