validate_draft
Validate a draft YAML against the full rule set: offline rules always run, live network checks activate with dry_run=False, ensuring compliance before sending.
Instructions
Run the rule set against a draft. RED tier.
Offline rules R01-R16 always run. The live rules L01-L04 (authority exists, law is
offered, API default law, duplicate check) need the network and therefore only run
with ``dry_run=False``.
Args:
path: path to the draft YAML file.
dry_run: True (default) runs offline rules only and does not touch the file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "validate_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No |