Skip to main content
Glama

Create Agent

create_agent

Create a new agent in the organization. Returns its agent_id.

Only the name and platform are needed. Source is uploaded next with
prepare_source_upload; no live connection is needed to scan or generate
probes.

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": {
      "name": "<name>",
      "platform": "<platform>"
    },
    "name": "create_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA name for the agent, up to 120 characters.
platformYesWhat the agent runs on: langgraph, hermes, openclaw, pi, agentforce, servicenow, http.
request_keyNoA random string (8-128 letters, digits, . _ : -) you generate once for this agent. If the call times out, retry with the same key: you get the agent the first call created instead of a duplicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent creation with no open-world access. The description adds value the annotations do not: it discloses the return value (`agent_id`) despite there being no output schema, and it clarifies that no live connection is required at this stage. It omits retry/duplicate semantics even though `request_key` exists for exactly that, which is the main residual gap.

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?

Front-loaded with purpose and return value, then the minimum-input constraint, then the next-step pointer. Every sentence carries information an agent would act on; nothing is padding.

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 three-parameter creation tool with no output schema, the description covers what it makes, what it returns, the required inputs, and the downstream step. Missing only duplicate/retry behavior and error/permission conditions, which would round it out for a non-idempotent mutating call.

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 the schema already explains `name` (120-char limit), the `platform` enum values, and the `request_key` retry contract in detail. The description only adds the summary that name and platform are the required pair, which is a marginal restatement rather than new meaning. Baseline 3 applies.

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

Purpose4/5

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

The first sentence gives a specific verb and resource (create an agent) plus the return value (`agent_id`), which distinguishes it immediately from sibling reads like `list_agents` or `get_agent_status`. It falls short of a 5 because it doesn't explicitly contrast with the other creation/connection siblings, though the second paragraph implies the ordering.

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?

It states the minimum required inputs ('Only the name and platform are needed') and routes the agent to the next step (`prepare_source_upload`), and it explicitly rules out a live connection for scanning/probe generation. That is clear workflow context, but it never names or excludes the alternative connection route (`prepare_agent_connection`), so the when-not guidance is only partial.

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.