agent_tool_contract
Define per-operation authorization and recovery contracts for agent tools, including resource scope, approval requirements, duration limits, and reversibility, to control risky actions.
Instructions
Design a per-operation authorization and recovery contract for an agent 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": {
"operation": "<operation>",
"resourceScope": "<resourceScope>",
"approvalRequired": "<approvalRequired>",
"maxDurationSeconds": "<maxDurationSeconds>",
"reversible": "<reversible>"
},
"name": "agent_tool_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| reversible | Yes | ||
| resourceScope | Yes | ||
| approvalRequired | Yes | ||
| maxDurationSeconds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| sources | No | ||
| contract | No | ||
| operation | No | ||
| validated | No | ||
| limitation | No | ||
| reversible | No | ||
| resourceScope | No | ||
| approvalRequired | No | ||
| maxDurationSeconds | No |