Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

inspect_data_validation_rules

Read-only

Inspects worksheet data validation rules and returns stable rule indexes, helping AI agents audit, diagnose, or target Excel validation issues.

Instructions

Inspect worksheet data validation rules with stable rule indexes.

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": {
      "filepath": "<filepath>",
      "sheet_name": "<sheet_name>"
    },
    "name": "inspect_data_validation_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
sheet_nameYes
broken_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • addedInput schema / properties / filepath / description
      Added value: +"Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing."
  2. First observedv0.8.0

TDQS

C2.9/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read. The description adds the useful behavioral fact that rule indexes are stable (implying they can be referenced later, e.g. for removal), but says nothing about scope, pagination, or what happens when no rules exist.

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?

One short, front-loaded sentence with no filler. It is arguably over-terse for a tool with an undocumented filter parameter, but nothing is wasted.

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?

No output schema and an undocumented boolean filter mean the agent has no way to know what broken_only does or what the returned rule objects look like. Given an overlapping sibling tool (get_data_validation_info), the definition leaves real gaps.

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

Parameters2/5

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

Schema coverage is only 33%: filepath is documented in the schema, but sheet_name and especially broken_only (a filtering flag whose semantics matter) are undocumented in either place. The description contributes only 'worksheet', which implies sheet_name and adds nothing for broken_only.

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?

Specific verb 'inspect' plus resource 'worksheet data validation rules', with the added qualifier 'stable rule indexes' that hints at what the output contains. It does not explicitly name the near-duplicate sibling get_data_validation_info, so differentiation is only partial.

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 statement of when to use this tool versus get_data_validation_info or remove_data_validation_rules, despite those being obvious alternatives. An agent must infer usage entirely from the name and the phrase 'stable rule indexes'.

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