Constraints and Safety Translation
Safety metadata from the manifest translates to the tool's safety object, enabling agent runtimes to enforce guardrails.
Safety Object
Safety object — high-risk mutating operation
{
"safety": {
"execution_type": "mutate",
"risk_level": "high",
"idempotent": false,
"confirmation_required": true,
"approval_required": false,
"preconditions": ["cart_validated", "inventory_reserved"],
"postconditions": ["checkout_session_created"],
"side_effects": ["inventory_locked", "payment_hold_created"],
"rate_limit": "10/minute"
}
}
Agent Runtime Enforcement
Agent runtimes consuming tools with safety metadata SHOULD:
- Check preconditions before invocation
- Request confirmation for operations where
confirmation_requiredis true - Submit approval requests where
approval_requiredis true - Respect rate limits
- Log side effects for audit trails