update_profile
Updates an agent profile's configuration so only supplied fields change, while list fields replace stored lists; use it to adjust status, models, prompts, or settings.
Instructions
Update an agent profile's config. Only supplied fields change; list fields REPLACE the stored list (to add/remove ONE tool, KB source, MCP server, skill or sub-agent without re-sending the rest, use profile_attachments). Same audit trail as the portal.
`env` is the config branch the row is looked up in. `row_environment`
MOVES the row's own environment column (rarely what you want — promote
with promote_profile instead); `environment` is its deprecated alias.
`status`: one of active | draft | archived | specialist ('template' is
refused — that status is seeder-managed, fork one instead via
templates(action='use')). Setting status='active' is refused if
another row already serves this profile's (agent_kind, environment) as
status='active' + is_active=true — deactivate/archive that row first;
the core loader has no deterministic tie-break between two active rows.
`delegatable`: opt this profile in (or out) of being exposed to its
parent as an ask_<slug> delegation tool at runtime.
`agent_type`: the agent's user-defined category, by slug (manage the
list with agent_types). Organisational only — it does not change how
the agent runs, takes effect at once in every environment's row of the
same agent, and needs no promote.
`voice_config` is a FLAT block of voice settings since 2026-08-17 (the
duplex keys — barge_in_enabled, answer_watchdog_sec, agent_profile_slug,
persona_prompt_slug, the budget/ceiling knobs — sit at the top level; there
is no `live` sub-object any more). Both voice arguments REFUSE a top-level
`live` key: the runtime's compat shim resolves a nested block ALONE, so
re-creating one does not add a setting, it hides every flat key and takes
the agent's voice config offline silently.
`voice_config` REPLACES the entire column — passing
`{"barge_in_enabled": true}` WIPES every other voice key
(answer_watchdog_sec, agent_profile_slug, budget/ceiling knobs, ...),
and nothing reports it. Use
`voice_config_patch` instead to set one lever: it's deep-merged onto the
profile's CURRENT voice_config (nested dicts merged key-by-key; a
`null` value in the patch deletes that key; scalars/lists replace
wholesale) — see `admin.services.profiles.deep_merge_voice_config`. A row
still carrying the pre-unification nested shape is promoted to flat before
the merge, so patching also repairs it.
Passing both `voice_config` and `voice_config_patch` in the same call is
refused; pick one.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": {
"profile_id": "<profile_id>"
},
"name": "update_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| status | No | active | draft | archived | specialist ('template' refused). | |
| tool_ids | No | REPLACES the profile's tool list (use profile_attachments to add/remove one). | |
| is_active | No | Serve-able flag on the row. | |
| agent_type | No | Put the agent in this category: a category slug from agent_types(action='list'). '' or 'none' takes it out of its category. Omit to leave the category unchanged. | |
| profile_id | Yes | Profile to update. | |
| delegatable | No | Expose this profile to its parent as an ask_<slug> delegation tool. | |
| description | No | New description. | |
| environment | No | DEPRECATED alias of row_environment. | |
| display_name | No | New display name. | |
| voice_config | No | FULL REPLACE of the flat voice_config column (wipes every key not sent). Prefer voice_config_patch. | |
| endpoint_path | No | Route the agent is served on, e.g. /chat/stream. | |
| model_main_id | No | Main chat model (agent_models UUID). | |
| mcp_server_ids | No | REPLACES the legacy MCP label list (display only — runtime binding is profile_attachments kind=mcp). | |
| model_light_id | No | Light model (vestigial — the runtime ignores it). | |
| data_source_ids | No | REPLACES the profile's KB source list (use profile_attachments to add/remove one). | |
| row_environment | No | The row's own `environment` column (staging|prod). '' = default to `env` (create) or leave unchanged (update). | |
| prompt_version_ids | No | REPLACES the prompt pins: {prompt_key: prompt_version_id}. Prefer prompts action=serve for one slot. | |
| voice_config_patch | No | Deep-merge into the current voice_config (null deletes a key). Never send a nested 'live' block. | |
| downstream_profile_ids | No | REPLACES the sub-agent list (use profile_attachments kind=downstream). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |