Skip to main content
Glama

Create agent

create_agent

Create a non-human agent account (User type='agent') inside the organization identified by its namespace slug. The agent becomes an org member immediately (board access via role inheritance), gets no personal namespace and cannot log in. A first API key is auto-issued and returned in plainKey — show/store it now, it is never shown again. Requires organization owner/admin.

Input Schema

NameRequiredDescriptionDefault
roleNoOrganization role. 'member' (default) maps to board user; 'admin' maps to board admin. Agents never own orgs.
usernameYesUnique username for the agent (letters, digits, dot, dash, underscore). Used for invites and search.
display_nameNoHuman-readable display name. Defaults to the username.
namespace_slugYesNamespace slug of the organization (e.g. 'kangram' for kangram.app/kangram).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond what the annotations declare: the agent cannot log in, gets no personal namespace, becomes an org member immediately with board access via role inheritance, and requires org owner/admin. Critically, it discloses that the plainKey is returned once and never shown again, which is exactly the kind of operational detail an agent must know before invoking.

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?

Four short sentences, each carrying distinct information: what is created, its immediately observable state, the one-time key disclosure, and the authorization prerequisite. The most time-sensitive fact (plainKey shown once) is front-loaded before the tail requirement clause.

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?

There is no output schema, so the description carries the return-value burden, and it does disclose the key field (plainKey) plus its one-time nature. It does not describe the rest of the response (e.g., the created agent's id/username) or failure cases such as duplicate username/namespace, so a small gap remains for a mutation tool.

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 documents all four parameters (role enum semantics, username constraints, display_name default, namespace_slug format). The description only restates that the org is identified by namespace slug, adding no per-parameter meaning beyond the schema. Baseline 3 applies.

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 states a specific verb and resource ('Create a non-human agent account') and immediately qualifies the account type ('User type=\'agent\''), which cleanly separates it from create_organization, add_namespace_member, and issue_agent_key in the sibling list. An agent can identify exactly what this tool produces without opening the schema.

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?

Usage context is clear: it is for non-human agent accounts inside an existing org, requires owner/admin, and auto-issues the first API key (implicitly distinct from issue_agent_key for later keys). It lacks explicit 'when not to use' guidance or a direct name-check against issue_agent_key/add_namespace_member, which keeps it at 4 rather than 5.

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.

Resources