Skip to main content
Glama
gworkspace-mcp
by ctschak

Named and protected ranges

sheets_named_ranges

Create, 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

NameRequiredDescriptionDefault
dryRunNoWhen true, returns the exact API request that would be sent plus an impact summary, and sends nothing.
accountNoGoogle account to act as. Optional when one account is authorised or a default is set; required otherwise.
operationsYesNamed-range and protected-range operations.
spreadsheetYesSpreadsheet URL or file id. Both accepted; a URL has its id extracted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool that can delete named ranges and remove protections. It only discloses the dryRun escape hatch; it says nothing about destructive/unrecoverable deletes, what happens to editors or warningOnly settings on re-protect, or the account/authorisation requirement that the schema hints at. That is a meaningful gap for a write tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the operation surface and followed by the one global flag worth flagging. 'Supports dryRun' is slightly redundant with the schema's detailed dryRun description, but surfacing a cross-cutting safety switch at the top level earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a discriminated five-variant operations array and no output schema, and the description does capture the full operation surface at a high level. However, for a batch mutation API it omits consequences (delete permanence, whether protect overwrites an existing protection) and the account-selection context, leaving the agent to infer them from the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including a fuller dryRun explanation and per-field docs for sheet, editors, warningOnly and range, so the schema already does the heavy lifting. The description adds no meaning beyond it except echoing dryRun, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs specific verbs with specific resources: 'Create, update and delete named ranges' and 'protect and unprotect ranges or whole tabs'. That covers all five options in the operations union, so an agent can map the tool to its task. It stops short of naming a sibling it should be preferred over (e.g. sheets_format or sheets_manage_tabs), which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the enumerated verbs tell an agent that this is the tool for named-range and protection work, but there is no explicit when-to-use/when-not guidance and no mention of prerequisites such as resolving sheet identifiers via sheets_describe. 'Supports dryRun' hints at a preview workflow without spelling out when to prefer it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.