Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATACLEAN_PRICESNoOverride credit prices, e.g. `clean_table=2,...`.
KEYFLINT_LICENSEYesYour KeyFlint license key (starts with `LIC-`), obtained by buying credits at https://mcp.keyflint.dev. Passed to the server as the `KEYFLINT_LICENSE` environment variable. In hosted mode (`dataclean-mcp --http`) the license is instead read from each request's `Authorization: Bearer LIC-...` header.
DATACLEAN_MAX_ROWSNoMaximum number of rows processed (default 200,000).200000
DATACLEAN_MAX_BYTESNoMaximum input size in bytes (default 20 MB).20971520
DATACLEAN_MAX_OUTPUTNoMaximum output size in bytes (default 15 MB).15728640

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Deterministic data hygiene for tables. Use it BEFORE reasoning over a CSV/Excel file instead of reading raw cells: profile_table reports encoding, delimiter, header, per-column type (integer, decimal, date, datetime, boolean, email, url, phone, iban, text), number locale (1.234,56 vs 1,234.56), date order (day-first vs month-first), nulls, duplicates and problems, plus a suggested schema. clean_table returns the table with NUL/control/zero-width characters and mojibake removed, trimmed text, numbers as plain decimals, dates as ISO 8601, phones as E.164, deduplicated rows, as CSV, JSON, JSONL or typed .xlsx. validate_schema checks rows against a schema (types, required, unique, min/max, enum, pattern). normalize_values converts a list of values. Ambiguous values (03/04/2026, 1,250) are never guessed: they are converted only when the column settles it or you pass date_order / number_locale, otherwise kept and flagged. Pass the table as content (text), content_base64 (file bytes, required for .xlsx) or rows (JSON). Free: pricing, credits_balance. Unreadable input is never charged; failures are refunded.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
profile_tableA

Profile a table: what each column really contains and what is wrong with it, without changing it.

Returns the detected encoding/delimiter/header, per-column type, nulls, distinct values, min/max, number locale, date order, currency, examples and notes (leading-zero IDs, formula-injection cells, ambiguous dates or numbers, mixed separators), table issues (ragged rows, NUL bytes, duplicate headers, title rows), exact duplicate rows, the first 50 flagged cells and a suggested schema for validate_schema.

Input (exactly one): content (CSV/TSV/JSON text), content_base64 (file bytes: .xlsx, or CSV in any encoding),
rows (JSON list of objects or of lists). delimiter: auto-detected (, ; tab |). sheet: Excel sheet name (default
the first). has_header: false when the first row is data. header_row: 1-based row of the header (default auto,
skipping title rows above it).
Parsing: number_locale 'eu' (1.234,56) or 'us' (1,234.56) settles values like 1,250 (auto from the column
otherwise). date_order 'dmy' or 'mdy' settles dates like 03/04/2026 (auto from the column otherwise).
phone_country (ISO-2, e.g. ES, US, GB) converts national phone numbers to E.164. null_values: extra strings
read as empty (NULL, N/A, -, #N/A and similar are already). types: force a type per column, e.g.
{"zip": "text", "amount": "decimal"}; types are text, integer, decimal, boolean, date, datetime, email, url,
phone, iban.
clean_tableA

Return a clean, typed copy of a table, with a report of every change and every value left unconverted.

Text: NUL/control/zero-width characters removed, mojibake repaired (Café -> Café), Unicode NFC, spaces collapsed and trimmed. Numbers: plain decimals (1.250,50 € -> 1250.50; (45) -> -45; 1.250,50- -> -1250.50). Dates: ISO 8601. Booleans: true/false. Emails: domain lowercased. Phones: E.164. IBAN: compact uppercase. Values that do not fit the column type are kept as they were (on_invalid='null' empties them) and listed in flags with their source row.

Args: output_format: csv (default) | tsv | json | jsonl | xlsx (typed cells; returned only as content_base64). header_style: keep | snake (Fecha de alta -> fecha_de_alta). columns: keep only these columns, in order. dedupe: none | exact | ignore_case, over all columns or dedupe_keys; the first occurrence is kept. drop_empty_columns: remove columns with no values. output_delimiter: for csv output. formula_guard: prefix text cells starting with = + - @ with ' in CSV so spreadsheets do not run them.

Input (exactly one): content (CSV/TSV/JSON text), content_base64 (file bytes: .xlsx, or CSV in any encoding),
rows (JSON list of objects or of lists). delimiter: auto-detected (, ; tab |). sheet: Excel sheet name (default
the first). has_header: false when the first row is data. header_row: 1-based row of the header (default auto,
skipping title rows above it).
Parsing: number_locale 'eu' (1.234,56) or 'us' (1,234.56) settles values like 1,250 (auto from the column
otherwise). date_order 'dmy' or 'mdy' settles dates like 03/04/2026 (auto from the column otherwise).
phone_country (ISO-2, e.g. ES, US, GB) converts national phone numbers to E.164. null_values: extra strings
read as empty (NULL, N/A, -, #N/A and similar are already). types: force a type per column, e.g.
{"zip": "text", "amount": "decimal"}; types are text, integer, decimal, boolean, date, datetime, email, url,
phone, iban.
validate_schemaA

Check every row of a table against a schema, after the same parsing clean_table applies.

schema: {"columns": {"id": {"type": "integer", "required": true, "unique": true}, "email": {"type": "email", "required": true}, "amount": {"type": "decimal", "min": 0, "max": 100000}, "signup": {"type": "date", "min": "2020-01-01"}, "status": {"enum": ["active", "churned"]}, "sku": {"type": "text", "pattern": "[A-Z]{3}-\d{4}", "max_length": 8}}, "strict_columns": false} Rules: type, required, unique (case-insensitive), min/max (numbers and dates), min_length/max_length, enum (case-insensitive), pattern (full match; nested quantifiers are refused). Column names match case-insensitively. strict_columns flags columns that are not in the schema. Errors carry the source row number; valid is true only with zero errors. profile_table returns a suggested schema to start from.

Input (exactly one): content (CSV/TSV/JSON text), content_base64 (file bytes: .xlsx, or CSV in any encoding),
rows (JSON list of objects or of lists). delimiter: auto-detected (, ; tab |). sheet: Excel sheet name (default
the first). has_header: false when the first row is data. header_row: 1-based row of the header (default auto,
skipping title rows above it).
Parsing: number_locale 'eu' (1.234,56) or 'us' (1,234.56) settles values like 1,250 (auto from the column
otherwise). date_order 'dmy' or 'mdy' settles dates like 03/04/2026 (auto from the column otherwise).
phone_country (ISO-2, e.g. ES, US, GB) converts national phone numbers to E.164. null_values: extra strings
read as empty (NULL, N/A, -, #N/A and similar are already). types: force a type per column, e.g.
{"zip": "text", "amount": "decimal"}; types are text, integer, decimal, boolean, date, datetime, email, url,
phone, iban.
normalize_valuesB

Normalize a list of up to 10,000 values of one kind, e.g. amounts, dates or phone numbers from a document.

kind: auto (inferred like a table column) | number | integer | decimal | date | datetime | boolean | email | url | phone | iban | text. name: optional column name, used as a hint (e.g. 'phone', 'fecha'). Returns one result per input, in order: {"input", "output", "valid"} and "reason" when it could not be converted. Output types: numbers as plain decimal strings, dates ISO 8601, phones E.164.

pricingA

Credit price of each tool and where to buy credits. Free.

credits_balanceB

Remaining credits on your KeyFlint license. Free.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
dataclean-cardInteractive result card (MCP Apps).

TDQS

A3.7/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has an explicit, distinct role in a pipeline: profile (read-only diagnosis), clean (transform), validate (schema check), normalize (single-column values), plus two billing/metadata tools. The one soft boundary is clean_table vs normalize_values, which both perform type coercion and could be confused for bulk conversions, but the descriptions make the table-vs-list scope clear.

Naming Consistency4/5

Four of six names follow a clean verb_noun snake_case pattern (profile_table, clean_table, validate_schema, normalize_values). The two metadata tools (pricing, credits_balance) are noun phrases, a minor deviation but still snake_case and readable, so the convention is predictable overall.

Tool Count4/5

Six tools is well-scoped for a CSV/table cleaning server, and each core operation (profile, clean, validate, normalize) earns its place. Two of the six are billing/metadata (pricing, credits_balance), which is slightly more meta surface than needed but not disruptive.

Completeness4/5

The surface covers the full inspect→clean→validate→convert lifecycle with multiple input/output formats, and profile_table even feeds a suggested schema into validate_schema. Minor gaps remain: no cell-level edit or repair operation, no fuzzy/approximate dedupe, and no multi-table join or schema persistence, but these are outside the apparent core scope.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues