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…
Last updated 2026-09-13 · Generated from mcp-schemas/tools/10-verify_world · Markdown
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.
Inputs and outputs
- 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
{
"_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
{
"contract_version": 3,
"ok": true,
"world_hash": "sha256:50a7eeb6195a3b47e40b3931f0e21b177852234b5f093554c2e3e9214f7f7ae1",
"seed": 7,
"entities": [
{
"name": "Member",
"rows": 20
}
],
"flows_checked": 1,
"problems": []
}