Skip to main content
Glama

add_sheet_data_validation

Apply data validation rules to Google Sheets cell ranges to restrict input using dropdown lists, number ranges, date constraints, or custom formulas.

Instructions

Add data validation rules to a cell range (dropdowns, number bounds, custom formulas).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
spreadsheet_idYesID of the spreadsheet.
range_nameYesA1 range (e.g., "Sheet1!A1:A10" or "A1:A10").
validation_typeYesOne of ONE_OF_LIST, NUMBER_BETWEEN, NUMBER_GREATER, NUMBER_LESS, NUMBER_EQ, TEXT_CONTAINS, TEXT_EQ, DATE_AFTER, DATE_BEFORE, DATE_ON_OR_AFTER, DATE_ON_OR_BEFORE, CUSTOM_FORMULA, BOOLEAN.
valuesNoList of allowed values (for ONE_OF_LIST) or bounds (for NUMBER_BETWEEN pass [min, max]). For single-value conditions, pass [value].
custom_formulaNoFor CUSTOM_FORMULA type, the formula (e.g., "=A1>0").
strictNoIf True, rejects invalid input. If False, shows a warning.
show_dropdownNoFor ONE_OF_LIST, whether to show the dropdown UI.
input_messageNoOptional help text shown on hover.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Add data validation rules') but doesn't describe what happens on success/failure, whether it overwrites existing rules, permissions required, rate limits, or side effects. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is a single, efficient sentence that front-loads the core purpose with specific examples. Every word earns its place, with no redundancy or unnecessary elaboration. It's appropriately sized for a tool with good schema documentation.

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?

Given the tool has an output schema (not provided in details but indicated as present), the description doesn't need to explain return values. However, for a mutation tool with 9 parameters and no annotations, the description should provide more behavioral context about what the tool actually does beyond the basic action. The current description is minimal but adequate given the schema coverage.

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 high (89%), so the schema already documents most parameters well. The description adds minimal value beyond the schema by mentioning 'dropdowns, number bounds, custom formulas' which loosely map to validation_type and values parameters. However, it doesn't explain parameter interactions or provide additional context beyond what's in the schema descriptions.

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 clearly states the verb ('Add') and resource ('data validation rules to a cell range'), with specific examples of rule types ('dropdowns, number bounds, custom formulas'). It distinguishes from siblings like 'format_sheet_range' or 'modify_sheet_values' by focusing on validation rules. However, it doesn't explicitly differentiate from all siblings, so it's not a perfect 5.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing edit access to the spreadsheet), when not to use it, or refer to sibling tools like 'protect_sheet_range' for related functionality. Usage is implied only by the tool name and description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuntsDesk/ve-gws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server