Skip to main content
Glama

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

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
statusNoactive | draft | archived | specialist ('template' refused).
tool_idsNoREPLACES the profile's tool list (use profile_attachments to add/remove one).
is_activeNoServe-able flag on the row.
agent_typeNoPut 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_idYesProfile to update.
delegatableNoExpose this profile to its parent as an ask_<slug> delegation tool.
descriptionNoNew description.
environmentNoDEPRECATED alias of row_environment.
display_nameNoNew display name.
voice_configNoFULL REPLACE of the flat voice_config column (wipes every key not sent). Prefer voice_config_patch.
endpoint_pathNoRoute the agent is served on, e.g. /chat/stream.
model_main_idNoMain chat model (agent_models UUID).
mcp_server_idsNoREPLACES the legacy MCP label list (display only — runtime binding is profile_attachments kind=mcp).
model_light_idNoLight model (vestigial — the runtime ignores it).
data_source_idsNoREPLACES the profile's KB source list (use profile_attachments to add/remove one).
row_environmentNoThe row's own `environment` column (staging|prod). '' = default to `env` (create) or leave unchanged (update).
prompt_version_idsNoREPLACES the prompt pins: {prompt_key: prompt_version_id}. Prefer prompts action=serve for one slot.
voice_config_patchNoDeep-merge into the current voice_config (null deletes a key). Never send a nested 'live' block.
downstream_profile_idsNoREPLACES the sub-agent list (use profile_attachments kind=downstream).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does so: it discloses the destructive REPLACE semantics of every list and of voice_config (with the explicit warning that passing one key wipes the rest "and nothing reports it"), the deep-merge/delete-by-null semantics of voice_config_patch, the audit trail, and the silent-failure mode of a nested `live` block taking voice offline. That is exactly the class of consequence an agent cannot infer from a schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core contract and the most dangerous semantics (list replace, voice wipe) come before the peripheral ones. Some sentences carry incidental weight an agent does not need, notably the dated changelog framing ("since 2026-08-17"), the "there is no `live` sub-object any more" history, and the internal dotted path `admin.services.profiles.deep_merge_voice_config`.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter mutation tool with no annotations this covers the hazardous surface thoroughly, and the presence of an output schema means return values need not be described. The remaining gap is the interaction between status and is_active — is_active is only referenced inside the status='active' collision rule, so an agent gets no guidance on setting the serve-able flag independently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the field blurbs: the env / row_environment / deprecated `environment` three-way distinction and which one moves the row, the cross-parameter refusal of voice_config + voice_config_patch, and that agent_type is organisational only yet applies immediately in every environment without a promote. Some parameters (endpoint_path, model_main_id, model_light_id, display_name) get nothing beyond the schema, which keeps it off a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ("Update an agent profile's config") and immediately states the partial-update contract ("Only supplied fields change"). It also distinguishes itself from profile_attachments by naming that sibling and the exact case where it should be used instead (adding/removing ONE tool, KB source, MCP server, skill or sub-agent).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Alternatives are named with explicit routing conditions throughout: profile_attachments for single-item list edits, voice_config_patch for one voice lever, promote_profile for changing the row's environment, templates(action='use') for forking, agent_types for the category list. It also states hard refusals (status='active' when another active row exists, both voice arguments together, any top-level `live` key), which tells an agent when NOT to call as planned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.