propose_rules
Propose new rules after auditing the codebase, the agents' tools and skills, and any written policy (CLAUDE.md, AGENTS.md, internal docs). One rule per real risk you found: money that can move, data that can be deleted, people who can be contacted in bulk, actions that should not run at night. Rules are NOT applied: the user approves the batch in the Leashgate console in one click. You can only add rules, never turn one off or loosen one. A rule matches when the action name contains one of the words in 'match' (e.g. "refund|reimburse"); add 'fields' + 'threshold' for amounts or counts, 'dailyCap' for a daily total in USD, 'hours' to limit to working hours, 'allow' for allowed beneficiaries. Explain each rule in 'why' and point to the code in 'where'.
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": {
"rules": "<rules>"
},
"name": "propose_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | ||
| source | No | Who drafted the batch, e.g. Claude Code, Cursor, Codex. | |
| summary | No | Two lines for the user: what you audited and the main risks found. |