Named and protected ranges
sheets_named_rangesCreate, update, delete named ranges and protect or unprotect spreadsheet ranges or entire tabs, with optional dry runs to preview API requests before applying changes.
Instructions
Create, update and delete named ranges; protect and unprotect ranges or whole tabs. Supports dryRun.
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": "<spreadsheet>",
"operations": "<operations>"
},
"name": "sheets_named_ranges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, returns the exact API request that would be sent plus an impact summary, and sends nothing. | |
| account | No | Google account to act as. Optional when one account is authorised or a default is set; required otherwise. | |
| operations | Yes | Named-range and protected-range operations. | |
| spreadsheet | Yes | Spreadsheet URL or file id. Both accepted; a URL has its id extracted. |