Skip to main content
Glama

Update an agent

update_agent
DestructiveIdempotent

Update selected fields on a saved workspace agent.

    Replaces active settings, including instructions and the whole handover list.
    Pausing the agent or disabling a channel stops new replies on that channel.
    Omitted fields retain their values.
    Updating language or voice alone preserves the other setting.
    ``clear_fields`` resets the named settings and cannot be combined with a new
    value for the same field. Clearing the greeting lets the inbound caller speak
    first. Other resets use workspace defaults, except the handover limit resets
    to 30 minutes.
    Existing calls keep their starting settings; changes affect later calls and texts.
    Returns the updated agent or an error.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "update_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAgent 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.
statusNo``paused`` stops the agent answering; ``live`` turns it back on.
agent_idYesSaved agent ID, from ``list_agents`` or ``create_agent``.
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.
clear_fieldsNoSettings to reset to the workspace default. Omitted: nothing is reset.
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_promptNoInstructions 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_contactsNoReplaces the whole handover list; an empty list removes it. Up to ten ``{contact_id, note}`` entries, with ``contact_id`` from ``list_contacts``, ``lookup_contact`` or ``create_contact`` and a ``note`` of 1 to 200 characters.
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: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "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"
      +}
    • 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: -"update_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

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes further by naming exactly what is destroyed: active settings including instructions and the whole handover list. It also adds valuable operational context the annotations cannot carry -- existing calls keep their starting settings, pausing or disabling a channel stops new replies, and resets fall back to workspace defaults (30 minutes for handover). It stops short of describing auth/permission needs or error conditions beyond 'returns an error', so a 4 rather than a 5.

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-loads the core action in the first sentence, then groups destructive/replacement behavior, pausing, defaulting rules, and live-call impact into short declarative lines. No filler sentences; each line carries a distinct operational fact.

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 22-parameter mutation tool with high schema coverage and an output schema, the description supplies the behavioral layer the schema cannot: replacement vs. merge semantics, reset defaults, and effect timing on in-progress calls. Minor gaps are permission requirements and the one-time http_tool_secret handling, both of which the schema covers.

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?

Schema coverage is 100%, so the baseline would be 3; the description earns above that by explaining cross-parameter behavior the schema does not: clear_fields cannot be combined with a new value for the same field, clearing the greeting makes the caller speak first, and language/voice updates preserve each other. It does not elaborate on the bulk list parameters (http_tools, tools, handover_contacts) beyond what the schema already states.

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?

States a specific verb and resource ("Update selected fields on a saved workspace agent") and immediately clarifies that this is a partial update rather than a create or delete, which cleanly separates it from create_agent and delete_agent. The 'selected fields' phrasing plus the omitted-fields rule makes the operation type unambiguous 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?

Gives clear situational rules: omitted fields retain values, clear_fields cannot be combined with a value for the same field, and language/voice updates preserve the other setting. It does not explicitly route the agent away from a sibling (e.g. create_agent for a new agent) but the partial-update semantics provide strong implicit routing.

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.