# Tool directory

> All 13 tools the WorkLens MCP server exposes, grouped by the step they belong to, generated from the published contracts.

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

The MCP server exposes 13 tools. An agent drafts a recipe from what it can read, validates it, plans the packs it needs, generates, and proves the result — each step is a tool, and each tool’s contract (input schema, output schema, worked request and response) is published in the repository. This directory is generated from those contracts, so it is exactly what a connected client sees.

## The picture

Draft a recipe (3 of 13) → Validate (2 of 13) → Packs (2 of 13) → Generate (2 of 13) → Prove (4 of 13)

Each group is a step an agent takes; every tool sits in exactly one.

### Draft a recipe
Read the contract, or infer a recipe from what already exists.

- [get_recipe_schema](https://theworklens.com/docs/mcp/tools/get-recipe-schema): The recipe (GraphModel) authoring guide: JSON shape, every engine field type, FK conventions, rules and a working example. Call this FIRST, WITH A plan of what you are about to build (output csv or fixed, the constructs you expect, region, whether you are reading a repository): the reply then carries exactly what…
- [derive_graph](https://theworklens.com/docs/mcp/tools/derive-graph): Infer a data-free recipe (entity types, relationships) from a real sample file. Pass the file as base64. Use before generating relationship-preserving synthetic data.
- [analyse_openapi](https://theworklens.com/docs/mcp/tools/analyse-openapi): Analyse an OpenAPI 3.x / Swagger 2.0 spec (JSON string) and preview what a WorkLens import would produce: object entities with field counts and ref lists, inlined value-types, and cross-entity foreign keys. Use before recommending an import. Standalone entities are marked defaultSelected:false so a checklist can…

### Validate before generating
Catch what is wrong while it is still cheap.

- [validate_recipe](https://theworklens.com/docs/mcp/tools/validate-recipe): Validate an agent-drafted recipe before generating: structural checks, then a 1-row engine dry-run, then manifest.requires[] against the packs registered on this machine. Returns { valid, next_step, errors, warnings, findings, redirections, missing_packs, engine_check }; findings holds every error and warning, each…
- [sample_world](https://theworklens.com/docs/mcp/tools/sample-world): Generate a SMALL world (120 rows) and report what to check BEFORE paying for a large run. Catches what every other check passes: a declaration that is well-formed, satisfiable, and still constrains nothing. Findings are things to CHECK, not failures; clean: true says so explicitly. Call after validate_recipe, before…

### Packs
Plan, find and register the value packs a recipe needs.

- [plan_packs](https://theworklens.com/docs/mcp/tools/plan-packs): Turn a recipe into a pack requirement plan — and read the shelf off it: which packs are needed, which of those a pack on this machine already resolves (name, version, who reviewed it, expiry, SHA-256), which fields each satisfies, how many distinct values each must supply, and the fields that need no pack because the…
- [register_pack](https://theworklens.com/docs/mcp/tools/register-pack): Hand a pack you drafted back to the engine so generation can use it — a locale pack (datasets for a region) or a rule fragment (one type_def or one skeleton_def, then referenced from recipes as "sha256:<hash>"); the engine reads the kind from the shape. This CLOSES the loop validate_recipe opens: when it reports…

### Generate
Produce the data, locally.

- [generate_from_graph](https://theworklens.com/docs/mcp/tools/generate-from-graph): Generate every entity from a recipe with cross-entity foreign-key integrity. Use with a recipe validate_recipe accepts (yours, or one from derive_graph). By default one CSV per table is WRITTEN LOCALLY (./worklens-output, or $WORKLENS_OUT_DIR) and you receive row counts, all proof receipts…
- [generate_synthetic_data](https://theworklens.com/docs/mcp/tools/generate-synthetic-data): Generate realistic synthetic data from a recipe JSON. A recipe with several tables generates every table and replies like generate_from_graph (tables[] plus a note). No real data involved. Deterministic when a seed is given. By default the CSV is WRITTEN LOCALLY (./worklens-output, or $WORKLENS_OUT_DIR) and you…

### Prove
Consistency, privacy and the receipt — and realism against a real sample.

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

## Common questions

**Which tool do I call first?**

get_recipe_schema. It returns the recipe contract — every key, every field type, every rule — and the workflow the other tools expect. An agent that skips it will guess at syntax; one that reads it will not.

**Is this list the same as what my client shows?**

Yes. It is generated from the same published contracts the server registers, and the packaging check refuses to ship a build whose tool count differs.

## Related

- [Setup](https://theworklens.com/docs/mcp/setup): Connect WorkLens to ChatGPT, Claude, Cursor, VS Code, Claude Desktop or Claude Code: the studio's Connect to AI panel, a config entry, or the hosted connector.
- [Usage examples](https://theworklens.com/docs/mcp/examples): A real request for each MCP tool, taken from the published contract examples rather than written for the page.
- [Resources & prompts](https://theworklens.com/docs/mcp/resources): The 6 guide resources and 3 prompts the server publishes beside its tools, so an agent can read before it drafts.

_← Previous: [Setup](https://theworklens.com/docs/mcp/setup) · Next: [Usage examples](https://theworklens.com/docs/mcp/examples) →_

_One entry per tool folder; each one-line summary is the first paragraph of that tool’s README. Source: mcp-schemas/tools._

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