set_policy
[USER ONLY] Submit a new policy version. Must carry the user's wallet EIP-191 signature over the policy document; accepted only after signature + version-chain checks pass. Agents MUST NOT call this tool.
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": {
"owner": "<owner>",
"scope": "<scope>",
"version": "<version>",
"nl_rule": "<nl_rule>",
"prev_hash": "<prev_hash>",
"created_at": "<created_at>",
"signature": "<signature>"
},
"name": "set_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Owner wallet address that scopes policy, budget and audit state | |
| scope | Yes | Policy scope: user for the owner default or agent for one agent | |
| nl_rule | Yes | Natural-language spending rule to compile and enforce | |
| version | Yes | Monotonically increasing policy version number | |
| agent_id | No | Optional agent identifier for agent-scoped policy or attribution | |
| prev_hash | Yes | Previous policy hash, or 64 zero characters for a genesis policy | |
| signature | Yes | Owner wallet EIP-191 signature over the policy document | |
| created_at | Yes | Policy creation time as a Unix timestamp in seconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |