# Usage examples

> A real request for each MCP tool, taken from the published contract examples rather than written for the page.

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

Every tool contract ships with worked requests. These are the primary examples, one per tool, exactly as an MCP client would send them. Long inputs are truncated for the page; the full files sit beside each tool’s schema in the repository.

## get_recipe_schema

```json
{
  "_comment": "The first call an agent makes. The drafting core (~37 KB); task_discovery, scenario_playbook and pack_authoring arrive as stubs naming when each is required and how to fetch it.",
  "name": "get_recipe_schema",
  "arguments": {}
}
```

## derive_graph

```json
{
  "_comment": "A two-row CSV, base64-encoded.",
  "name": "derive_graph",
  "arguments": {
    "file_base64": "Y3VzdG9tZXJfaWQsbmFtZSxlbWFpbCxhbW91bnQKMSxBZGEgTG92ZWxhY2UsYWRhQGV4YW1wbGUudGVzdCwxMjAuNTAKMixBbGFuIFR1cmluZyxhbGFuQGV4YW1wbGUudGVzdCw5OS4wMAo=",
    "format": "csv"
  }
}
```

## analyse_openapi

```json
{
  "_comment": "Two schemas and one reference.",
  "name": "analyse_openapi",
  "arguments": {
    "spec_json": {
      "openapi": "3.0.0",
      "info": {
        "title": "shop",
        "version": "1"
      },
      "paths": {},
      "components": {
        "schemas": {
          "Customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "Order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "customer": {
                "$ref": "#/components/schemas/Customer"
              },
              "total": {
                "type": "number"
              }
            }
          }
        }
      }
    }
  }
}
```

## validate_recipe

```json
{
  "_comment": "The shipped insurance-group recipe: 20 entities, 23 foreign keys, eight scenarios.",
  "name": "validate_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",
           
```

## plan_packs

```json
{
  "_comment": "The bill-of-materials recipe planned for packs, with the shelf read off the plan as of a run date.",
  "name": "plan_packs",
  "arguments": {
    "graph_json": {
      "$schema": "https://theworklens.com/schema/recipe/v1.json",
      "version": 1,
      "project": "bike-assembly",
      "region": "NZ",
      "seed": 4242,
      "output": {
        "format": "csv"
      },
      "manifest": {
        "name": "bike-assembly",
        "version": "1.0.0",
        "owner": "worklens-reference",
        "domain": "manufacturing"
      },
      "entities": [
        {
          "name": "Part",
          "rows": 40,
          "fields": [
            {
              "name": "part_id",
              "type": "id",
              "unique": true
            },
            {
              "name": "part_name",
              "type": "enum",
              "values": [
                "Frame",
                "Fork",
                "Front wheel",
                "Rear wheel",
                "Chain",
                "Crankset",
                "Saddle",
                "Handlebar",
                "Brake caliper",
                "Derailleur"
              ]
            },
            {
              "name": "supplier_name",
              "type": "person.fullName"
            },
            {
              "name": "nhi",
              "type": "id",
              "unique": true
  
```

## register_pack

```json
{
  "_comment": "A drafted locale pack, persist:false so nothing is written.",
  "name": "register_pack",
  "arguments": {
    "pack_json": {
      "schema_version": 2,
      "pack_manifest": {
        "name": "demo-locale",
        "version": "1.0.0",
        "provides": [
          "locale:zz.names"
        ],
        "owner": "worklens-reference"
      },
      "pack_provenance": {
        "method": "drafted",
        "drafted_by": "worklens-reference",
        "drafted_at": "2026-01-01",
        "reviewed_by": null,
        "basis": "Illustrative pack written to document the register_pack contract. Not real data.",
        "caveats": [
          "Three names. Never use this for anything but reading the schema."
        ]
      },
      "scope": {
        "region": "ZZ"
      },
      "datasets": {
        "given_names": {
          "columns": [
            {
              "name": "given",
              "role": "person.givenName"
            }
          ],
          "rows": [
            [
              "Ada"
            ],
            [
              "Alan"
            ],
            [
              "Grace"
            ]
          ]
        }
      }
    },
    "persist": false
  }
}
```

## generate_from_graph

```json
{
  "_comment": "The base recipe under `orphans`: metadata-first, so receipts and file handles come back rather than rows.",
  "name": "generate_from_graph",
  "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_
```

## generate_synthetic_data

```json
{
  "_comment": "A one-table invoice recipe: the DEFAULT mode - receipts and a file handle, no rows.",
  "name": "generate_synthetic_data",
  "arguments": {
    "schema": {
      "pack_manifest": {
        "name": "au-invoice",
        "version": "1.0.0",
        "provides": [
          "domain:au-invoice"
        ],
        "owner": "worklens"
      },
      "project": "au-invoice",
      "region": "AU",
      "entities": [
        {
          "name": "invoice",
          "rows": 50,
          "fields": [
            {
              "name": "invoice_id",
              "type": "id",
              "unique": true
            },
            {
              "name": "abn",
              "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": "## ### ### ###",
                "defects": {
            
```

## score_realism

```json
{
  "_comment": "Twenty invoices compared with the shape of an eight-row sample on disk - its path is sent, never its values.",
  "name": "score_realism",
  "arguments": {
    "schema": {
      "pack_manifest": {
        "name": "au-invoice",
        "version": "1.0.0",
        "provides": [
          "domain:au-invoice"
        ],
        "owner": "worklens"
      },
      "project": "au-invoice",
      "region": "AU",
      "entities": [
        {
          "name": "invoice",
          "rows": 50,
          "fields": [
            {
              "name": "invoice_id",
              "type": "id",
              "unique": true
            },
            {
              "name": "abn",
              "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": "## ### ### ###",
                "defects":
```

## verify_world

```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"
     
```

## sample_world

```json
{
  "_comment": "The clinic recipe: a vacuous scope, an unconstrained self-ref and a contradicted `expect`.",
  "name": "sample_world",
  "arguments": {
    "graph_json": {
      "$schema": "https://theworklens.com/schema/recipe/v1.json",
      "version": 1,
      "project": "clinic-network",
      "region": "AU",
      "seed": 20260901,
      "output": {
        "format": "csv"
      },
      "manifest": {
        "name": "clinic-network",
        "version": "1.0.0",
        "owner": "worklens-reference",
        "domain": "healthcare"
      },
      "discovery": {
        "sealed": [
          "foreign-key",
          "cross-entity-agreement",
          "ordered-timestamps",
          "state-machine",
          "composite-unique-key",
          "computed-column",
          "columns-that-must-agree",
          "skewed-parent-child-counts",
          "real-world-value-kind",
          "checksum-validated-identifier",
          "data-quality-machinery",
          "conditional-field",
          "numeric-threshold",
          "segment-specific-ranges",
          "category-drives-behaviour",
          "recursive-structure",
          "stored-total",
          "money-or-skewed-numbers",
          "reproducible-fixture",
          "known-bad-case",
          "volume-sensitive-path",
          "elapsed-time-threshold",
          "seasonality",
          "regulated-identifier"
        
```

## prove_recipe

```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_privacy

```json
{
  "_comment": "Re-identification risk on a small, low-cardinality world.",
  "name": "check_privacy",
  "arguments": {
    "graph_json": {
      "$schema": "https://theworklens.com/schema/recipe/v1.json",
      "version": 1,
      "project": "bike-assembly",
      "region": "NZ",
      "seed": 4242,
      "output": {
        "format": "csv"
      },
      "manifest": {
        "name": "bike-assembly",
        "version": "1.0.0",
        "owner": "worklens-reference",
        "domain": "manufacturing"
      },
      "entities": [
        {
          "name": "Part",
          "rows": 40,
          "fields": [
            {
              "name": "part_id",
              "type": "id",
              "unique": true
            },
            {
              "name": "part_name",
              "type": "enum",
              "values": [
                "Frame",
                "Fork",
                "Front wheel",
                "Rear wheel",
                "Chain",
                "Crankset",
                "Saddle",
                "Handlebar",
                "Brake caliper",
                "Derailleur"
              ]
            },
            {
              "name": "supplier_name",
              "type": "person.fullName"
            },
            {
              "name": "nhi",
              "type": "id",
              "unique": true
            },
            {
           
```

## 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.
- [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.

_← Previous: [Tool directory](https://theworklens.com/docs/mcp/tools) · Next: [Resources & prompts](https://theworklens.com/docs/mcp/resources) →_

_The primary example request for each tool. Source: mcp-schemas/tools/*/example-request.json._

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