Skip to main content
Glama

Create Agent

create_agent

Create a new KaiCalls agent — the secretary that answers this business’s calls (the live voice agent plus KaiCalls records) — with a system prompt, greeting, voice, and model. Mirrors POST /api/v1/agents. Every subsequent mutation to this agent is versioned (assistant_config_versions) and reversible via rollback_config — inspect history with get_change_history / list_config_versions. Compliance: KaiCalls automatically applies state-aware AI-disclosure and consent handling to every agent it provisions, and flags high-risk business categories for extra review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAgent display name.
modelNoLanguage model selection: { provider, model, temperature } (optional).
voiceNoRaw voice selection: { provider, voiceId } (optional).
metadataNoExtra KaiCalls metadata to store (optional).
business_idYesBusiness ID to create the agent under.
first_messageNoSpoken greeting (optional).
system_promptYesThe agent's inbound system prompt / instructions.
voice_catalog_idNoPreferred: a curated catalog id from list_voices (optional).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentNo
errorNoPresent when success is false
successYesWhether the tool completed successfully
complianceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations (readOnlyHint=false, openWorldHint=true) already indicate a mutating, open-world operation. The description adds valuable behavioral context: every mutation is versioned and reversible via rollback_config, and it discloses that compliance features (AI-disclosure, consent handling) are automatically applied. It does not contradict annotations and enriches the safety profile beyond what annotations convey.

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

Conciseness4/5

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

The description is structured and efficient: it front-loads the core purpose in the first sentence, then adds versioning and compliance details in subsequent sentences. It avoids redundant phrasing and each sentence carries distinct information. It is slightly longer than strictly necessary but remains clear and well-organized.

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 an output schema present and annotations covering the basic safety profile, the description covers the essential context: it defines the agent concept, notes the versioning/reversibility mechanism, and highlights compliance behavior. It does not detail error handling or return values, but these are either covered by the output schema or less critical for an initial creation 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 coverage is 100%, so the schema fully documents all 8 parameters. The description adds a few semantic hints (e.g., voice_catalog_id is 'preferred', the agent concept as a 'secretary'), but these are marginal and do not substantially supplement the schema. The baseline of 3 is appropriate given high coverage.

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 action (create) and the resource (a KaiCalls agent) with a specific definition ('the secretary that answers this business’s calls'). It also names the endpoint it mirrors (POST /api/v1/agents) and enumerates the key configuration inputs (system prompt, greeting, voice, model), which distinguishes it from siblings like update_agent_config and list_agents.

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

Usage Guidelines3/5

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

The description implies this is the creation tool by mentioning 'Every subsequent mutation to this agent is versioned' and referencing rollback_config and history tools, but it does not explicitly state when to use this vs. alternatives (e.g., 'use update_agent_config for existing agents'). The context is clear but the guidance is implicit rather than directive.

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.