Skip to main content
Glama

Add Number Validation

add_number_validation

Restrict an Excel range to numbers that meet a specified condition, such as greater than or between values. Set decimal allowance and apply validation to a target range.

Instructions

Restrict a range to numbers matching a comparison.

Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). range_address: A1-style address, e.g. "B2:B20". condition: One of "greater_than", "less_than", "greater_equal", "less_equal", "equal_to", "not_equal", "between", "not_between". value1: Comparison value (required). value2: Second comparison value, required only for "between"/ "not_between". decimal: Allow decimals (False = whole numbers only).

Returns: JSON confirmation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sheetNo
value1No
value2No
decimalNo
workbookNo
conditionNogreater_than
range_addressNoA1
Behavior3/5

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

The description explains the core behavior and lists all condition types, which is helpful, but annotations are sparse (only a title). It does not disclose side effects such as whether existing validation on the range is overwritten, whether this is a write operation requiring save, or what happens to values already in the range.

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 structured efficiently: a one-sentence purpose followed by a compact Args list. Each parameter line adds practical meaning without redundancy, and the Returns line is minimal but useful since there is no output schema.

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

Completeness5/5

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

For a tool with 7 parameters, no output schema, and minimal annotations, the description covers all necessary invocation details. It defines parameter semantics, required values, condition options, and the return type, leaving no critical gaps for calling the tool 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?

Schema description coverage is 0%, and the description fully compensates. It explains every parameter beyond the schema: workbook/sheet defaults, A1-style range_address, all allowed condition strings, value1 being required, value2 only for between/not_between, and decimal meaning 'whole numbers only'.

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 opens with a specific verb-resource statement: "Restrict a range to numbers matching a comparison." This clearly distinguishes it from sibling validation tools like add_dropdown_validation and from general range operations.

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 the tool's use case through its purpose: restricting cells to numeric input that satisfies a comparison. However, it never explicitly says when to use this tool over alternatives such as add_dropdown_validation, get_validation, or remove_validation.

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