Skip to main content
Glama

Create agents

create_agents

Create multiple agents at once and save them. Returns the created agents with their new IDs. Prefer this over calling create_agent repeatedly when the plan needs more than one new agent — one tool call instead of many avoids context bloat and timeout risk. Each input item supports the same fields as create_agent plus a role string that is echoed back in the response so callers can key results by role.

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": {
      "agents": "<agents>"
    },
    "name": "create_agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentsYesArray of agent specs to create. Each item must include name, description, type, tools, system_prompt. Optional: role, model, repos, db_configs, memory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare it a non-read-only, non-destructive, non-idempotent write, so the description builds on top: it confirms the agents are persisted ("save them"), states the response includes new IDs, and discloses the operational rationale (timeout risk, context bloat). One meaningful gap remains — it never says what happens if one item in the array is invalid, which matters for a batch mutation.

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

Conciseness5/5

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

Three sentences, each doing distinct work: purpose and return value, then the sibling routing rule, then the input/echo contract. Front-loaded and free of restatement.

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?

With no output schema, the description correctly covers the return value, and annotations handle the safety profile. For a single-array batch-creation tool the remaining omission is failure/atomicity semantics — whether a bad spec aborts the whole batch — which an agent would reasonably want before submitting many agents.

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% with thorough nested descriptions, so the baseline is 3; the description earns above that by adding a cross-tool contract ("same fields as `create_agent` plus a `role` string") and clarifying that role is echoed back rather than persisted, which lets callers correlate results. It does not, however, add anything about the required agent fields beyond pointing at the sibling.

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 and resource with explicit scope: "Create multiple agents at once and save them," plus what comes back ("the created agents with their new IDs"). The batch framing immediately separates it from the singular `create_agent` sibling.

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?

Gives an explicit routing rule with the alternative named: "Prefer this over calling `create_agent` repeatedly when the plan needs more than one new agent," and justifies it (context bloat, timeout risk). An agent can decide between the two without further inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.