prove_recipe
Return the full proof for a recipe as DATA (schema worklens.proof.v2): consistency, privacy, independent property verification and a tamper-evident receipt,…
Last updated 2026-09-13 · Generated from mcp-schemas/tools/12-prove_recipe · Markdown
Return the full proof for a recipe as DATA (schema worklens.proof.v2): consistency, privacy, independent property verification and a tamper-evident receipt, under one top-level passed. Use when you need the proof itself rather than the file handle the generate tools return. Read verification before realism — it is what an implementation that did NOT generate the values made of them.
Inputs and outputs
- graph_json (string, required) — The recipe as a JSON string.
- n_rows (number) — DEFAULT for entities that declare no rows; it does NOT override one that does. Omit it unless the recipe leaves rows unstated.
- seed (number | string) — Optional. A number pins the run — same recipe + same seed = byte-identical, forever. "today" uses YYYYMMDD, so every run today matches and tomorrow differs. "now" gives a fresh dataset each run. Both are recorded in the receipt as the number they resolved to, so any run stays reproducible.…
- scenario (string) — see the input schema
When to call it
The proof as data. Both generate tools already write it into the evidence bundle beside the CSVs, but they return only a file handle ({name, path, sha256, bytes}) — so an agent without filesystem access could not obtain the one artifact the product exists to produce.
Read problems first when passed is false, then verification. It is what an implementation that did NOT generate the values made of them, and columns_checked: 0 means nothing was checkable rather than everything passing.
Deterministic: same recipe + same seed yields an identical proof, so it describes exactly the dataset the caller saw.
Example request
{
"_comment": "The base recipe on a CLEAN run: consistency, privacy, independent verification and a tamper-evident receipt under one `passed` gate.",
"name": "prove_recipe",
"arguments": {
"graph_json": {
"project": "Suncorp-shaped general insurance group",
"region": "AU",
"seed": 20260826,
"output": {
"format": "csv"
},
"entities": [
{
"name": "Intermediary",
"rows": 400,
"fields": [
{
"name": "intermediary_id",
"type": "id",
"unique": true
},
{
"name": "trading_name",
"type": "company.name"
},
{
"name": "abn",
"_note": "Declared here rather than named from a pack: a checksum is a rule, and a rule belongs to the recipe. Same values either way.",
"type_def": {
"pattern": "N##########",
"checksum": {
"algorithm": "weighted_mod",
"weights": [
10,
1,
3,
5,
7,
9,
11,
13,
15,
17,
19
],
"modulus": 89,
"check_digit": "last",
"remainder_from": "zero",
"first_digit_offset": -1
},
"display": "## ### ### ###"
}
},
{
"name": "acn",
"type_def": {
"digits": 9,
"checksum": {
"algorithm": "weighted_mod",
"weights": [
8,
7,
6,
5,
4,
3,
2,
1
],
"modulus": 10,
"check_digit": "last"
},
"display": "### ### ###",
"defects": {
"invalid": {
"at": 0,
"replace_with": "0",
"breaks": "checksum",
"note": "One digit off, so the mod-10 weighteTruncated for the page; the full request sits beside the tool’s schema in the repository.
Example response
{
"contract_version": 3,
"schema": "worklens.proof.v2",
"passed": true,
"problems": [],
"consistency": {
"overall": 100,
"values_checked": 4620,
"metrics": [
{
"label": "No real source data",
"status": "green",
"detail": "Recipe-generated — no real data entered the pipeline.",
"pass_rate": 1,
"checked": 1,
"in_score": false
},
{
"label": "Formulas consistent",
"status": "green",
"detail": "360 of 360 — derived columns match their formula",
"pass_rate": 1,
"checked": 360
},
{
"label": "IDs valid",
"status": "green",
"detail": "510 of 510 — identifiers pass an independent check",
"pass_rate": 1,
"checked": 510
},
{
"label": "Within range",
"status": "green",
"detail": "1350 of 1350 — numbers inside their declared min/max",
"pass_rate": 1,
"checked": 1350
},
{
"label": "Allowed values",
"status": "green",
"detail": "1590 of 1590 — category fields use only declared values",
"pass_rate": 1,
"checked": 1590
},
{
"label": "Unique fields unique",
"status": "green",
"detail": "810 of 810 — rows whose unique value no earlier row used",
"pass_rate": 1,
"checked": 810
}
]
},
"privacy": {
"risk": "medium",
"safety": 80,
"k_anonymity": 1,
"quasi_identifiers": [
"intermediary_type",
"head_office_state",
"gst_registered"
],
"metrics": [
{
"label": "No real records",
"status": "green",
"detail": "Synthetic data — re-identification of real individuals is impossible; no real records are present."
},
{
"label": "k-anonymity",
"status": "red",
"detail": "Every combination of [intermediary_type, head_office_state, gst_registered] is shared by at least 1 row(s)."
},
{
"label": "Distinctive rows",
"status": "red",
"detail": "11 of 30 rows (37%) are unique on their quasi-identifiers."
},
{
"label": "Direct identifiers faked",
"status": "green",
"detail": "68 direct-identifier field(s) are synthetic, not real."
}
]
},
"verification": {
"columns_cTruncated for the page; the full response sits beside the tool’s schema in the repository.