Skip to main content
Glama

util_csv_validate

Read-only

CSV validate (schema rules) — Validate a CSV against column rules and get every failing cell, offline. schema= is a compact rule list like id:int:required:unique;email:email:required;age:int:min=0:max=120;status:enum=active|inactive;signup:date (regex=... allowed as the last rule) or a JSON object mapping each column name to {type, required, unique, min, max, minLength, maxLength, enum, pattern}. Types: string, int, number, bool, date (YYYY-MM-DD), datetime, email, url, uuid, zip (US 5 or 9 digit), phone (10-15 digits). Rules: required, unique (case-insensitive), min/max (value for numbers, length for text), minlen, maxlen, len, enum (with wrong-case hints), regex. Also catches missing columns, ragged rows, duplicate headers and unexpected columns (strict=1). Without schema= it infers one from the data and checks against it. Returns VALID/INVALID, error counts by column and rule, the first 200 errors with row, value and message, invalid row numbers, and the inferred schema string ready to reuse. Up to 20,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>",
      "schema": "<schema>"
    },
    "name": "util_csv_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYese.g. id,email,age,status 1,ann@example.com,34,active 2,bob@example,17,Active 2,cy@example.com,,paused
schemaYese.g. id:int:required:unique;email:email:required;age:int:required:min=18:max=120;status:enum=active|inactive

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior1/5

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

The description says validation happens 'offline', but annotations declare openWorldHint=true, and the description itself mentions payment via x402 on Base, which is an external network interaction. This is a direct contradiction with an annotation, requiring a score of 1 despite otherwise rich behavioral detail about outputs, limits, and inference.

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 dense but front-loaded and well structured, moving from purpose to rule syntax, extra checks, inference behavior, return values, row limits, and pricing. Every sentence contributes useful information for a complex validation tool.

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?

Given the tool's complexity and lack of an output schema, the description is highly complete: it explains return contents, error limits, row limits, inference behavior, and pricing. The remaining gap is the inaccurate treatment of schema as optional and the undisclosed strict parameter in the 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 substantial meaning beyond the schema by documenting the compact rule grammar, supported types, and rule keywords. However, it says 'Without schema= it infers one from the data' even though schema is required in the input schema, and it references a strict=1 option that is not present in the schema, creating misleading parameter guidance.

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 states a specific verb and resource: validate a CSV against column rules and return every failing cell. It distinguishes itself from generic CSV utilities by emphasizing schema-rule validation, cell-level errors, and offline operation.

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?

It gives clear usage context: use it to validate a CSV against explicit column rules, or let it infer rules when schema is omitted. It does not explicitly name sibling alternatives such as util_csv_profile or util_csv_clean, so guidance is strong but not fully comparative.

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