Set an agent's limits
phlece_set_policySpending caps (per 24 hours and per call, in USDC), approved providers, and which actions Phlece may prepare for an agent wallet (trade, launch, jobs, payments). The first policy is signed by the agent wallet itself and names its owner; afterwards only the owner can change it. Call once without signature to get the message, then again with issued and signature.
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": {
"agentWallet": "<agentWallet>"
},
"name": "phlece_set_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow | No | Which kinds of action Phlece may prepare; anything not set true is refused. | |
| owner | No | The wallet that controls this policy (default: unchanged, or the agent wallet for a first policy). | |
| issued | No | ||
| signature | No | ||
| agentWallet | Yes | ||
| dailyCapUsdc | No | Most USDC Phlece may prepare for this wallet per 24 hours. Omit for no cap. | |
| perCallCapUsdc | No | Most USDC for one trade, launch, job payment or x402 call. Omit for no cap. | |
| approvedProviders | No | Provider listing ids allowed for payments; empty = any. |