Skip to main content
Glama

Change an agent's model / provider / account

update_agent_settings
Idempotent

Change an agent's provider, model, reasoning effort, or provider account. Use it to switch models or accounts; provider and account changes apply once the agent is idle.

Instructions

Change an agent's provider, model, reasoning effort and/or provider account (same as the model and account controls in OpenBot). model alone picks the provider that lists it; provider alone uses its default model. Provider/account changes wait until the agent is idle (409 while it works). Invalid model/effort gives 409 with the valid values.

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": {
      "agent": "<agent>"
    },
    "name": "update_agent_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent ID or agent name (case-insensitive), as list_agents shows it.
modelNoe.g. claude-opus-5-5
providerNoe.g. claude, codex, grok
reasoningEffortNoe.g. low, medium, high
providerAccountIdNoAccount ID from Settings > Providers, "default" for the provider's own sign-in, or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare mutating, idempotent, non-destructive, closed-world, so the description correctly focuses on behavior the annotations cannot convey: provider/account changes block until the agent is idle and return 409 while it works, and invalid model/effort return 409 with the valid values. It does not state what a successful call returns, which keeps it off a 5.

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?

Three tight sentences, front-loaded with the action and followed by selection rules then failure modes. The OpenBot analogy is a useful anchor rather than filler, though the parenthetical is slightly awkward.

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 5-parameter mutation tool with no output schema, it covers what can be changed, how partial specifications resolve, and the two documented failure modes. Only the success response shape is left implicit, which is a minor gap given the tool's low complexity.

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 cross-parameter meaning: model alone selects the provider that lists it, and provider alone falls back to its default model. That interaction is not derivable from the per-field schema descriptions.

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?

States a specific verb ('Change') plus the exact resource and the four mutable fields (provider, model, reasoning effort, provider account). It is unmistakable against siblings like create_agent or list_agents, which do different things to the same resource.

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

Usage Guidelines4/5

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

Gives clear situational context ('same as the model and account controls in OpenBot') and the conditional rules that decide which parameter to pass. It stops short of explicit when-not-to-use or naming an alternative tool, so it is not a full 5.

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