Skip to main content
Glama

csv-dialect

Detect a CSV file's delimiter, quote, header row and broken header names — Detects the delimiter (comma, semicolon, tab, pipe), quote character, line terminator, BOM, header row offset (preamble lines above the header) and whether a header exists in CSV text, parsed per RFC 4180 so quoted delimiters and CRLF inside quoted fields are handled. Returns every candidate dialect with its score, each ragged row with its physical line, and header repairs (empty, duplicate or BOM

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": {
      "text": "<text>"
    },
    "name": "csv-dialect"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesCSV text, up to 200000 characters. Detection samples the first 50000; structure checks cover all of it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/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 disclose meaningful behavior: RFC 4180 parsing, correct handling of quoted delimiters and CRLF inside quoted fields, and the shape of results (candidate dialects with scores, ragged rows with physical line numbers, header repairs). However the final clause is truncated mid-thought — 'header repairs (empty, duplicate or BOM' — leaving the repair behavior, error handling and side-effect profile unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead phrase is front-loaded and useful, but the second sentence largely re-lists the same fields with more words, creating redundancy, and the text is cut off before the sentence completes. Every sentence should earn its place; here the opening and the expansion overlap.

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?

There is no output schema, so the description must explain return values, and it does describe candidate dialects, ragged rows and header repairs — but the truncation at 'header repairs (empty, duplicate or BOM' leaves the most consequential return detail unfinished. For a single-parameter detection tool that is close to sufficient, yet the incomplete ending is a real 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?

There is a single parameter at 100% schema coverage, and the schema already states the 200000 max length and that detection samples the first 50000 characters. The description adds no parameter-level detail beyond that, so the baseline 3 applies.

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 — 'Detect a CSV file's delimiter, quote, header row and broken header names' — and then enumerates exactly what is detected (delimiter set, quote char, line terminator, BOM, header offset, header presence). That level of specificity makes it obviously distinct from a transformation-oriented sibling like csv-roundtrip.

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 only implied: an agent can infer this is the inspection tool to run before parsing, but the description never states when to choose it over csv-roundtrip or any other sibling, nor does it state prerequisites or exclusions. Adequate for an obvious read-only detection utility, but no explicit routing guidance.

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