Skip to main content
Glama

excel_add_data_validation

Adds data validation rules to Excel worksheet cells to restrict input to lists, numbers, dates, or text lengths.

Instructions

Add data validation

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": {
      "filename": "<filename>",
      "worksheet": "<worksheet>",
      "cellAddress": "<cellAddress>",
      "type": "<type>",
      "formula1": "<formula1>"
    },
    "name": "excel_add_data_validation"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesType (list/whole/decimal/date/textLength)
filenameYesWorkbook name
formula1YesFirst value (list: comma-separated)
formula2NoSecond value (for between)
operatorNoOperator
worksheetYesWorksheet name
cellAddressYesCell address
errorMessageNoError message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations at all, the description carries the full disclosure burden and says nothing: it does not state that this mutates the workbook, whether existing validation on the target cell is replaced, whether the file must be closed, or what happens if formula1 is invalid for the chosen type.

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

Conciseness2/5

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

Three words with no structure and no front-loaded detail — this is under-specification, not conciseness. Nothing in the single phrase helps an agent decide or prepare a call.

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?

For an eight-parameter mutation tool with no annotations and no output schema, the description is far too thin; it explains none of the interaction between type, operator, formula1 and formula2 that determines a successful call.

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 all eight parameters (type, formula1, formula2, operator, cellAddress, worksheet, filename, errorMessage) are already documented, including both enums. The description adds zero meaning beyond the schema, so the baseline of 3 applies rather than anything higher.

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

Purpose2/5

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

The description "Add data validation" merely restates the tool name excel_add_data_validation; it supplies no scope, no distinction from the many excel_add_* siblings (conditional format, filter, color scale, icon set), and no hint of what kind of validation object is created.

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, no prerequisites (e.g. workbook/worksheet must exist), and no mention of alternatives such as adding conditional formatting or filtering instead. The agent must infer everything from the name alone.

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