Skip to main content
Glama

csv_filter

Filter CSV records using query expressions for comparisons, text matching, and compound conditions.

Instructions

Filter records using query expressions. Supports comparisons (==, !=, <, >, <=, >=), text operations (contains, startswith, endswith, matches), and compound queries (AND, OR).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesAbsolute path to the CSV file
limitNoMaximum results (default: 1000)
queryYesQuery expression (e.g., status == "active" AND age > 30)
outputFormatNoOutput format (default: records)
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It focuses on query syntax rather than behavioral traits like side effects, read-only nature, or return behavior. It fails to disclose that this is likely a non-mutating filter operation.

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 a single, front-loaded sentence that clearly states the purpose and key features without unnecessary detail. It is concise and well-structured.

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

Completeness3/5

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

The description is adequate but has gaps. It provides query syntax but does not explain return formats or what happens on no matches despite there being no output schema. The schema covers outputFormat, but the description lacks guidance on usage context relative to sibling tools.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all parameters, giving a baseline of 3. The description adds meaningful detail about query operators (comparisons, text ops, AND/OR) beyond the schema, which enhances parameter understanding.

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 'Filter records using query expressions' with a specific verb and resource. It lists supported operators, distinguishing it from sibling tools like csv_search and csv_inspect.

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 complex filtering via supported operators but does not explicitly state when to use this tool versus alternatives. No exclusions or comparisons to siblings are provided.

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/SuppleAardvark/csv-explorer-mcp'

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