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

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

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 report clean. Reads recipes only, never rows, so it is safe in CI. Use on files written before the world key existed; files that USE world/borrows cannot drift.

## The picture

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

## Inputs

- world_json (string, required) — The company file as a JSON string, or a path to it.
- flow_json (array, required) — The job files — each a JSON string or a path.

## When to call it

Splitting one company across several recipes is safe on its own: a value comes from entity + field + row plus the seed, so two files land on the same people without ever seeing each other. But each file is validated alone, so the two facts a job file cannot know go unchecked - how many rows a borrowed entity has, and which company (seed) this is.

Get the first wrong and keys point at rows nobody created. Get the second wrong and every key still resolves, against different people, and both runs report clean.

Reads recipes only, never rows, so it is safe to run in CI. Files that use world/borrows cannot drift, because the loader fills those in - this is for files written before that key existed.

## Example request

```json
{
  "_comment": "A world and a job file that agree.",
  "name": "verify_world",
  "arguments": {
    "world_json": {
      "project": "acme",
      "seed": 7,
      "output": {
        "format": "csv"
      },
      "entities": [
        {
          "name": "Member",
          "rows": 20,
          "fields": [
            {
              "name": "member_id",
              "type": "id",
              "unique": true
            },
            {
              "name": "name",
              "type": "person.fullName"
            }
          ]
        }
      ]
    },
    "flow_json": [
      {
        "project": "claims",
        "seed": 7,
        "output": {
          "format": "csv"
        },
        "world": "world.json",
        "borrows": [
          "Member"
        ],
        "entities": [
          {
            "name": "Member",
            "rows": 20,
            "fields": [
              {
                "name": "member_id",
                "type": "id",
                "unique": true
              }
            ]
          },
          {
            "name": "Claim",
            "rows": 30,
            "fields": [
              {
                "name": "claim_id",
                "type": "id",
                "unique": true
              },
              {
                "name": "member_id",
                "type": "id",
                "ref": "Member.member_id"
              }
            ]
          }
        ],
        "relationships": [
          {
            "from": "Claim.member_id",
            "to": "Member.member_id",
            "kind": "fk"
          }
        ]
      }
    ]
  }
}
```

A string argument that holds JSON is shown unescaped here; send it as a string.

## Example response

```json
{
  "contract_version": 3,
  "ok": true,
  "world_hash": "sha256:50a7eeb6195a3b47e40b3931f0e21b177852234b5f093554c2e3e9214f7f7ae1",
  "seed": 7,
  "entities": [
    {
      "name": "Member",
      "rows": 20
    }
  ],
  "flows_checked": 1,
  "problems": []
}
```

## Same step

- [prove_recipe](https://theworklens.com/docs/mcp/tools/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, 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…
- [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.
- [prove_recipe](https://theworklens.com/docs/mcp/tools/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,…
- [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: [score_realism](https://theworklens.com/docs/mcp/tools/score-realism) · Next: [sample_world](https://theworklens.com/docs/mcp/tools/sample-world) →_

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

_Canonical: https://theworklens.com/docs/mcp/tools/verify-world · This copy: https://theworklens.com/docs/mcp/tools/verify-world.md_
