MAAManaged Agents Anywhere
Docs›Build

Agents

Built. An agent is a stored, versioned configuration. Create it once and start many sessions from it.

Fields

Field Meaning
name, description Labels. A coordinator shows a callable agent's description to the model.
model A model offered in the agent's region, as a string ("claude-opus-5-5") or {id, effort}. Anything else is a 400. See Models and providers.
system The system prompt.
tools The built-in toolset, custom tools and MCP toolsets. See Tools.
mcp_servers Remote MCP servers by name and URL. Credentials go in a vault, never here.
multiagent Makes the agent a coordinator. See Outcomes and multi-agent.
region MAA addition. Defaults to the deployment's home region (uk-london). Agent, environment and session must agree.

Create

const agent = await client.beta.agents.create({
  name: "Analyst",
  model: "claude-opus-5-5",
  system: "You are a senior business analyst working for a UK client.",
  tools: [{ type: "agent_toolset_20260401" }],
});

Do this in a setup script and store agent.id. Do not create an agent on every run.

Versions

Every change makes a new version. Updates are optimistic: send the version you last read.

const v2 = await client.beta.agents.update(agent.id, { version: 1, system: "Be very brief." });
// v2.version === 2
for await (const v of client.beta.agents.versions.list(agent.id)) console.log(v.version);

A running session keeps the version it started with. New sessions use the latest unless you pin one: agent: { type: "agent", id, version }.

Change one session only

To run with a different model, prompt or tools once, start the session with agent_with_overrides and leave the stored agent alone. See Sessions and events.

Archive

POST /v1/agents/{id}/archive makes an agent read-only. New sessions cannot use it; running ones continue. There is no unarchive.

Templates

MAA addition. GET /v1/templates lists ready-made agents (lessons learned, consultant, sprint facilitator, company analyst, bid writer, policy checker, research coordinator). POST /v1/templates/{id}/instantiate creates the agent and its environment in your account.

Endpoints

POST /v1/agents · GET /v1/agents · GET /v1/agents/{id} · POST /v1/agents/{id} (update) · POST /v1/agents/{id}/archive · GET /v1/agents/{id}/versions