Skip to main content
Glama

Create an agent

create_agent

Save an agent for calls, texts, and email replies.

The saved instructions and enabled channels apply when a number or email address routes to this agent. Saving the agent does not change existing routing. The call agent can hand over to listed contacts without seeing their phone numbers.

Without a voice override, the built-in providers use the deployment's configured voice. A workspace provider uses its configured voice or its own default. An omitted language uses the speech providers' defaults (English). Without a tool list, the workspace's channels determine the available tools. The workspace call limit applies unless overridden, and the handover limit defaults to 30 minutes from the contact answering.

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

Input Schema

NameRequiredDescriptionDefault
nameYesAgent display name.
toolsNoNames of the tools the agent may use during a call or reply. Omitted: every tool the workspace's channels support. An empty list: none, except that a call keeps the tools every call needs (end_call, send_dtmf and Hail's settings guide). HTTP tools stay on. Hail adds call transfer when handover contacts are configured.
languageNoSpoken language on calls, such as ``es`` for Spanish.
voice_idNoText-to-speech voice ID: one of Hail's voices, or a voice from the provider of the workspace's own speech key. Any other voice is refused.
knowledgeNoWhether this agent answers calls, texts and email from the workspace's knowledge base (``add_knowledge_document``). Needs the knowledge base turned on for the workspace by Hail support.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.
http_toolsNoUp to ten customer APIs the agent may call during calls, texts and email. Each entry: ``name`` (letters, digits, _), ``description`` (read by the model), ``url`` (public https), optional ``parameters`` (JSON Schema, type object), ``headers`` (static, stored encrypted, returned as names only), ``timeout_seconds`` (1 to 10, default 5) and ``wait_message`` (said on a call while waiting). The list replaces the saved one; an empty list removes it. On update, an entry without ``headers`` keeps the saved headers of the same name while the url keeps its host; a url on a new host needs ``headers`` again. The first save returns ``http_tool_secret`` once; requests carry ``X-Hail-Signature`` signed with it.
sms_enabledNoWhether this agent answers texts on numbers whose texts route to it.
ai_disclosureNoSpeak the AI disclosure line first on every call.
email_enabledNoWhether this agent replies to mail on addresses routed to it.
first_messageNoGreeting spoken after the AI disclosure, as written, except that a hello the disclosure already said is usually left out (not on a customer's own model, workspace or per call). Without one, an inbound agent waits for the caller.
system_promptYesInstructions that define the agent's behavior on calls, texts and email replies.
voice_enabledNoWhether this agent answers calls on numbers whose calls route to it.
handover_contactsNoUp to ten ``{contact_id, note}`` entries for people a call can be handed over to. ``contact_id`` is an ID from ``list_contacts``, ``lookup_contact`` or ``create_contact`` (a UUID or ``member:<user_id>``); the contact needs a phone number. ``note`` (1 to 200 characters) says when the agent hands over to that person, such as ``billing questions``.
integration_toolsNoTools of the workspace's connected tools to turn on for this agent, for example zendesk_find_tickets, zendesk_create_ticket and zendesk_update_ticket. Separate from ``tools``. They work once the integration is connected in the console (Integrations).
recording_enabledNoRecording preference for this agent's calls, overriding the workspace setting.
ai_disclosure_lineNoCustom AI disclosure line replacing the workspace line. ``{org}`` expands to the organization name.
max_duration_secondsNoLongest a call with this agent may last, in seconds, counted from pickup. At the limit the agent says goodbye and hangs up.
handover_max_duration_secondsNoLongest a call may last after a handover contact answers, in seconds, counted from that answer.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / voice_id / description
      Previous value: -"Text-to-speech voice ID from the voice provider that serves the call, such as an ElevenLabs voice ID."New value: +"Text-to-speech voice ID: one of Hail's voices, or a voice from the provider of the workspace's own speech key. Any other voice is refused."
  2. Changed1 schema field changed
    • changedInput schema / properties / first_message / description
      Previous value: -"Greeting spoken after the AI disclosure. Without one, an inbound agent waits for the caller."New value: +"Greeting spoken after the AI disclosure, as written, except that a hello the disclosure already said is usually left out (not on a customer's own model, workspace or per call). Without one, an inbound agent waits for the caller."
  3. Changed2 schema fields changed
    • addedInput schema / properties / integration_tools
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Tools of the workspace's connected tools to turn on for this agent, for example zendesk_find_tickets, zendesk_create_ticket and zendesk_update_ticket. Separate from ``tools``. They work once the integration is connected in the console (Integrations).",
      +  "title": "Integration Tools"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "ai_disclosure": {
      -        "description": "Whether the AI line is spoken first.",
      -        "title": "Ai Disclosure",
      -        "type": "boolean"
      -      },
      -      "ai_disclosure_line": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "This agent's AI line template, or null for the workspace line.",
      -        "title": "Ai Disclosure Line"
      -      },
      -      "created_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Created At",
      -        "type": "string"
      -      },
      -      "email_enabled": {
      -        "default": true,
      -        "description": "Whether the agent answers email.",
      -        "title": "Email Enabled",
      -        "type": "boolean"
      -      },
      -      "first_message": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Opening line, or null to wait.",
      -        "title": "First Message"
      -      },
      -      "handover_contacts": {
      -        "description": "People the agent may hand a live call to.",
      -        "items": {
      -          "$ref": "#/$defs/HandoverContactOut"
      -        },
      -        "title": "Handover Contacts",
      -        "type": "array"
      -      },
      -      "handover_max_duration_seconds": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
      -        "title": "Handover Max Duration Seconds"
      -      },
      -      "http_tool_secret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
      -        "title": "Http Tool Secret"
      -      },
      -      "http_tools": {
      -        "description": "Your APIs the agent may call.",
      -        "items": {
      -          "$ref": "#/$defs/HttpToolOut"
      -        },
      -        "title": "Http Tools",
      -        "type": "array"
      -      },
      -      "id": {
      -        "description": "Unique identifier for this agent.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "knowledge": {
      -        "default": false,
      -        "description": "Whether the agent answers from the workspace's knowledge base.",
      -        "title": "Knowledge",
      -        "type": "boolean"
      -      },
      -      "max_duration_seconds": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Soft cap per call; null means the workspace limit.",
      -        "title": "Max Duration Seconds"
      -      },
      -      "name": {
      -        "description": "Display name, unique per organization.",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "organization_id": {
      -        "description": "Organization that owns this agent.",
      -        "format": "uuid",
      -        "title": "Organization Id",
      -        "type": "string"
      -      },
      -      "recording_enabled": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
      -        "title": "Recording Enabled"
      -      },
      -      "sms_enabled": {
      -        "description": "Whether the agent answers texts.",
      -        "title": "Sms Enabled",
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "description": "'live' or 'paused'.",
      -        "enum": [
      -          "live",
      -          "paused"
      -        ],
      -        "title": "Status",
      -        "type": "string"
      -      },
      -      "system_prompt": {
      -        "description": "Task instructions.",
      -        "title": "System Prompt",
      -        "type": "string"
      -      },
      -      "tools": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Allowed tools; null means all.",
      -        "title": "Tools"
      -      },
      -      "updated_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Updated At",
      -        "type": "string"
      -      },
      -      "voice_config": {
      -        "additionalProperties": true,
      -        "description": "TTS voice and language settings.",
      -        "title": "Voice Config",
      -        "type": "object"
      -      },
      -      "voice_enabled": {
      -        "description": "Whether the agent answers calls.",
      -        "title": "Voice Enabled",
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "organization_id",
      -      "name",
      -      "system_prompt",
      -      "first_message",
      -      "recording_enabled",
      -      "ai_disclosure",
      -      "ai_disclosure_line",
      -      "voice_config",
      -      "tools",
      -      "max_duration_seconds",
      -      "handover_max_duration_seconds",
      -      "voice_enabled",
      -      "sms_enabled",
      -      "email_enabled",
      -      "knowledge",
      -      "status",
      -      "handover_contacts",
      -      "http_tools",
      -      "http_tool_secret",
      -      "created_at",
      -      "updated_at"
      -    ],
      -    "title": "AgentResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "ai_disclosure": {
      +        "description": "Whether the AI line is spoken first.",
      +        "title": "Ai Disclosure",
      +        "type": "boolean"
      +      },
      +      "ai_disclosure_line": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "This agent's AI line template, or null for the workspace line.",
      +        "title": "Ai Disclosure Line"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "email_enabled": {
      +        "default": true,
      +        "description": "Whether the agent answers email.",
      +        "title": "Email Enabled",
      +        "type": "boolean"
      +      },
      +      "first_message": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Opening line, or null to wait.",
      +        "title": "First Message"
      +      },
      +      "handover_contacts": {
      +        "description": "People the agent may hand a live call to.",
      +        "items": {
      +          "$ref": "#/$defs/HandoverContactOut"
      +        },
      +        "title": "Handover Contacts",
      +        "type": "array"
      +      },
      +      "handover_max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
      +        "title": "Handover Max Duration Seconds"
      +      },
      +      "http_tool_secret": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
      +        "title": "Http Tool Secret"
      +      },
      +      "http_tools": {
      +        "description": "Your APIs the agent may call.",
      +        "items": {
      +          "$ref": "#/$defs/HttpToolOut"
      +        },
      +        "title": "Http Tools",
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this agent.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "integration_tools": {
      +        "description": "Integration tools turned on for this agent.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Integration Tools",
      +        "type": "array"
      +      },
      +      "knowledge": {
      +        "default": false,
      +        "description": "Whether the agent answers from the workspace's knowledge base.",
      +        "title": "Knowledge",
      +        "type": "boolean"
      +      },
      +      "max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Soft cap per call; null means the workspace limit.",
      +        "title": "Max Duration Seconds"
      +      },
      +      "name": {
      +        "description": "Display name, unique per organization.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "organization_id": {
      +        "description": "Organization that owns this agent.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "recording_enabled": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
      +        "title": "Recording Enabled"
      +      },
      +      "sms_enabled": {
      +        "description": "Whether the agent answers texts.",
      +        "title": "Sms Enabled",
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "description": "'live' or 'paused'.",
      +        "enum": [
      +          "live",
      +          "paused"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "system_prompt": {
      +        "description": "Task instructions.",
      +        "title": "System Prompt",
      +        "type": "string"
      +      },
      +      "tools": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Allowed tools; null means all.",
      +        "title": "Tools"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      },
      +      "voice_config": {
      +        "additionalProperties": true,
      +        "description": "TTS voice and language settings.",
      +        "title": "Voice Config",
      +        "type": "object"
      +      },
      +      "voice_enabled": {
      +        "description": "Whether the agent answers calls.",
      +        "title": "Voice Enabled",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "organization_id",
      +      "name",
      +      "system_prompt",
      +      "first_message",
      +      "recording_enabled",
      +      "ai_disclosure",
      +      "ai_disclosure_line",
      +      "voice_config",
      +      "tools",
      +      "max_duration_seconds",
      +      "handover_max_duration_seconds",
      +      "voice_enabled",
      +      "sms_enabled",
      +      "email_enabled",
      +      "knowledge",
      +      "integration_tools",
      +      "status",
      +      "handover_contacts",
      +      "http_tools",
      +      "http_tool_secret",
      +      "created_at",
      +      "updated_at"
      +    ],
      +    "title": "AgentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed2 schema fields changed
    • addedInput schema / properties / knowledge
      Added value: +{
      +  "default": false,
      +  "description": "Whether this agent answers calls, texts and email from the workspace's knowledge base (``add_knowledge_document``). Needs the knowledge base turned on for the workspace by Hail support.",
      +  "title": "Knowledge",
      +  "type": "boolean"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "ai_disclosure": {
      -        "description": "Whether the AI line is spoken first.",
      -        "title": "Ai Disclosure",
      -        "type": "boolean"
      -      },
      -      "ai_disclosure_line": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "This agent's AI line template, or null for the workspace line.",
      -        "title": "Ai Disclosure Line"
      -      },
      -      "created_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Created At",
      -        "type": "string"
      -      },
      -      "email_enabled": {
      -        "default": true,
      -        "description": "Whether the agent answers email.",
      -        "title": "Email Enabled",
      -        "type": "boolean"
      -      },
      -      "first_message": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Opening line, or null to wait.",
      -        "title": "First Message"
      -      },
      -      "handover_contacts": {
      -        "description": "People the agent may hand a live call to.",
      -        "items": {
      -          "$ref": "#/$defs/HandoverContactOut"
      -        },
      -        "title": "Handover Contacts",
      -        "type": "array"
      -      },
      -      "handover_max_duration_seconds": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
      -        "title": "Handover Max Duration Seconds"
      -      },
      -      "http_tool_secret": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
      -        "title": "Http Tool Secret"
      -      },
      -      "http_tools": {
      -        "description": "Your APIs the agent may call.",
      -        "items": {
      -          "$ref": "#/$defs/HttpToolOut"
      -        },
      -        "title": "Http Tools",
      -        "type": "array"
      -      },
      -      "id": {
      -        "description": "Unique identifier for this agent.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "max_duration_seconds": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Soft cap per call; null means the workspace limit.",
      -        "title": "Max Duration Seconds"
      -      },
      -      "name": {
      -        "description": "Display name, unique per organization.",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "organization_id": {
      -        "description": "Organization that owns this agent.",
      -        "format": "uuid",
      -        "title": "Organization Id",
      -        "type": "string"
      -      },
      -      "recording_enabled": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
      -        "title": "Recording Enabled"
      -      },
      -      "sms_enabled": {
      -        "description": "Whether the agent answers texts.",
      -        "title": "Sms Enabled",
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "description": "'live' or 'paused'.",
      -        "enum": [
      -          "live",
      -          "paused"
      -        ],
      -        "title": "Status",
      -        "type": "string"
      -      },
      -      "system_prompt": {
      -        "description": "Task instructions.",
      -        "title": "System Prompt",
      -        "type": "string"
      -      },
      -      "tools": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Allowed tools; null means all.",
      -        "title": "Tools"
      -      },
      -      "updated_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Updated At",
      -        "type": "string"
      -      },
      -      "voice_config": {
      -        "additionalProperties": true,
      -        "description": "TTS voice and language settings.",
      -        "title": "Voice Config",
      -        "type": "object"
      -      },
      -      "voice_enabled": {
      -        "description": "Whether the agent answers calls.",
      -        "title": "Voice Enabled",
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "organization_id",
      -      "name",
      -      "system_prompt",
      -      "first_message",
      -      "recording_enabled",
      -      "ai_disclosure",
      -      "ai_disclosure_line",
      -      "voice_config",
      -      "tools",
      -      "max_duration_seconds",
      -      "handover_max_duration_seconds",
      -      "voice_enabled",
      -      "sms_enabled",
      -      "email_enabled",
      -      "status",
      -      "handover_contacts",
      -      "http_tools",
      -      "http_tool_secret",
      -      "created_at",
      -      "updated_at"
      -    ],
      -    "title": "AgentResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "ai_disclosure": {
      +        "description": "Whether the AI line is spoken first.",
      +        "title": "Ai Disclosure",
      +        "type": "boolean"
      +      },
      +      "ai_disclosure_line": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "This agent's AI line template, or null for the workspace line.",
      +        "title": "Ai Disclosure Line"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "email_enabled": {
      +        "default": true,
      +        "description": "Whether the agent answers email.",
      +        "title": "Email Enabled",
      +        "type": "boolean"
      +      },
      +      "first_message": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Opening line, or null to wait.",
      +        "title": "First Message"
      +      },
      +      "handover_contacts": {
      +        "description": "People the agent may hand a live call to.",
      +        "items": {
      +          "$ref": "#/$defs/HandoverContactOut"
      +        },
      +        "title": "Handover Contacts",
      +        "type": "array"
      +      },
      +      "handover_max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
      +        "title": "Handover Max Duration Seconds"
      +      },
      +      "http_tool_secret": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
      +        "title": "Http Tool Secret"
      +      },
      +      "http_tools": {
      +        "description": "Your APIs the agent may call.",
      +        "items": {
      +          "$ref": "#/$defs/HttpToolOut"
      +        },
      +        "title": "Http Tools",
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this agent.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "knowledge": {
      +        "default": false,
      +        "description": "Whether the agent answers from the workspace's knowledge base.",
      +        "title": "Knowledge",
      +        "type": "boolean"
      +      },
      +      "max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Soft cap per call; null means the workspace limit.",
      +        "title": "Max Duration Seconds"
      +      },
      +      "name": {
      +        "description": "Display name, unique per organization.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "organization_id": {
      +        "description": "Organization that owns this agent.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "recording_enabled": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
      +        "title": "Recording Enabled"
      +      },
      +      "sms_enabled": {
      +        "description": "Whether the agent answers texts.",
      +        "title": "Sms Enabled",
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "description": "'live' or 'paused'.",
      +        "enum": [
      +          "live",
      +          "paused"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "system_prompt": {
      +        "description": "Task instructions.",
      +        "title": "System Prompt",
      +        "type": "string"
      +      },
      +      "tools": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Allowed tools; null means all.",
      +        "title": "Tools"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      },
      +      "voice_config": {
      +        "additionalProperties": true,
      +        "description": "TTS voice and language settings.",
      +        "title": "Voice Config",
      +        "type": "object"
      +      },
      +      "voice_enabled": {
      +        "description": "Whether the agent answers calls.",
      +        "title": "Voice Enabled",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "organization_id",
      +      "name",
      +      "system_prompt",
      +      "first_message",
      +      "recording_enabled",
      +      "ai_disclosure",
      +      "ai_disclosure_line",
      +      "voice_config",
      +      "tools",
      +      "max_duration_seconds",
      +      "handover_max_duration_seconds",
      +      "voice_enabled",
      +      "sms_enabled",
      +      "email_enabled",
      +      "knowledge",
      +      "status",
      +      "handover_contacts",
      +      "http_tools",
      +      "http_tool_secret",
      +      "created_at",
      +      "updated_at"
      +    ],
      +    "title": "AgentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / tools / description
      Previous value: -"Names of allowed built-in tools for calls or replies. An empty list selects none. Hail adds call transfer when handover contacts are configured."New value: +"Names of the tools the agent may use during a call or reply. Omitted: every tool the workspace's channels support. An empty list: none, except that a call keeps the tools every call needs (end_call, send_dtmf and Hail's settings guide). HTTP tools stay on. Hail adds call transfer when handover contacts are configured."
  6. Changed2 schema fields changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
    • changedInput schema / properties / recording_enabled / description
      Previous value: -"Recording for this agent's calls. ``true`` or ``false`` overrides the workspace setting."New value: +"Recording preference for this agent's calls, overriding the workspace setting."
  7. Changed9 schema fields changed
    • changedInput schema / properties / handover_max_duration_seconds / description
      Previous value: -"Longest a call may last after a handover contact answers, in seconds, counted from that answer. Omitted: 1800 (30 minutes)."New value: +"Longest a call may last after a handover contact answers, in seconds, counted from that answer."
    • changedInput schema / properties / language / description
      Previous value: -"Language the agent speaks, as an ISO 639-1 code such as ``es``. Omitted: English."New value: +"Spoken language on calls, such as ``es`` for Spanish."
    • changedInput schema / properties / max_duration_seconds / description
      Previous value: -"Longest a call with this agent may last, in seconds, counted from pickup. At the limit the agent says goodbye and hangs up. Omitted: the workspace's call limit."New value: +"Longest a call with this agent may last, in seconds, counted from pickup. At the limit the agent says goodbye and hangs up."
    • changedInput schema / properties / tools / description
      Previous value: -"Names of the tools the agent may use during a call or reply. Omitted: every tool the workspace's channels support. An empty list: none."New value: +"Names of allowed built-in tools for calls or replies. An empty list selects none. Hail adds call transfer when handover contacts are configured."
    • changedInput schema / properties / voice_id / description
      Previous value: -"Text-to-speech voice ID from the voice provider that serves the call, such as an ElevenLabs voice ID. Omitted: the workspace's default voice."New value: +"Text-to-speech voice ID from the voice provider that serves the call, such as an ElevenLabs voice ID."
    • addedOutput schema / $defs
      Added value: +{
      +  "HandoverContactOut": {
      +    "properties": {
      +      "contact_id": {
      +        "description": "The person: a contact's id, or `member:<user id>` for a team member.",
      +        "title": "Contact Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name, as the agent says it.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "note": {
      +        "description": "When the agent hands over to this person.",
      +        "title": "Note",
      +        "type": "string"
      +      },
      +      "phone_e164": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Number Hail dials. Null when the contact lost its number; it is then skipped.",
      +        "title": "Phone E164"
      +      }
      +    },
      +    "required": [
      +      "contact_id",
      +      "name",
      +      "phone_e164",
      +      "note"
      +    ],
      +    "title": "HandoverContactOut",
      +    "type": "object"
      +  },
      +  "HttpToolOut": {
      +    "properties": {
      +      "description": {
      +        "description": "What the tool does. Read by the model.",
      +        "title": "Description",
      +        "type": "string"
      +      },
      +      "header_names": {
      +        "description": "Names of the saved static headers. Values are never returned.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Header Names",
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "Function name the model calls.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "parameters": {
      +        "additionalProperties": true,
      +        "description": "JSON Schema of the arguments.",
      +        "title": "Parameters",
      +        "type": "object"
      +      },
      +      "timeout_seconds": {
      +        "description": "Seconds Hail waits for the answer.",
      +        "title": "Timeout Seconds",
      +        "type": "integer"
      +      },
      +      "url": {
      +        "description": "HTTPS endpoint Hail POSTs to.",
      +        "title": "Url",
      +        "type": "string"
      +      },
      +      "wait_message": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Sentence said on a call while waiting, or null.",
      +        "title": "Wait Message"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "description",
      +      "url",
      +      "parameters",
      +      "header_names",
      +      "timeout_seconds",
      +      "wait_message"
      +    ],
      +    "title": "HttpToolOut",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "ai_disclosure": {
      +        "description": "Whether the AI line is spoken first.",
      +        "title": "Ai Disclosure",
      +        "type": "boolean"
      +      },
      +      "ai_disclosure_line": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "This agent's AI line template, or null for the workspace line.",
      +        "title": "Ai Disclosure Line"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "email_enabled": {
      +        "default": true,
      +        "description": "Whether the agent answers email.",
      +        "title": "Email Enabled",
      +        "type": "boolean"
      +      },
      +      "first_message": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Opening line, or null to wait.",
      +        "title": "First Message"
      +      },
      +      "handover_contacts": {
      +        "description": "People the agent may hand a live call to.",
      +        "items": {
      +          "$ref": "#/$defs/HandoverContactOut"
      +        },
      +        "title": "Handover Contacts",
      +        "type": "array"
      +      },
      +      "handover_max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
      +        "title": "Handover Max Duration Seconds"
      +      },
      +      "http_tool_secret": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
      +        "title": "Http Tool Secret"
      +      },
      +      "http_tools": {
      +        "description": "Your APIs the agent may call.",
      +        "items": {
      +          "$ref": "#/$defs/HttpToolOut"
      +        },
      +        "title": "Http Tools",
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this agent.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Soft cap per call; null means the workspace limit.",
      +        "title": "Max Duration Seconds"
      +      },
      +      "name": {
      +        "description": "Display name, unique per organization.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "organization_id": {
      +        "description": "Organization that owns this agent.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "recording_enabled": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
      +        "title": "Recording Enabled"
      +      },
      +      "sms_enabled": {
      +        "description": "Whether the agent answers texts.",
      +        "title": "Sms Enabled",
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "description": "'live' or 'paused'.",
      +        "enum": [
      +          "live",
      +          "paused"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "system_prompt": {
      +        "description": "Task instructions.",
      +        "title": "System Prompt",
      +        "type": "string"
      +      },
      +      "tools": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Allowed tools; null means all.",
      +        "title": "Tools"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      },
      +      "voice_config": {
      +        "additionalProperties": true,
      +        "description": "TTS voice and language settings.",
      +        "title": "Voice Config",
      +        "type": "object"
      +      },
      +      "voice_enabled": {
      +        "description": "Whether the agent answers calls.",
      +        "title": "Voice Enabled",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "organization_id",
      +      "name",
      +      "system_prompt",
      +      "first_message",
      +      "recording_enabled",
      +      "ai_disclosure",
      +      "ai_disclosure_line",
      +      "voice_config",
      +      "tools",
      +      "max_duration_seconds",
      +      "handover_max_duration_seconds",
      +      "voice_enabled",
      +      "sms_enabled",
      +      "email_enabled",
      +      "status",
      +      "handover_contacts",
      +      "http_tools",
      +      "http_tool_secret",
      +      "created_at",
      +      "updated_at"
      +    ],
      +    "title": "AgentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"create_agent_toolDictOutput"
  8. Changed1 schema field changed
    • addedInput schema / properties / http_tools
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Up to ten customer APIs the agent may call during calls, texts and email. Each entry: ``name`` (letters, digits, _), ``description`` (read by the model), ``url`` (public https), optional ``parameters`` (JSON Schema, type object), ``headers`` (static, stored encrypted, returned as names only), ``timeout_seconds`` (1 to 10, default 5) and ``wait_message`` (said on a call while waiting). The list replaces the saved one; an empty list removes it. On update, an entry without ``headers`` keeps the saved headers of the same name while the url keeps its host; a url on a new host needs ``headers`` again. The first save returns ``http_tool_secret`` once; requests carry ``X-Hail-Signature`` signed with it.",
      +  "title": "Http Tools"
      +}
  9. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  10. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare create/non-idempotent/non-destructive. The description adds real behavioral context beyond them: saved instructions apply when a number or address routes to the agent, saving does not alter existing routing, call handover happens without exposing contact phone numbers, and the handover limit defaults to 30 minutes from answer. It stops short of saying what happens on a duplicate name or what the response contains.

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 purpose sentence is well front-loaded, but the following block is a loose run of default behaviors (voice, language, tools, call limit, handover limit) with no grouping or ordering logic behind it. Every clause is relevant, yet the paragraph reads as an unstructured dump and duplicates several schema defaults.

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 19-parameter creation tool with a full schema, annotations and an output schema, the definition covers the key non-obvious behavior (routing untouched, defaults applied when omitted). Return values need not be explained since an output schema exists; missing only failure modes such as duplicate names or voice validation errors, the latter being covered in the schema instead.

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 19 parameters in detail. The description's discussion of voice override, English language default, tool-list defaults and the workspace call limit largely restates schema content rather than adding new meaning, so 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 opening sentence gives a specific verb and resource ('Save an agent') and names the channels it covers (calls, texts, email replies). It is clearly a creation operation, though it never distinguishes itself from the sibling update_agent, which an agent must infer from the name alone.

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?

Usage context is implied rather than stated: the reader infers this is for standing up a new agent, and the note that saving 'does not change existing routing' hints at a prior routing step. There is no explicit when-to-use versus update_agent, nor any stated prerequisite (e.g. knowledge base needing support enablement, which only appears in the schema).

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.