Skip to main content
Glama

csv_stats

Calculate aggregate statistics for CSV fields, including min/max, mean, median, stdDev for numeric columns and top values for categorical columns.

Instructions

Collect aggregate statistics for fields in a CSV file. Includes min/max, mean, median, stdDev for numeric fields, and top values for categorical fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesAbsolute path to the CSV file
fieldsNoSpecific fields to analyze (default: all)
maxRecordsNoMaximum records to analyze (default: all)
Behavior4/5

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

No annotations are provided, so the description carries the burden of behavioral disclosure. It specifies the types of aggregates computed (numeric and categorical) and implies a read-only analysis. It does not mention edge cases or side effects, but the description adds meaningful behavioral detail beyond the schema.

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 two sentences long and front-loaded with the core purpose. Every word adds value, and the list of statistics is precise without unnecessary 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?

The tool has 3 parameters and no output schema. The description clearly communicates the tool's role and the types of statistics returned, but it does not explicitly state the return format (e.g., JSON object). Given the tool's simplicity and clear purpose, this is a minor gap.

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 description coverage is 100%, so the baseline is 3. The description does not add any additional meaning beyond what the schema already provides for parameters like 'file', 'fields', and 'maxRecords'. It does not elaborate on default behaviors or formatting.

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 the tool's function: 'Collect aggregate statistics for fields in a CSV file.' It specifies the exact statistics (min/max, mean, median, stdDev, top values) and distinguishes it from sibling tools like csv_inspect or csv_filter, which serve different purposes.

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 by describing what the tool does, but it does not explicitly state when to use it versus alternatives, nor does it mention exclusions. An agent can infer that this is for summary statistics, but explicit guidance is absent.

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