Cancel an agent rental (refund credits)
ucode_agent_cancelCancel an agent rental when no SMS arrived; credits return to the agent wallet. Requires the uc_live_ API key.
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": {
"id": "<id>",
"reason": "<reason>"
},
"name": "ucode_agent_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| reason | Yes | ||
| reasonNote | No |