Configure Agent Business Rules
configure_agent_business_rulesSafely add or replace a named operational rules section inside an agent inbound prompt, then route the prompt patch through the governed agent.patch broker. Use this for cross-business handoffs, callback language, alert promises, and client-specific operating rules without round-tripping the whole prompt manually.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace (default) or append. | |
| actor | No | Who is asking: { type: agent|human|system|integration, id, display_name }. | |
| rules | Yes | Plain-language operational rules to insert as bullets, e.g. callback capture, sister-location boundaries, urgent alert handling. | |
| dry_run | No | Validate and show the prompt patch metadata without writing. | |
| agent_id | Yes | KaiCalls agent ID to update | |
| authority | No | Attribution only. Caller-supplied authority cannot authorize live changes; authenticated owner review of the stored request is required. | |
| source_ref | No | External source reference, such as a support ticket or assistant conversation ID. | |
| business_id | No | Business ID. Required when the agent has multiple accessible assignments. | |
| section_title | No | Prompt section heading to replace/append. Default: Operational handoff rules. | |
| idempotency_key | No | Required for writes. Reuse the same key when retrying the same proposed prompt change. | |
| queue_for_approval | No | When authority is missing, create a pending dashboard approval instead of returning needs_approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| error | No | Present when success is false | |
| result | No | ||
| status | No | ||
| success | Yes | Whether the tool completed successfully | |
| summary | No | ||
| agent_id | No | ||
| approval | No | ||
| request_id | No | ||
| business_id | No | ||
| rules_count | No | ||
| section_title | No |