Skip to main content
Glama
nometalalchemist

io.github.nometalalchemist/kitchensink4xl

set_filter

Apply an autofilter to an Excel range and hide rows that don't match specified criteria, using the first row as header. It evaluates criteria over values, preserves formulas, and includes backup and safety checks.

Instructions

Apply an autofilter over a range whose first row is the header, and actually hide the non-matching rows: an .xlsx stores filter CRITERIA, not hidden state, so criteria (a list of {column, op, value}, ops as in query_range, combined as AND) are evaluated here over cached and literal values; a row whose tested cell holds an uncalculated formula stays visible with a warning. A hazardous workbook refuses unless allow_loss is true. Auto-backup to .ks4xl-backups; atomic verified save. Refuses while open in Excel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sheetNo
backupNo
criteriaNo
locationYes
allow_lossNo
verify_comNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly. It discloses destructive effects (hiding rows), evaluation over cached and literal values, formula-related warning behavior, refusal for hazardous workbooks unless allow_loss is true, auto-backup, atomic verified save, and refusal while the file is open in Excel.

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?

The description is dense and front-loaded, with no filler, but the single-sentence structure with many semicolon-separated caveats is harder to parse than a short structured list would be. It earns its words but could benefit from clearer segmentation.

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?

For a complex mutating tool with no annotations, this is notably complete: it covers safety, backup, save behavior, and row-hiding semantics. Gaps remain in defining what makes a workbook 'hazardous' and what verify_com controls, but the agent has enough to invoke the core operation correctly.

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?

The schema has 0% description coverage, so the narrative must compensate. It meaningfully explains criteria structure, ops semantics, AND combination, allow_loss, backup behavior, and the location-as-range concept. However, verify_com is left unexplained, and path and sheet receive only implicit meaning from their names.

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 and resource: applying an autofilter over a range with a header row and hiding non-matching rows. It also distinguishes this from simply storing filter criteria in .xlsx, which clarifies its unique role among siblings like query_range and clear_filter.

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

Usage Guidelines4/5

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

The description provides clear operational context: criteria are evaluated and rows are physically hidden, with behavior for uncalculated formulas and hazardous workbooks. It does not explicitly name alternative tools such as clear_filter or query_range for when to use them instead, but the semantics are clear enough to guide selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/nometalalchemist/KitchenSink4XL'

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