Skip to main content
Glama
gworkspace-mcp
by ctschak

Validation, conditional formatting, filters, sorting

sheets_data_tools

Apply data validation, conditional formatting, basic filters, and range sorting to Google Sheets ranges, with dry-run previews before changes.

Instructions

Data validation rules, conditional formatting, basic filters and range sorting. 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_data_tools"
  }
}

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.
operationsYesValidation, conditional formatting, filter and sort 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

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses almost nothing. It does not say these operations mutate the spreadsheet, that deleteConditionalFormat and clearBasicFilter destroy existing configuration, whether the operation array is applied atomically or in order, or whether rule indices shift after deletion. Mentioning dryRun is the sole behavioural datum, and even that is fully duplicated in the schema.

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 with no wasted words and the capability list front-loaded. It is efficient, though the brevity here reflects under-specification rather than disciplined editing.

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

Completeness2/5

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

This is a high-complexity tool: a single entry point for seven distinct ops with polymorphic nested objects, no annotations, and no output schema. Against that complexity, a two-sentence description leaves an agent without the mutation semantics, error behaviour, or operation-ordering rules it needs to call it safely.

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%, and the schema already documents dryRun, account, spreadsheet and every nested op field in detail, so the baseline of 3 applies. The description adds nothing beyond what the schema states and does not clarify, for example, how 'sheet' resolution or multi-op ordering works.

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

Purpose3/5

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

The description enumerates four concrete capability areas (validation, conditional formatting, basic filters, sorting), which is more specific than the title alone. However, it uses no verb and never says these are mutations applied to a sheet, nor does it distinguish this tool from the similarly named sibling sheets_format, which an agent could easily confuse with conditional formatting.

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?

There is no when-to-use guidance at all: nothing says to prefer this over sheets_format or sheets_batch_update_raw, and no prerequisites (account authorisation, sheet id discovery via sheets_describe) are stated. The only contextual hint is 'Supports dryRun', which is a capability rather than a routing rule.

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