run_demo
Generate 60 days of synthetic payment data with planted issues, then patrol it to demo DataRanger reports and test result handling without touching real data.
Instructions
Run a patrol on generated sample data, to see what DataRanger reports without touching real data.
Generates 60 days of synthetic payment transactions with planted problems (duplicates, missing days,
orphan rows, wrong amounts and some harmless decoys), then patrols them exactly as patrol_duckdb and
patrol_files do. Use this to try DataRanger, to show a user the report format, or to test your own
handling of the results. Use patrol_duckdb or patrol_files for real tables.
Behavior: needs no input data, credentials or network. The only side effect is writing the report
files (dashboard.html, audit.jsonl, incidents.csv, fixed_version.csv) to out_dir. Takes a few seconds.
Returns the same summary as the patrol tools: counts, needs_a_person, all_incidents and outputs.
Pass outputs.folder and a partition to get_incident for the evidence behind one decision.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_demo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for the generated data. The same seed on the same day gives the same table. | |
| out_dir | No | Folder to write the report files into. Created if missing; report files already there are overwritten. Omit to use a new temporary folder; its path comes back in outputs.folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| table | Yes | ||
| outputs | Yes | ||
| escalate | Yes | ||
| incidents | Yes | ||
| auto_fixed | Yes | ||
| rows_checked | Yes | ||
| all_incidents | Yes | ||
| gate_threshold | Yes | ||
| needs_a_person | Yes | ||
| no_action_needed | Yes |