Skip to main content
Glama

create_agent

Create or update a pooled agent for a specific task, assigned a stable key for retrieval and reuse.

Instructions

Assemble an agent for a task and store it in the pool under agent_key, returning the stored entry — the create/update entry point an orchestrating agent uses to stand up a new pooled agent (or re-assemble an existing one).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional display name; auto-slugged from the task when omitted.
tagsNoOptional routing tags to narrow recall and to label the stored entry.
taskYesWhat the generated agent should do — the job it is being built to perform.
teamNoName of the team that owns the generated agent.default
modelNoWhich model the agent runs on; `inherit` defers to the caller's model.inherit
pinnedNoCapability ids to force into the selection regardless of relevance score.
agent_keyYesStable external identifier for the pooled agent a caller manages — assign your own scheme (a ticket id, a slug, a UUID, anything meaningful to your use case). The pool's logical lookup key; distinct from the human-readable display name, and distinct from the harness's per-dispatch `AgentId`.
reset_sessionNoWhen True, mint a fresh session UUID even if the id already exists.
system_promptNoA full system-prompt override; when omitted, one is templated from the task and the selected tools/skills.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYes
nameYesThe agent's unique name — lowercase letters, digits, and dashes.
specYesThe canonical agent definition the pipeline assembles and the Claude Agent SDK emitter renders into a runnable program. `tools` and `mcp_servers` are kept separate here; the merged SDK tool-grant is derived at emission by `engine.render.tool_grant`.
agent_keyYesStable external identifier for the pooled agent a caller manages — assign your own scheme (a ticket id, a slug, a UUID, anything meaningful to your use case). The pool's logical lookup key; distinct from the human-readable display name, and distinct from the harness's per-dispatch `AgentId`.
created_atYes
session_idYesThe Claude Agent SDK session UUID a pool entry pins and resumes — a lowercase-hex UUID, generated internally, never the human-readable pool name.
updated_atYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions storing and returning an entry, and implies upsert behavior (re-assemble existing). However, it lacks disclosure of important behavioral traits such as authentication requirements, rate limits, side effects of overwriting, or details on what happens when agent_key exists (update vs error).

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?

The description is a single sentence that is informative and front-loaded with the main action. It could be slightly more concise but is not overly verbose. Effective for its length.

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?

Given the tool's complexity (9 parameters, create/update semantics) and the presence of an output schema (not shown but indicated as true), the description adequately covers the tool's role as the pool entry point, storage under agent_key, and return of stored entry. Some minor gaps remain (e.g., explicit mention of idempotency), but overall sufficient.

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

Parameters3/5

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

Schema description coverage is 100%, so each parameter is already well-documented. The tool description adds high-level context but does not significantly enhance understanding of individual parameters beyond what the schema provides. Thus, baseline 3 is appropriate.

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 description clearly states the verb (assemble and store) and the resource (agent in the pool). It distinguishes itself from sibling tools by being the only create/update entry point, with explicit mention of 'create/update' and 'stand up a new pooled agent or re-assemble an existing one'.

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?

The description indicates when to use it (to create or update a pooled agent) and implies it is for orchestration. It does not explicitly state when not to use it, but the sibling tools (list, get, delete, run) provide clear alternatives for other operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Magic-Man-us/claude-sdk-agent-fleet'

If you have feedback or need assistance with the MCP directory API, please join our Discord server