ectype-mcp

v0.1.1
ectype-mcp Checked 8 hours ago Published 3 days ago

An MCP server for Ectype: realistic, checkable synthetic tables for AI agents, made locally.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_table_from_spec Create a table from a spec

Create a realistic synthetic table from a short spec, with no real data. Use it instead of writing NumPy code to invent data: one call writes the rows (.csv or .parquet), saves the table's fingerprint (.dfp) beside them for more rows later (generate_rows), and checks the rows. Same spec and seed give the same file. Read summary and spec_status first: matches (every check passes), differs (a check no rule explains is off: fix the spec), or rules_shifted (only columns that rules use differ; their checks, marked by_rules, say what value to state instead). checks compares each column and correlati…

ParameterTypeDescription
output_path *stringFile to write: .csv or .parquet. Absolute, or relative to the first allowed folder.
fingerprint_pathstringWhere to save the fingerprint (.dfp). Default: output_path with .dfp.
overwritebooleanReplace files that already exist.
rowsintegerNumber of rows to write.
seedintegerRandom seed; the same seed gives the same rows.
specobjectThe table spec (see the tool description). Give spec or spec_path.
spec_pathstringA .json file holding the spec, instead of spec. Handy for editing and re-running.

profile_table Learn a fingerprint from a table

Learn a fingerprint (.dfp) from a real table file so generate_rows can make look-alike rows of any size. Columns that look personal (names, e-mail addresses, phone numbers, addresses) become stand-in tokens when their values repeat; nearly unique ones are regenerated as keys or left out. Unique keys are regenerated and rare categories are pooled. Returns the fingerprint path and the table's structure: column types and roles, which columns look personal, and relationships found between columns. No cell value of the table appears in the result. Optional: rules every generated row must obey (cons…

ParameterTypeDescription
table_path *stringA table file: .csv, .tsv, .parquet, .arrow, .feather, .ipc, .json, .ndjson or .jsonl.
constraintsarrayRules every generated row must obey, e.g. ["start_date <= end_date"].
derivedobjectColumns computed from others: {column: expression}, e.g. {"total": "round(quantity * price, 2)"}.
exclude_columnsarrayColumns to leave out of the fingerprint and of generated rows.
fingerprint_pathstringWhere to save the fingerprint (.dfp). Default: table_path with .dfp.
jointstringHow columns move together: gaussian_copula (fast) or chain_copula (closest to the source, slower on wide tables).
overwritebooleanReplace files that already exist.
personal_columnsarrayColumns to replace with stand-in tokens even if they do not look personal.
policystringDisclosure policy: strict pools more rare values and stores coarser statistics.

generate_rows Generate rows from a fingerprint

Generate rows from a fingerprint (.dfp) into a .csv or .parquet file. Rows follow the fingerprint's distributions, relationships and rules; unique keys are fresh. Same fingerprint, rows and seed give the same file. For a fingerprint made from a spec, the result also compares the rows with the spec.

ParameterTypeDescription
fingerprint_path *stringA fingerprint file (.dfp).
output_path *stringFile to write: .csv or .parquet. Absolute, or relative to the first allowed folder.
overwritebooleanReplace files that already exist.
rowsintegerNumber of rows to write.
seedintegerRandom seed; the same seed gives the same rows.

validate_rows Validate rows against a fingerprint

Check a table file against a fingerprint (.dfp): structure and dtypes, every rule on every row, and statistics held back from the generator (sealed targets, the evidence; calibration targets are the ones it was tuned on). Optionally pass real rows the fingerprint was not made from as holdout_path for an independent check. Returns passed true or false with the main reasons. In worst_targets, d/tol above 1 means one statistic is outside its own tolerance; the verdict allows for a few such chance misses among many targets. Writes nothing.

ParameterTypeDescription
fingerprint_path *stringA fingerprint file (.dfp).
table_path *stringA table file: .csv, .tsv, .parquet, .arrow, .feather, .ipc, .json, .ndjson or .jsonl.
holdout_pathstringOptional real rows that the fingerprint was not made from, for an independent check.
sensitivitystringHow readily a difference counts: strict flags more, lenient only clear differences.

compare_fingerprints Compare two fingerprints

Compare two fingerprints (.dfp) for drift, without any data: which columns and pairs of columns changed beyond sampling noise, and any change of schema. reference_path is the baseline. Returns verdict no_drift, drift or inconclusive. Writes nothing.

ParameterTypeDescription
candidate_path *stringThe fingerprint to compare (.dfp).
reference_path *stringThe baseline fingerprint (.dfp).
sensitivitystringHow readily a difference counts: strict flags more, lenient only clear differences.

describe_table Describe a table

Describe a table file without returning any of its rows or values: row count, each column's type, role, share of empty cells and number of distinct values, which columns look personal, keys, and relationships between columns (orderings, totals, computed columns, groups). Writes nothing. Takes a few seconds per 100,000 rows.

ParameterTypeDescription
table_path *stringA table file: .csv, .tsv, .parquet, .arrow, .feather, .ipc, .json, .ndjson or .jsonl.

inspect_fingerprint Inspect a fingerprint

Show what a fingerprint (.dfp) holds: whether it came from a spec or a real table, its columns, rules and relationships, and, for one made from a spec, the spec itself (edit it and call create_table_from_spec again). Writes nothing.

ParameterTypeDescription
fingerprint_path *stringA fingerprint file (.dfp).