Skip to main content
Glama

Get Validation

get_validation
Read-only

Read the data validation rule applied to a given cell in an Excel worksheet, returning its type, operator, and formulas, or indicating none exists.

Instructions

Read the data validation rule applied to a cell, if any.

Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). cell: A1-style cell reference, e.g. "B2".

Returns: JSON with the validation type/operator/formulas, or has_validation: false if none is set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cellNoA1
sheetNo
workbookNo
Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses the return format (JSON with validation type/operator/formulas, or has_validation: false if none exists) and parameter defaults (active workbook/sheet). This provides useful behavioral context without contradicting annotations.

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 concise and well-structured: a one-line purpose, then Args and Returns sections. It wastes no words and front-loads the core action before diving into parameter details.

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?

Given the lack of an output schema, the description adequately covers return values and defaults. It does not mention edge cases like invalid cell references or workbook errors, but for a simple read operation, the provided information is sufficient for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description fully compensates by explaining each parameter: workbook/path, sheet name, and A1-style cell reference, including default behavior for workbook and sheet. This is essential for correct invocation.

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 clearly states the verb 'read' and the resource 'data validation rule applied to a cell', distinguishing it from sibling add/remove validation tools. It also clarifies the 'if any' condition, making the intent unambiguous.

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 description implies usage for reading validation rules but does not explicitly state when to use this tool versus alternatives like add_dropdown_validation or remove_validation. It lacks explicit when-not conditions or references to alternative tools, so the guidance is only implicit.

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/trustypangolin/excel-mcp-live'

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