Skip to main content
Glama

Dropdowns and validation

set_data_validation

Add or clear Google Sheets data validation for a range: dropdowns, checkboxes, number limits, or custom formulas to control cell input.

Instructions

Add data validation to a range: dropdown list, dropdown from a range, checkbox, number range, custom formula - or clear it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNo
minNo
typeYes
rangeYesA1 range, e.g. "Sheet1!A1:D20", "'My Tab'!B:B", or a tab name
strictNoReject invalid input (vs. show a warning)
accountNoGoogle account to use: an email or unique part of one (e.g. "acme.com"). Default: the account that can open the spreadsheet, else the default account.
optionsNodropdown: list items; dropdown_from_range: ["=Lists!A2:A20"]; custom_formula: ["=ISNUMBER(A2)"]
spreadsheetYesGoogle Sheets link or spreadsheet ID. The name of a spreadsheet used with Sheets MCP before also works

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the description mainly restates the operation list that the schema enum already provides. It never explains whether existing validation on the range is overwritten, what 'clear' removes, or what authorization/account context is required.

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?

A single front-loaded sentence with the verb and resource first, then the mode enumeration. No filler and nothing redundant.

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?

For an 8-parameter mutation tool with no output schema, the definition is adequate but leaves the type-conditional parameter requirements (which params are needed for dropdown vs number_between vs clear) unexplained. Annotations cover safety and the schema covers most fields, but the type-to-parameter mapping is missing.

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 coverage is 63%, so the schema carries most parameter documentation. The description adds only a restatement of the type modes and implies 'range', saying nothing about min/max for number_between, options payload shape, or strict, so it does not meaningfully compensate for the coverage gap.

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?

States a specific verb (add data validation) and resource (a range), and enumerates the six operation modes that match the type enum exactly. It does not differentiate itself from nearby siblings like add_conditional_format or format_range, which is the only reason it falls short of 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?

The mode list implies when each variant applies, but there is no explicit when-to-use guidance, no prerequisites, and no routing to alternatives such as conditional formatting. Usage is left to inference from the enum names.

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