Skip to main content
Glama

setDropdownValidation

Adds or removes dropdown validation on a Google Sheets cell range: supply allowed values to restrict input, or omit values to clear existing dropdowns.

Instructions

Adds or removes a dropdown list on a range of cells. Provide values to create a dropdown restricting input to those options. Omit values to remove dropdown validation from the range. On modern runtimes, first call readCellFormat for the exact bounded 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": {
      "spreadsheetId": "<spreadsheetId>",
      "range": "<range>"
    },
    "name": "setDropdownValidation"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesA1 notation range to apply the dropdown to (e.g., "Sheet1!B2:B100" or "C2:C50").
strictNoIf true, reject input that does not match one of the dropdown values.
valuesNoThe allowed dropdown options (e.g., ["Open", "In Progress", "Done"]). Omit to remove existing dropdown validation from the range.
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.
inputMessageNoHelp text shown when a cell with the dropdown is selected.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does reveal the two mutation modes and the read-then-write handshake required on modern runtimes, but says nothing about whether existing validation on the range is replaced, what happens when removing validation that does not exist, permission requirements, or error behavior.

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

Conciseness5/5

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

Three short sentences, front-loaded with purpose and followed by the create/remove rule and the only prerequisite. Nothing is repeated and no sentence is dispensable.

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

Completeness4/5

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

With six parameters at full schema coverage and no output schema, the description covers the decision logic and the readHandle prerequisite adequately. The remaining gap is behavioral edge cases (overwrite semantics, failure modes) for a mutation tool with zero annotation support.

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%, so range, values, strict, inputMessage, spreadsheetId, and readHandle are all already documented. The description restates the values-omitted semantics that the schema itself states, adding no new meaning such as format constraints on values or how strict interacts with them.

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

Purpose5/5

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

The description opens with a specific verb and resource ('Adds or removes a dropdown list on a range of cells') and immediately distinguishes its two operating modes (create via values, remove via omission). An agent can tell what the tool touches without reading the schema.

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

Usage Guidelines4/5

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

It gives explicit branch conditions: supply values to create constrained input, omit values to strip validation, and call readCellFormat first on modern runtimes to get the exact bounded range. It stops short of naming any alternative validation tool or stating exclusions, so it is clear context rather than full when/when-not guidance.

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

Deploy Server

Other Tools