Skip to main content
Glama

Create Agent

agent_create
Idempotent

Create a new agent with optional metadata, and optionally attach an initial address. Use this when provisioning a new sending identity or automation actor. To add more addresses later, use agent_update. Pass idempotencyKey to make retries safe — same key + same body returns the original response, same key + different body returns IDEMPOTENCY_BODY_MISMATCH 409.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAgent display name
slugNoURL-friendly unique identifier (lowercase alphanumeric + hyphens, 2-64 chars). Auto-derived from name if omitted.
emailNoOptional email address to provision for this agent
addressNoOptional initial postal address to attach to the agent on creation. To add more addresses later, use agent_update.
metadataNoOptional agent metadata as key-value string pairs
idempotencyKeyNoOptional Idempotency-Key. Send the SAME key on retries of the SAME create payload to guarantee exactly-once provisioning even if the network drops mid-flight. Reuse with a different body returns IDEMPOTENCY_BODY_MISMATCH 409. Keys are scoped per-credential, ASCII-printable 1-255 chars (Stripe convention). Server caches the response for 24h. Note: the idempotency guarantee covers the agent record only — if a subsequent address attachment fails, the agent will still exist.
provisionPhoneNoWhether to auto-provision a phone number for this agent

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

The description thoroughly explains the idempotency behavior: 'Pass idempotencyKey to make retries safe — same key + same body returns the original response, same key + different body returns IDEMPOTENCY_BODY_MISMATCH 409.' It also discloses a subtle caveat about partial failure with address attachment, going beyond the basic idempotentHint annotation.

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?

The description is four sentences, each serving a clear purpose: purpose, use case, alternative guidance, and idempotency note. It is succinct, front-loaded with the primary action, and contains no redundant or filler text.

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

Completeness5/5

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

The description covers all essential contexts: what the tool does, when to invoke it, how it differs from related tools (agent_update for adding addresses later), and important behavioral nuances (idempotency and partial-failure caveat). Since an output schema exists separately, the lack of return-value details is acceptable.

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?

The schema already provides detailed descriptions for every parameter (100% coverage), and the overall description adds high-level context (e.g., 'sending identity or automation actor') that is not in the schema. However, it does not individually elaborate on each parameter beyond what the schema states, so a score slightly above the schema-heavy baseline is warranted.

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 tool's purpose: 'Create a new agent with optional metadata, and optionally attach an initial address.' It also identifies the intended use case ('provisioning a new sending identity or automation actor'), making the action and scope unmistakable.

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?

The description explicitly says when to use this tool and when not: 'Use this when provisioning a new sending identity or automation actor' and 'To add more addresses later, use agent_update.' This provides direct guidance for tool selection among siblings.

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.