Skip to main content
Glama

util_csv_pivot

Read-only

CSV pivot table / group-by — Group and pivot CSV data like a spreadsheet pivot table, offline. Pass csv= (header row; comma, tab, semicolon or pipe auto-detected), rows= group-by column(s), optional cols= pivot column, values= numeric column(s) and agg= sum|avg|count|min|max|median|distinct|stdev|first|last. Handles $1,200.50, 12% and (30) negatives; returns table rows, grand total, pivot values, CSV output and notes on skipped non-numeric cells. Optional sort=key|value|asc, limit= (max 5000). Up to 50,000 rows. Price: $0.003 USDC (Base, via x402).

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": {
      "csv": "<csv>",
      "rows": "<rows>",
      "values": "<values>"
    },
    "name": "util_csv_pivot"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYese.g. region,product,amount East,A,1200 East,B,50 West,A,70
rowsYese.g. region
valuesYese.g. amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses many operational traits: offline execution, delimiter auto-detection, parsing of currency/percent/negative values, return contents, skipped-cell notes, row limits, and payment via x402. This is substantial behavioral context for a read-only tool.

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-loads the purpose, then parameter details, then behavior and pricing. Every clause carries useful information, though the long semicolon-heavy structure makes it slightly harder to scan than ideal.

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

Completeness5/5

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

There is no output schema, but the description explains what is returned, including table rows, grand total, pivot values, CSV output, and notes on skipped cells. It also covers limits, parsing quirks, and payment, making it complete for a complex data-transformation tool.

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%, but the description adds real meaning: it explains CSV delimiter handling, group-by usage, numeric value columns, aggregation options, sorting, and limits. The only weakness is that it mentions optional parameters such as cols, agg, sort, and limit that are not present in the provided input schema.

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?

The description states a specific operation and resource: grouping/pivoting CSV data like a spreadsheet pivot table, offline. It is clear what the tool does, but it does not explicitly distinguish itself from sibling CSV tools such as util_csv_query or util_csv_join.

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?

Usage is implied by the pivot/group-by framing: an agent can infer this tool is for grouped summaries rather than joining, diffing, or querying raw CSV. However, there is no explicit when-to-use guidance, no exclusions, and no named alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources