Skip to main content
Glama

util_csv_split

Read-only

CSV split — Split one CSV into many: by= makes one part per distinct value (e.g. one file per region or customer; ignoreCase=true merges East/east), rows= makes chunks of n rows (batch uploads, API limits), parts= makes n roughly equal parts. Each part comes back as ready-to-save CSV with a safe file name, row counts and source row ranges, header repeated by default (header=false to drop it). Auto-detects comma/tab/semicolon/pipe, handles quoted fields, BOM and CRLF, pads ragged rows, maxParts up to 1000. Offline, deterministic. 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>",
      "by": "<by>"
    },
    "name": "util_csv_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYese.g. region
csvYese.g. id,region,amount 1,East,100 2,West,90 3,East,50

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations it discloses the return shape (ready-to-save CSV parts with safe file names, row counts, source row ranges), default header repetition with an opt-out, the maxParts=1000 cap and a price. Two gaps: 'Offline, deterministic' sits in mild tension with openWorldHint=true, and it never says what happens when distinct values exceed maxParts.

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?

Core behavior is front-loaded and the mode enumeration is scannable; every clause (delimiter auto-detection, quoting, BOM, CRLF, ragged-row padding) carries information an agent can act on. It is a dense single block, so later details are easy to skim past.

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 two-parameter, output-schema-less transform, the return shape, defaults and limits are covered well. The main completeness hole is the mismatch between the documented mode selectors and the actual required-parameter schema.

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 description adds real meaning for ignoreCase, header and maxParts, but none of those names appear in the schema, which only declares csv and by with by required. An agent reading only the schema would never discover rows= or parts= modes, and the required-by constraint appears to conflict with the described rows/parts alternatives.

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?

Opens with a specific verb and resource — 'Split one CSV into many' — then enumerates the three concrete output modes (by=, rows=, parts=). The mode list makes it self-evidently distinct from reshaping siblings such as pivot, melt and join without needing to name them.

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?

Each mode is paired with a use case ('one file per region or customer', 'batch uploads, API limits'), which tells the agent which selector fits a given request. It stops short of explicit when-not guidance or naming a sibling to use instead for unsplit transforms.

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