# 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,…

Section: MCP · Type: tool · Last updated: 2026-09-13

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.

## The picture

Agent (calls) → prove_recipe (Prove) → Result (as data)

## Inputs

- 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

```json
{
  "_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 weighte
```

Truncated for the page; the full request sits beside the tool’s schema in the repository.

## Example response

```json
{
  "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_c
```

Truncated for the page; the full response sits beside the tool’s schema in the repository.

## Same step

- [verify_world](https://theworklens.com/docs/mcp/tools/verify-world): Check that a company file and the job files pointing at it still agree. Each job file is validated ALONE, so the two facts it cannot know go unchecked: how many rows a borrowed entity has, and which company (seed) this is. Get the seed wrong and every key still resolves — against different people — and both runs…
- [score_realism](https://theworklens.com/docs/mcp/tools/score-realism): Does the generated data have the shape of a REAL sample? Compares column kinds, blank rates, variety and magnitudes, never values. Pass the sample's path on this machine, not its contents. Whether the data follows its recipe is prove_recipe.
- [check_privacy](https://theworklens.com/docs/mcp/tools/check-privacy): Answer both privacy questions together: privacy scores the OUTPUT (re-identification risk, k-anonymity), leaks scores the RECIPE ITSELF (a real value pasted in as an enum, default or pattern). A recipe can leak while its output scores safe, and that combination is the one worth catching. Neither reads a real source…
- [Tool directory](https://theworklens.com/docs/mcp/tools): All 13 tools, grouped by step.

## Related

- [Tool directory](https://theworklens.com/docs/mcp/tools): All 13 tools the WorkLens MCP server exposes, grouped by the step they belong to, generated from the published contracts.
- [verify_world](https://theworklens.com/docs/mcp/tools/verify-world): Check that a company file and the job files pointing at it still agree. Each job file is validated ALONE, so the two facts it cannot know go unchecked: how…
- [score_realism](https://theworklens.com/docs/mcp/tools/score-realism): Does the generated data have the shape of a REAL sample? Compares column kinds, blank rates, variety and magnitudes, never values. Pass the sample's path on…
- [check_privacy](https://theworklens.com/docs/mcp/tools/check-privacy): Answer both privacy questions together: privacy scores the OUTPUT (re-identification risk, k-anonymity), leaks scores the RECIPE ITSELF (a real value pasted…

_← Previous: [sample_world](https://theworklens.com/docs/mcp/tools/sample-world) · Next: [check_privacy](https://theworklens.com/docs/mcp/tools/check-privacy) →_

_README, input schema and the primary worked request and response for this tool, published with the server. Source: mcp-schemas/tools/12-prove_recipe._

_Canonical: https://theworklens.com/docs/mcp/tools/prove-recipe · This copy: https://theworklens.com/docs/mcp/tools/prove-recipe.md_
