Skip to main content
Glama

agents_create

Creates a new agent with a unique key, role, instructions, and model, plus optional tools, memory stores, and knowledge bases.

Instructions

Create a new agent

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": {
      "key": "<key>",
      "role": "<role>",
      "description": "<description>",
      "instructions": "<instructions>",
      "model": "<model>"
    },
    "name": "agents_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesUnique agent key
pathNoProject pathExample
roleYesAgent role
modelYesModel ID, e.g. openai/gpt-4o
tools_jsonNoJSON array of tools
descriptionYesDescription
display_nameNoDisplay name
instructionsYesInstructions
system_promptNoCustom system prompt
max_iterationsNoMax iterations
model_temperatureNoTemperature (0-2)
max_execution_timeNoMax execution time
memory_stores_jsonNoJSON array of store keys
team_of_agents_jsonNoJSON array: [{key:...,role:...}]
knowledge_bases_jsonNoJSON array: [{knowledge_id:...}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden for a 15-parameter mutation tool, and it discloses nothing. It does not say whether the key must be unique, what happens if creation fails, what is returned (no output schema exists), or whether the agent is immediately invokable; the single sentence reveals none of this.

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

Conciseness3/5

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

The sentence contains no redundant wording, but at four words it is under-specified rather than genuinely concise. Brevity here costs information rather than saving it.

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

Completeness1/5

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

For a mutation tool with 15 parameters, 5 required, no annotations, and no output schema, the description is wholly inadequate. An agent gets no signal about required-field obligations, side effects, failure modes, or the shape of the result.

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 every one of the 15 parameters including the 5 required ones is documented in the schema itself. The description adds no meaning beyond that, which is the baseline 3 case when the schema does the heavy lifting.

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

Purpose2/5

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

"Create a new agent" is essentially the tool name expanded into a sentence: verb 'create' plus resource 'agent'. It conveys the basic operation but offers no differentiation from the many sibling create tools (tools_create, prompts_create, memory_stores_create) or from agents_update/agents_delete beyond the resource noun already in the name.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of what distinguishes creating an agent from updating one, and no mention of prerequisites such as the required key/role/model fields or any uniqueness constraint on 'key'. The agent must infer the entire invocation context from the schema.

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

Deploy Server

Other Tools