Skip to main content
Glama
senoff

xlsx-for-ai

xlsx_session_set_validations

Idempotent

Set per-session data validation rules to enforce schema constraints across sequential write/clean operations, ensuring consistent server-side validation without repeating rules on each call.

Instructions

configure per-session data-validation rules the server will apply to subsequent calls in the same session (e.g., reject rows missing required columns, enforce enum values on a category column, range-bound numeric inputs). Stateful — affects this session only.

USE WHEN: the workflow has multiple write/clean steps in sequence and you want consistent server-side validation across them without restating the rules on every call. Or when validating user-supplied data against a known schema you want enforced for the rest of the session.

DO NOT USE WHEN: you only have a single call to make (just include the validation logic in that call). Or when you do not have a session_id (sessions are returned from the session-create surface; this tool is a no-op without one).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
validationsYes
Behavior4/5

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

Annotations already cover idempotent and non-destructive nature. Description adds stateful session-only scope and no-op without session_id. Does not contradict annotations. Could mention if validations are cumulative or replaced, but overall adequate.

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?

Description is three well-structured paragraphs: definition with examples, USE WHEN, DO NOT USE WHEN. Front-loaded with purpose, each sentence earns its place. No fluff.

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 no output schema, description explains that subsequent calls will use these validations and that it's stateful. It covers the main behavioral context. However, could elaborate on whether validations replace or append, and details of validation rule structure. Still sufficient for most use cases.

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 coverage is 0%, so description must compensate. It mentions 'ref', 'sheet', 'type' in examples but does not fully explain these properties or the session_id format. Adds some meaning but not enough detail for a parameter with nested structure.

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 it configures per-session data-validation rules with specific examples (reject missing columns, enforce enum values, range-bound numeric). It distinguishes from siblings like xlsx_data_validations and xlsx_validate by emphasizing stateful session-only behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'USE WHEN' and 'DO NOT USE WHEN' sections provide concrete scenarios: multi-step workflows with consistent server-side validation vs. single calls, and requirement of valid session_id. This fully guides the agent on when to select this tool.

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/senoff/xlsx-for-ai'

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