Skip to main content
Glama

CSV Schema Check

csv_schema_check
Read-onlyIdempotent

Check CSV text against a column schema before it is loaded anywhere. Send the CSV (header row first, up to 20,000 characters) and, per column, its type (text, integer, decimal, date, boolean), whether it is required, and optional limits: min and max, length, a shape such as AAA-9999, or a list of allowed values; plus up to 3 columns that together must be a unique key. Get back every bad cell by line and column with what was expected, header problems (missing, duplicate or extra columns), rows with the wrong number of fields, CSV syntax errors with their line, and counts per problem. Data cell values are never echoed back; column names are. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/csv-schema-check). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.

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>",
      "columns": "<columns>"
    },
    "name": "csv_schema_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYesThe CSV text, header row first (RFC 4180; line breaks CRLF, LF or CR), up to 20,000 characters. Do not send personal data (names of people, emails, phone, Social Security, card or account numbers): columns named for it and cells shaped like it are refused, but names in cells cannot be detected.
columnsYesThe schema: one entry per column to check (up to 50).
delimiterNoField separator: comma (default, RFC 4180), semicolon, tab or pipe.comma
unique_keyNoUp to 3 column names (from columns) whose values together must be present and unique on every row.
allow_extra_columnsNofalse: a header column that is not in the schema is a problem. Default true (extra columns are only listed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, closed-world), the description discloses that cell values are never echoed but column names are, that nothing is stored, that there is no model or network call, that responses are cryptographically signed with a verifiable URL, that there is an hourly rate limit, and that email/URL/long-digit labels are refused. These are exactly the operational facts an agent needs before sending data.

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 purpose is front-loaded, but the body is a single semicolon-chained sentence that mixes input spec, output spec, error codes, pricing, privacy, signing, and a legal disclaimer. The enumerated "Answer fields" list is useful given there is no output schema, but "Free" and "Not legal, tax or financial advice" add little for an agent and could be trimmed or split into scannable lines.

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?

With no output schema, the description compensates by naming the returned fields (ok, verdict, result, rule, sources, observation, signature, verify), the failure modes (bad input, too large, hourly limit), the per-problem reporting granularity, and the privacy stance. For a five-parameter validation tool this is essentially everything needed to invoke it correctly.

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 every parameter including nested column options already carries rich prose and enums. The description restates the shape (header row first, 20,000 characters, per-column type/required/limits, up to 3 unique-key columns) but adds no constraint or nuance the schema does not already contain, 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?

"Check CSV text against a column schema before it is loaded anywhere" states a specific verb (check/validate), the resource (CSV text against a column schema), and the timing context. The scope is concrete enough to separate it from csv_diff (which compares two files) without needing the sibling list.

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?

The phrase "before it is loaded anywhere" gives a clear usage context (pre-load validation), and the input size cap plus error reasons tell the agent what constraints to respect. It stops short of naming an alternative tool or an explicit when-not condition, so it falls just under a 5.

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