ectype-mcp
v0.1.1An 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…
| Parameter | Type | Description |
|---|---|---|
output_path * | string | File to write: .csv or .parquet. Absolute, or relative to the first allowed folder. |
fingerprint_path | string | Where to save the fingerprint (.dfp). Default: output_path with .dfp. |
overwrite | boolean | Replace files that already exist. |
rows | integer | Number of rows to write. |
seed | integer | Random seed; the same seed gives the same rows. |
spec | object | The table spec (see the tool description). Give spec or spec_path. |
spec_path | string | A .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…
| Parameter | Type | Description |
|---|---|---|
table_path * | string | A table file: .csv, .tsv, .parquet, .arrow, .feather, .ipc, .json, .ndjson or .jsonl. |
constraints | array | Rules every generated row must obey, e.g. ["start_date <= end_date"]. |
derived | object | Columns computed from others: {column: expression}, e.g. {"total": "round(quantity * price, 2)"}. |
exclude_columns | array | Columns to leave out of the fingerprint and of generated rows. |
fingerprint_path | string | Where to save the fingerprint (.dfp). Default: table_path with .dfp. |
joint | string | How columns move together: gaussian_copula (fast) or chain_copula (closest to the source, slower on wide tables). |
overwrite | boolean | Replace files that already exist. |
personal_columns | array | Columns to replace with stand-in tokens even if they do not look personal. |
policy | string | Disclosure 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.
| Parameter | Type | Description |
|---|---|---|
fingerprint_path * | string | A fingerprint file (.dfp). |
output_path * | string | File to write: .csv or .parquet. Absolute, or relative to the first allowed folder. |
overwrite | boolean | Replace files that already exist. |
rows | integer | Number of rows to write. |
seed | integer | Random 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.
| Parameter | Type | Description |
|---|---|---|
fingerprint_path * | string | A fingerprint file (.dfp). |
table_path * | string | A table file: .csv, .tsv, .parquet, .arrow, .feather, .ipc, .json, .ndjson or .jsonl. |
holdout_path | string | Optional real rows that the fingerprint was not made from, for an independent check. |
sensitivity | string | How 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.
| Parameter | Type | Description |
|---|---|---|
candidate_path * | string | The fingerprint to compare (.dfp). |
reference_path * | string | The baseline fingerprint (.dfp). |
sensitivity | string | How 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.
| Parameter | Type | Description |
|---|---|---|
table_path * | string | A 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.
| Parameter | Type | Description |
|---|---|---|
fingerprint_path * | string | A fingerprint file (.dfp). |