{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.hail.so",
    "site": "hail.so",
    "addresses": [
      {
        "address": "2.28.197.197",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 24940,
          "name": "HETZNER-AS - Hetzner Online GmbH",
          "prefix": "2.28.0.0/16",
          "country": "DE"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "2.28.197.197"
        ],
        "first_seen": "2026-11-21T15:42:02.452Z",
        "last_seen": "2026-11-23T19:58:02.427Z",
        "checks": 3
      }
    ],
    "hosting": [],
    "software": [
      {
        "value": "Uvicorn (Python)",
        "evidence": "Server header \"uvicorn\""
      }
    ],
    "server_info": {
      "name": "hail",
      "version": "0.2.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "via": "1.1 Caddy",
      "server": "uvicorn"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.hail-hq",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/hail-hq/hail",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "30060",
    "server_name": "io.github.hail-hq/hail-mcp",
    "url": "https://mcp.hail.so/",
    "host": "mcp.hail.so",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T19:58:02.427Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "a770a8eab2347fbb0faf19a8265fd4cc1a87fe27dbed749ab8f53f522147d197",
    "first_listed_at": "2026-11-21T15:42:02.452Z",
    "created_at": "2026-11-21T09:50:16.163Z",
    "resolved_addresses": [
      "2.28.197.197"
    ]
  },
  "server": {
    "name": "io.github.hail-hq/hail-mcp",
    "title": "Hail",
    "description": "Run your AI assistant with real phone numbers and email inboxes. Handle calls, texts, and email.",
    "version": "0.2.0",
    "registry_status": "active",
    "repository_url": "https://github.com/hail-hq/hail",
    "website_url": "https://hail.so/mcp",
    "published_at": "2026-11-19T16:05:19.850Z",
    "updated_at": "2026-11-19T16:05:19.850Z",
    "first_seen": "2026-11-21T09:50:15.635Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "runs-agents",
      "sends-messages",
      "writes-files"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-23T19:58:09.951Z"
  },
  "operator": {
    "key": "hail.so",
    "name": "hail.so",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1729,
    "first_check_in_window": "2026-11-21T15:42:02.452Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "a770a8eab2347fbb0faf19a8265fd4cc1a87fe27dbed749ab8f53f522147d197",
    "tools": 46,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-23T19:58:04.525Z",
    "tool_names": [
      "place_call",
      "send_email",
      "upload_email_attachment",
      "create_file_upload",
      "get_call",
      "list_calls",
      "send_sms",
      "get_sms",
      "list_sms",
      "get_email",
      "list_emails",
      "get_email_raw",
      "get_email_attachment",
      "get_email_events",
      "get_email_stats",
      "get_events",
      "list_agents",
      "create_agent",
      "route_number",
      "route_email_domain",
      "quote_numbers",
      "acquire_number",
      "list_numbers",
      "list_number_regions",
      "get_number",
      "release_number",
      "get_verification_requirements",
      "check_verification",
      "check_verification_documents",
      "submit_verification",
      "resubmit_verification",
      "list_verifications",
      "get_verification",
      "get_sms_application",
      "preview_sms_application",
      "amend_sms_application",
      "cancel_verification",
      "confirm_verification",
      "get_agent",
      "update_agent",
      "delete_agent",
      "list_contacts",
      "lookup_contact",
      "list_email_domains",
      "whoami",
      "create_contact"
    ],
    "declared": {
      "tools": [
        {
          "name": "place_call",
          "title": "Place a phone call",
          "description": "Start an outbound AI phone call.\n\n        With ``from_`` omitted, Hail uses the oldest active workspace number with\n        voice capability, or a shared pool number when none is available.\n        A dedicated number is not required. Shared pool numbers cannot be selected\n        explicitly; an exhausted pool returns an ``error`` result without starting a call.\n        The call uses instructions from ``system_prompt`` or a saved ``agent_id``,\n        or a model endpoint supplied in ``llm``. At least one is required.\n        US artificial-voice calls (47 CFR 64.1200(b)(1)) require the AI disclosure.\n        Hail does not verify the lawful basis or the recipient's consent.\n        A 4xx response returns no ``idempotency_key``.\n\n        Returns the call ID, status, phone numbers and ``idempotency_key``, or an error.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "place_call_toolArguments",
            "required": [
              "to",
              "recipient_consent"
            ],
            "properties": {
              "to": {
                "type": "string",
                "title": "To",
                "description": "Recipient phone number in E.164 format, such as ``+14155551234``."
              },
              "llm": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Llm",
                "default": null,
                "description": "Own model endpoint compatible with OpenAI's chat completions API: ``{base_url, api_key, model}``. Omitted: Hail's bundled model."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Caller ID: an E.164 workspace number with voice, from ``list_numbers``. This selects a dedicated voice number instead of automatic caller-ID selection."
              },
              "tools": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tools",
                "default": null,
                "description": "Names of the agent tools allowed on this call. An empty list disables them. Omitted: every tool the workspace's channels support."
              },
              "agent_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Agent Id",
                "default": null,
                "description": "Saved agent whose settings the call uses, from ``list_agents`` or ``create_agent``. Explicit arguments override its settings."
              },
              "language": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Language",
                "default": null,
                "description": "Spoken language override, using a supported lowercase ISO 639-1 code such as ``es``. When omitted, the call uses the saved agent's language, then the workspace's text-to-speech language if configured, then English. An unsupported code returns an error before dialing."
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Metadata",
                "default": null,
                "description": "Extra data stored on the call record. Keys starting with ``recording_`` are reserved."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "message_type": {
                "type": "string",
                "title": "Message Type",
                "default": "informational",
                "description": "Purpose of the communication for consent checks. Transactional or service messages are ``informational``; promotional messages are ``marketing``."
              },
              "ai_disclosure": {
                "type": "boolean",
                "title": "Ai Disclosure",
                "default": true,
                "description": "Whether the agent speaks an AI notice at the start of the call."
              },
              "first_message": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "First Message",
                "default": null,
                "description": "Line spoken on pickup. Without it, the agent reacts to the answer or silence."
              },
              "system_prompt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "System Prompt",
                "default": null,
                "description": "Task instructions, added to the call agent's instructions."
              },
              "consent_source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Consent Source",
                "default": null,
                "description": "Where or how consent was obtained, such as ``signup form``. Required when ``message_type`` is ``marketing``."
              },
              "idempotency_key": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Idempotency Key",
                "default": null,
                "description": "Retry key. The ``idempotency_key`` from an earlier response refers to that original request instead of starting a new one. Omitted: a new key is generated and returned."
              },
              "recipient_consent": {
                "type": "boolean",
                "title": "Recipient Consent",
                "description": "Confirmation from the user that the recipient lawfully agreed to be contacted. Hail requires ``true`` and does not independently verify consent."
              },
              "recording_enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Recording Enabled",
                "default": null,
                "description": "Recording for this call, overriding the agent and workspace settings."
              },
              "consent_obtained_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Consent Obtained At",
                "default": null,
                "description": "When consent was obtained, as an ISO 8601 timestamp, if known."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "CallTranscriptTurn": {
                "type": "object",
                "title": "CallTranscriptTurn",
                "required": [
                  "role",
                  "text",
                  "at"
                ],
                "properties": {
                  "at": {
                    "type": "string",
                    "title": "At",
                    "format": "date-time",
                    "description": "When the speaker started this turn, ISO 8601. When that is not known, when Hail recorded the turn."
                  },
                  "role": {
                    "enum": [
                      "user",
                      "assistant"
                    ],
                    "type": "string",
                    "title": "Role",
                    "description": "'assistant' is the Hail agent. 'user' is the person (or answering machine) on the other end of the line."
                  },
                  "text": {
                    "type": "string",
                    "title": "Text",
                    "description": "What was said in this turn."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "CallResponse",
                "required": [
                  "id",
                  "organization_id",
                  "from_e164",
                  "to_e164",
                  "direction",
                  "agent_id",
                  "status",
                  "end_reason",
                  "provider_call_sid",
                  "livekit_room",
                  "initial_prompt",
                  "recording_enabled",
                  "recording_status",
                  "recording_duration_ms",
                  "recording_s3_key",
                  "requested_at",
                  "started_at",
                  "answered_at",
                  "ended_at",
                  "failure_message",
                  "transcript",
                  "idempotency_key"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this call."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "dialing",
                      "ringing",
                      "in_progress",
                      "completed",
                      "failed",
                      "busy",
                      "no_answer",
                      "canceled"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Current call-progress state: 'queued', 'dialing', 'ringing', 'in_progress', or one of the terminal states 'completed', 'failed', 'busy', 'no_answer', 'canceled'."
                  },
                  "to_e164": {
                    "type": "string",
                    "title": "To E164",
                    "description": "Recipient phone number, E.164 format."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "Agent that answered (inbound) or placed (outbound) this call. Null when the call was placed with an inline system_prompt."
                  },
                  "ended_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ended At",
                    "description": "When the call ended, ISO 8601 timestamp. Null while still in progress."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "description": "'outbound' for calls Hail placed, 'inbound' for calls received."
                  },
                  "from_e164": {
                    "type": "string",
                    "title": "From E164",
                    "description": "Caller-id phone number used, E.164 format."
                  },
                  "end_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "End Reason",
                    "description": "Machine-readable reason the call reached a terminal status (e.g. 'normal_hangup', 'user_rejected', 'sip_trunk_failure'). Null while the call is still in progress."
                  },
                  "started_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Started At",
                    "description": "When dialing began, ISO 8601 timestamp. Null until the call starts."
                  },
                  "transcript": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/CallTranscriptTurn"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Transcript",
                    "default": null,
                    "description": "What was said on the call, in the order it was said. Set only by GET /v1/calls/{call_id}: an empty list until someone speaks. Null in POST /v1/calls and GET /v1/calls responses."
                  },
                  "answered_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Answered At",
                    "description": "When the callee answered, ISO 8601 timestamp. Null if never answered."
                  },
                  "livekit_room": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Livekit Room",
                    "description": "Name of the LiveKit room hosting this call's media session, if one was created."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the call was requested, ISO 8601 timestamp."
                  },
                  "initial_prompt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Initial Prompt",
                    "description": "The system_prompt this call was created with, if any."
                  },
                  "failure_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Failure Message",
                    "default": null,
                    "description": "Human-readable explanation for a failed call. Null for other statuses."
                  },
                  "idempotency_key": {
                    "type": "string",
                    "description": "Key that identifies this exact request when retrying."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that placed or received this call."
                  },
                  "recording_s3_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording S3 Key",
                    "description": "Internal storage key for the call recording. Not a directly fetchable URL."
                  },
                  "recording_status": {
                    "type": "string",
                    "title": "Recording Status",
                    "default": "disabled",
                    "description": "disabled, requested, starting, recording, processing, ready, unavailable, failed, or erased."
                  },
                  "provider_call_sid": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Call Sid",
                    "description": "The telephony provider's identifier for this call leg, if assigned."
                  },
                  "recording_enabled": {
                    "type": "boolean",
                    "title": "Recording Enabled",
                    "default": false,
                    "description": "Whether the recording-enabled call rate applies, regardless of capture outcome."
                  },
                  "recording_duration_ms": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Duration Ms",
                    "default": null,
                    "description": "Duration of captured audio, independent of billed call duration."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Place a phone call",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "send_email",
          "title": "Send an email",
          "description": "Send an email from a verified workspace sender.\n\n        Plain-text emails still have sending, delivery and bounce events.\n\n        Without ``from_``, one verified custom domain takes priority over the Hail mail address.\n        Several verified custom domains require an explicit ``from_`` address.\n        A custom domain blocked from sending (``sends_enabled`` false, PATCH ``/v1/email-domains/{id}``) is skipped for picks and refuses an explicit ``from_``.\n        When configured, a workspace without a sender receives a Hail mail address automatically.\n\n        Hail does not verify consent.\n\n        Returns the email ID, status, sender, recipients and ``idempotency_key``, or an error.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "send_email_toolArguments",
            "required": [
              "to",
              "subject",
              "recipient_consent"
            ],
            "properties": {
              "cc": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cc",
                "default": null,
                "description": "Email addresses to copy; every recipient sees them."
              },
              "to": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "title": "To",
                "minItems": 1,
                "description": "Email addresses of the people the message is for."
              },
              "bcc": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Bcc",
                "default": null,
                "description": "Email addresses to copy in secret: they get the message, and no other recipient sees their addresses."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Sender address. It must match a verified identity from ``list_email_domains``; on a custom domain any local part works. When omitted, Hail uses the default sender if available. Several eligible custom domains require an explicit address."
              },
              "subject": {
                "type": "string",
                "title": "Subject",
                "maxLength": 998,
                "minLength": 1,
                "description": "Subject line the recipients see in their inbox."
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Metadata",
                "default": null,
                "description": "Extra data stored on the email record."
              },
              "reply_to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Reply To",
                "default": null,
                "description": "Address that receives replies instead of the sender. Omitted: replies go to the sender."
              },
              "body_html": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body Html",
                "default": null,
                "description": "The message as HTML. Open and click tracking works only with an HTML body. Give this, ``body_text``, or both."
              },
              "body_text": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body Text",
                "default": null,
                "description": "The message as plain text, shown by mail apps that cannot display HTML. Give this, ``body_html``, or both."
              },
              "from_name": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From Name",
                "default": null,
                "description": "Display name for the From header, such as ``Acme Billing``. Control characters are rejected."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "message_type": {
                "type": "string",
                "title": "Message Type",
                "default": "informational",
                "description": "Purpose of the communication for consent checks. Transactional or service messages are ``informational``; promotional messages are ``marketing``."
              },
              "attachment_ids": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Attachment Ids",
                "default": null,
                "description": "Attachment IDs: the ``id`` from ``upload_email_attachment``, or from ``create_file_upload`` with purpose ``email_attachment``."
              },
              "consent_source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Consent Source",
                "default": null,
                "description": "Where or how consent was obtained, such as ``signup form``. Required when ``message_type`` is ``marketing``."
              },
              "idempotency_key": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Idempotency Key",
                "default": null,
                "description": "Retry key. The ``idempotency_key`` from an earlier response refers to that original request instead of starting a new one. Omitted: a new key is generated and returned."
              },
              "recipient_consent": {
                "type": "boolean",
                "title": "Recipient Consent",
                "description": "Confirmation from the user that the recipient lawfully agreed to be contacted. Hail requires ``true`` and does not independently verify consent."
              },
              "consent_obtained_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Consent Obtained At",
                "default": null,
                "description": "When consent was obtained, as an ISO 8601 timestamp, if known."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "EmailAttachmentResponse": {
                "type": "object",
                "title": "EmailAttachmentResponse",
                "required": [
                  "id",
                  "filename",
                  "content_type",
                  "size_bytes",
                  "content_id",
                  "url"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this attachment."
                  },
                  "url": {
                    "type": "string",
                    "title": "Url",
                    "description": "API endpoint that 302-redirects to a presigned download URL for this attachment."
                  },
                  "filename": {
                    "type": "string",
                    "title": "Filename",
                    "description": "Original filename of the attachment."
                  },
                  "content_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Content Id",
                    "default": null,
                    "description": "MIME Content-ID, present when this attachment is referenced inline (cid:) from the HTML body. Null otherwise."
                  },
                  "size_bytes": {
                    "type": "integer",
                    "title": "Size Bytes",
                    "description": "Size of the attachment in bytes."
                  },
                  "content_type": {
                    "type": "string",
                    "title": "Content Type",
                    "description": "MIME type of the attachment."
                  }
                },
                "description": "One inbound MIME attachment as exposed to API consumers.\n\n``url`` is the stable Hail API endpoint that 302-redirects to a\npresigned S3 URL on access — see GET /emails/{id}/attachments/{aid}."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailResponse",
                "required": [
                  "id",
                  "organization_id",
                  "email_domain_id",
                  "direction",
                  "from_address",
                  "from_name",
                  "to_addresses",
                  "cc_addresses",
                  "bcc_addresses",
                  "reply_to",
                  "subject",
                  "status",
                  "end_reason",
                  "provider_message_id",
                  "requested_at",
                  "sent_at",
                  "failed_at",
                  "metadata",
                  "body_text",
                  "body_html",
                  "message_id",
                  "in_reply_to",
                  "references_ids",
                  "agent_id",
                  "agent_reply_state",
                  "spam_verdict",
                  "virus_verdict",
                  "dkim_verdict",
                  "spf_verdict",
                  "dmarc_verdict",
                  "provider_received_at",
                  "raw_url",
                  "attachments",
                  "last_event_at",
                  "idempotency_key"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this email."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "bounced",
                      "complained",
                      "received"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'bounced', 'complained', or 'received' (inbound emails)."
                  },
                  "raw_url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Raw Url",
                    "default": null,
                    "description": "API endpoint that redirects to the original MIME blob. Inbound emails only; null on outbound rows."
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sent At",
                    "description": "When the message was handed to the provider, ISO 8601 timestamp. Null until sent."
                  },
                  "subject": {
                    "type": "string",
                    "title": "Subject",
                    "description": "Email subject line."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "The agent this email belongs to: the address's agent on inbound rows, the writer on outbound rows."
                  },
                  "metadata": {
                    "type": "object",
                    "title": "Metadata",
                    "description": "Free-form JSON object attached to the email, as sent on create. Not interpreted by Hail.",
                    "additionalProperties": true
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Reply To",
                    "description": "Reply-To email address, if set."
                  },
                  "body_html": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Body Html",
                    "description": "HTML body, if any."
                  },
                  "body_text": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Body Text",
                    "description": "Plain-text body, if any."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "default": "outbound",
                    "description": "'outbound' for emails Hail sent, 'inbound' for emails received."
                  },
                  "failed_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Failed At",
                    "description": "When the send failed, ISO 8601 timestamp. Null unless it failed."
                  },
                  "from_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "From Name",
                    "default": null,
                    "description": "Display name used on the From: header, when the sender supplied one. Always null on inbound rows."
                  },
                  "end_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "End Reason",
                    "description": "Reason delivery failed or bounced, if applicable. Null on success or while pending."
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Message Id",
                    "default": null,
                    "description": "RFC 5322 Message-ID header. Inbound emails only; null on outbound rows."
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAttachmentResponse"
                    },
                    "title": "Attachments",
                    "default": [],
                    "description": "Inbound MIME attachments on this email. Empty on outbound rows."
                  },
                  "in_reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "In Reply To",
                    "default": null,
                    "description": "RFC 5322 In-Reply-To header. Set on inbound emails and agent replies; null on other outbound rows."
                  },
                  "spf_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Spf Verdict",
                    "default": null,
                    "description": "Provider SPF-authentication verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "cc_addresses": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Cc Addresses",
                    "description": "CC recipient email addresses, if any."
                  },
                  "dkim_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Dkim Verdict",
                    "default": null,
                    "description": "Provider DKIM-authentication verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "from_address": {
                    "type": "string",
                    "title": "From Address",
                    "description": "Sender email address."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the send was requested, ISO 8601 timestamp."
                  },
                  "spam_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Spam Verdict",
                    "default": null,
                    "description": "Provider spam-scan verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "to_addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "To Addresses",
                    "description": "Recipient email addresses."
                  },
                  "bcc_addresses": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Bcc Addresses",
                    "description": "BCC recipient email addresses, if any."
                  },
                  "dmarc_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Dmarc Verdict",
                    "default": null,
                    "description": "Provider DMARC-authentication verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "last_event_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Last Event At",
                    "default": null,
                    "description": "When the most recent delivery event for this email occurred, ISO 8601 timestamp."
                  },
                  "virus_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Virus Verdict",
                    "default": null,
                    "description": "Provider virus-scan verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "references_ids": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "References Ids",
                    "default": null,
                    "description": "RFC 5322 References header, split into ids. Set on inbound emails and agent replies; null on other outbound rows."
                  },
                  "email_domain_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email Domain Id",
                    "description": "The sending domain used, if from_address belongs to one of the org's configured domains."
                  },
                  "idempotency_key": {
                    "type": "string",
                    "description": "Key that identifies this exact request when retrying."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that sent or received this email."
                  },
                  "agent_reply_state": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Reply State",
                    "default": null,
                    "description": "Inbound rows routed to an agent: 'pending', 'processing', 'done', 'skipped', or 'failed'. A skipped row names why in metadata.agent_skip_reason."
                  },
                  "provider_message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Message Id",
                    "description": "The email provider's identifier for this message, if assigned."
                  },
                  "provider_received_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Received At",
                    "default": null,
                    "description": "When the provider received this email, ISO 8601 timestamp. Inbound emails only."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Send an email",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "upload_email_attachment",
          "title": "Upload an email attachment",
          "description": "Upload a small attachment for outbound email, as base64 text.\n\n        Meant for small files (under about 50 KB): every base64 character goes\n        through the tool call itself. Larger files go through ``create_file_upload``\n        with ``purpose=\"email_attachment\"``: its ``curl`` line sends the bytes, and its\n        ``id`` works in ``send_email``'s ``attachment_ids``.\n        Returns ``id``, ``filename``, ``content_type`` and ``size_bytes``.\n        The ID is accepted in an email's ``attachment_ids`` and is reusable across sends.\n        Unused uploads expire after 24 hours.\n        The combined message and attachments must fit the 25 MB sending limit.",
          "inputSchema": {
            "type": "object",
            "title": "upload_email_attachment_toolArguments",
            "required": [
              "content_base64",
              "filename",
              "content_type"
            ],
            "properties": {
              "filename": {
                "type": "string",
                "title": "Filename",
                "description": "File name shown to recipients, such as ``invoice.pdf``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "content_type": {
                "type": "string",
                "title": "Content Type",
                "description": "The file's MIME type, such as ``application/pdf``."
              },
              "content_base64": {
                "type": "string",
                "title": "Content Base64",
                "description": "The file's bytes, base64-encoded."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "EmailAttachmentUploadResponse",
                "required": [
                  "id",
                  "filename",
                  "content_type",
                  "size_bytes"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Reusable attachment id — pass it in EmailCreate.attachment_ids to attach it to a send."
                  },
                  "filename": {
                    "type": "string",
                    "title": "Filename",
                    "description": "Original filename of the uploaded file."
                  },
                  "size_bytes": {
                    "type": "integer",
                    "title": "Size Bytes",
                    "description": "Size of the uploaded file in bytes."
                  },
                  "content_type": {
                    "type": "string",
                    "title": "Content Type",
                    "description": "MIME type of the uploaded file."
                  }
                },
                "description": "Returned by POST /email-attachments.\n\n``id`` is reusable across many ``POST /emails`` calls via\n``EmailCreate.attachment_ids`` until Hail garbage-collects it (24h\nif never referenced by a send)."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Upload an email attachment",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "create_file_upload",
          "title": "Create a file upload link",
          "description": "Create a one-time link that uploads one file from a shell with curl.\n\n        The bytes go from the local disk to Hail directly, not through the tool call,\n        so any file that is not tiny goes this way.\n        An email attachment can be up to 25 MB. A verification document must be\n        JPG, PNG or PDF, up to 10 MB, and is usable for 1 hour after the upload.\n        SMS evidence must be a JPG, PNG or PDF of the given ``content_type``, up to 10 MB.\n        Its upload response has a public ``url`` for an ``*_evidence_url`` field.\n        Carrier reviewers open it without signing in, so remove personal information first.\n        Returns ``id``, ``upload_url``, ``expires_at`` (15 minutes), ``max_bytes``\n        and a ready ``curl`` line with a ``'FILE_PATH'`` placeholder for the\n        file's absolute path.\n        The link needs no key and works once. The upload response holds\n        ``size_bytes`` and ``sha256`` to compare with the local file.",
          "inputSchema": {
            "type": "object",
            "title": "create_file_upload_toolArguments",
            "required": [
              "purpose",
              "filename",
              "content_type"
            ],
            "properties": {
              "purpose": {
                "enum": [
                  "email_attachment",
                  "verification_document",
                  "sms_evidence"
                ],
                "type": "string",
                "title": "Purpose",
                "description": "What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``."
              },
              "filename": {
                "type": "string",
                "title": "Filename",
                "description": "File name, such as ``passport.pdf``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "content_type": {
                "type": "string",
                "title": "Content Type",
                "description": "The file's MIME type, such as ``application/pdf``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "FileUploadLinkResponse",
                "required": [
                  "id",
                  "purpose",
                  "upload_url",
                  "method",
                  "content_type",
                  "max_bytes",
                  "expires_at",
                  "curl",
                  "next"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "The upload's id."
                  },
                  "curl": {
                    "type": "string",
                    "description": "Upload command template."
                  },
                  "next": {
                    "type": "string",
                    "description": "Upload instructions."
                  },
                  "method": {
                    "type": "string",
                    "const": "PUT",
                    "title": "Method",
                    "description": "The HTTP method for `upload_url`."
                  },
                  "purpose": {
                    "enum": [
                      "email_attachment",
                      "verification_document",
                      "sms_evidence"
                    ],
                    "type": "string",
                    "title": "Purpose",
                    "description": "What the file is for."
                  },
                  "max_bytes": {
                    "type": "integer",
                    "title": "Max Bytes",
                    "description": "The largest file the link takes, in bytes."
                  },
                  "expires_at": {
                    "type": "string",
                    "title": "Expires At",
                    "format": "date-time",
                    "description": "When the link stops working."
                  },
                  "upload_url": {
                    "type": "string",
                    "title": "Upload Url",
                    "description": "Send the raw file bytes here with `PUT`. No Authorization header: the `token` in the URL is the only credential. Works once, until `expires_at`. Treat it like a password."
                  },
                  "content_type": {
                    "type": "string",
                    "title": "Content Type",
                    "description": "The type the file is stored with."
                  }
                },
                "description": "Returned by ``POST /uploads``: a one-time link to send the bytes to."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Create a file upload link",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_call",
          "title": "Get a call",
          "description": "Read a call's current status, timing and transcript by ID.\n\n        Returns the call record with its transcript (spoken turns, in the\n        order they were said), or an error when the call is unavailable.",
          "inputSchema": {
            "type": "object",
            "title": "get_call_toolArguments",
            "required": [
              "call_id"
            ],
            "properties": {
              "call_id": {
                "type": "string",
                "title": "Call Id",
                "description": "Call ID, from ``place_call`` or ``list_calls``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "CallTranscriptTurn": {
                "type": "object",
                "title": "CallTranscriptTurn",
                "required": [
                  "role",
                  "text",
                  "at"
                ],
                "properties": {
                  "at": {
                    "type": "string",
                    "title": "At",
                    "format": "date-time",
                    "description": "When the speaker started this turn, ISO 8601. When that is not known, when Hail recorded the turn."
                  },
                  "role": {
                    "enum": [
                      "user",
                      "assistant"
                    ],
                    "type": "string",
                    "title": "Role",
                    "description": "'assistant' is the Hail agent. 'user' is the person (or answering machine) on the other end of the line."
                  },
                  "text": {
                    "type": "string",
                    "title": "Text",
                    "description": "What was said in this turn."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "CallResponse",
                "required": [
                  "id",
                  "organization_id",
                  "from_e164",
                  "to_e164",
                  "direction",
                  "agent_id",
                  "status",
                  "end_reason",
                  "provider_call_sid",
                  "livekit_room",
                  "initial_prompt",
                  "recording_enabled",
                  "recording_status",
                  "recording_duration_ms",
                  "recording_s3_key",
                  "requested_at",
                  "started_at",
                  "answered_at",
                  "ended_at",
                  "failure_message",
                  "transcript"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this call."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "dialing",
                      "ringing",
                      "in_progress",
                      "completed",
                      "failed",
                      "busy",
                      "no_answer",
                      "canceled"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Current call-progress state: 'queued', 'dialing', 'ringing', 'in_progress', or one of the terminal states 'completed', 'failed', 'busy', 'no_answer', 'canceled'."
                  },
                  "to_e164": {
                    "type": "string",
                    "title": "To E164",
                    "description": "Recipient phone number, E.164 format."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "Agent that answered (inbound) or placed (outbound) this call. Null when the call was placed with an inline system_prompt."
                  },
                  "ended_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ended At",
                    "description": "When the call ended, ISO 8601 timestamp. Null while still in progress."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "description": "'outbound' for calls Hail placed, 'inbound' for calls received."
                  },
                  "from_e164": {
                    "type": "string",
                    "title": "From E164",
                    "description": "Caller-id phone number used, E.164 format."
                  },
                  "end_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "End Reason",
                    "description": "Machine-readable reason the call reached a terminal status (e.g. 'normal_hangup', 'user_rejected', 'sip_trunk_failure'). Null while the call is still in progress."
                  },
                  "started_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Started At",
                    "description": "When dialing began, ISO 8601 timestamp. Null until the call starts."
                  },
                  "transcript": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/CallTranscriptTurn"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Transcript",
                    "default": null,
                    "description": "What was said on the call, in the order it was said. Set only by GET /v1/calls/{call_id}: an empty list until someone speaks. Null in POST /v1/calls and GET /v1/calls responses."
                  },
                  "answered_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Answered At",
                    "description": "When the callee answered, ISO 8601 timestamp. Null if never answered."
                  },
                  "livekit_room": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Livekit Room",
                    "description": "Name of the LiveKit room hosting this call's media session, if one was created."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the call was requested, ISO 8601 timestamp."
                  },
                  "initial_prompt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Initial Prompt",
                    "description": "The system_prompt this call was created with, if any."
                  },
                  "failure_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Failure Message",
                    "default": null,
                    "description": "Human-readable explanation for a failed call. Null for other statuses."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that placed or received this call."
                  },
                  "recording_s3_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording S3 Key",
                    "description": "Internal storage key for the call recording. Not a directly fetchable URL."
                  },
                  "recording_status": {
                    "type": "string",
                    "title": "Recording Status",
                    "default": "disabled",
                    "description": "disabled, requested, starting, recording, processing, ready, unavailable, failed, or erased."
                  },
                  "provider_call_sid": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Call Sid",
                    "description": "The telephony provider's identifier for this call leg, if assigned."
                  },
                  "recording_enabled": {
                    "type": "boolean",
                    "title": "Recording Enabled",
                    "default": false,
                    "description": "Whether the recording-enabled call rate applies, regardless of capture outcome."
                  },
                  "recording_duration_ms": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Duration Ms",
                    "default": null,
                    "description": "Duration of captured audio, independent of billed call duration."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get a call",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_calls",
          "title": "List calls",
          "description": "List recent workspace calls, newest first.\n\n        The list contains call summaries. ``get_call`` reads the full call and transcript.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "list_calls_toolArguments",
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Only items sent to this E.164 phone number."
              },
              "limit": {
                "type": "integer",
                "title": "Limit",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Maximum records returned on this page."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "queued",
                      "dialing",
                      "ringing",
                      "in_progress",
                      "completed",
                      "failed",
                      "busy",
                      "no_answer",
                      "canceled"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Status",
                "default": null,
                "description": "Show only calls in this state now, for example ``in_progress`` for live calls or ``no_answer`` for missed ones. Omitted: all calls."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "CallResponse": {
                "type": "object",
                "title": "CallResponse",
                "required": [
                  "id",
                  "organization_id",
                  "from_e164",
                  "to_e164",
                  "direction",
                  "agent_id",
                  "status",
                  "end_reason",
                  "provider_call_sid",
                  "livekit_room",
                  "initial_prompt",
                  "recording_enabled",
                  "recording_status",
                  "recording_duration_ms",
                  "recording_s3_key",
                  "requested_at",
                  "started_at",
                  "answered_at",
                  "ended_at",
                  "failure_message",
                  "transcript"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this call."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "dialing",
                      "ringing",
                      "in_progress",
                      "completed",
                      "failed",
                      "busy",
                      "no_answer",
                      "canceled"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Current call-progress state: 'queued', 'dialing', 'ringing', 'in_progress', or one of the terminal states 'completed', 'failed', 'busy', 'no_answer', 'canceled'."
                  },
                  "to_e164": {
                    "type": "string",
                    "title": "To E164",
                    "description": "Recipient phone number, E.164 format."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "Agent that answered (inbound) or placed (outbound) this call. Null when the call was placed with an inline system_prompt."
                  },
                  "ended_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ended At",
                    "description": "When the call ended, ISO 8601 timestamp. Null while still in progress."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "description": "'outbound' for calls Hail placed, 'inbound' for calls received."
                  },
                  "from_e164": {
                    "type": "string",
                    "title": "From E164",
                    "description": "Caller-id phone number used, E.164 format."
                  },
                  "end_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "End Reason",
                    "description": "Machine-readable reason the call reached a terminal status (e.g. 'normal_hangup', 'user_rejected', 'sip_trunk_failure'). Null while the call is still in progress."
                  },
                  "started_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Started At",
                    "description": "When dialing began, ISO 8601 timestamp. Null until the call starts."
                  },
                  "transcript": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/CallTranscriptTurn"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Transcript",
                    "default": null,
                    "description": "What was said on the call, in the order it was said. Set only by GET /v1/calls/{call_id}: an empty list until someone speaks. Null in POST /v1/calls and GET /v1/calls responses."
                  },
                  "answered_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Answered At",
                    "description": "When the callee answered, ISO 8601 timestamp. Null if never answered."
                  },
                  "livekit_room": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Livekit Room",
                    "description": "Name of the LiveKit room hosting this call's media session, if one was created."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the call was requested, ISO 8601 timestamp."
                  },
                  "initial_prompt": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Initial Prompt",
                    "description": "The system_prompt this call was created with, if any."
                  },
                  "failure_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Failure Message",
                    "default": null,
                    "description": "Human-readable explanation for a failed call. Null for other statuses."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that placed or received this call."
                  },
                  "recording_s3_key": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording S3 Key",
                    "description": "Internal storage key for the call recording. Not a directly fetchable URL."
                  },
                  "recording_status": {
                    "type": "string",
                    "title": "Recording Status",
                    "default": "disabled",
                    "description": "disabled, requested, starting, recording, processing, ready, unavailable, failed, or erased."
                  },
                  "provider_call_sid": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Call Sid",
                    "description": "The telephony provider's identifier for this call leg, if assigned."
                  },
                  "recording_enabled": {
                    "type": "boolean",
                    "title": "Recording Enabled",
                    "default": false,
                    "description": "Whether the recording-enabled call rate applies, regardless of capture outcome."
                  },
                  "recording_duration_ms": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Duration Ms",
                    "default": null,
                    "description": "Duration of captured audio, independent of billed call duration."
                  }
                }
              },
              "CallTranscriptTurn": {
                "type": "object",
                "title": "CallTranscriptTurn",
                "required": [
                  "role",
                  "text",
                  "at"
                ],
                "properties": {
                  "at": {
                    "type": "string",
                    "title": "At",
                    "format": "date-time",
                    "description": "When the speaker started this turn, ISO 8601. When that is not known, when Hail recorded the turn."
                  },
                  "role": {
                    "enum": [
                      "user",
                      "assistant"
                    ],
                    "type": "string",
                    "title": "Role",
                    "description": "'assistant' is the Hail agent. 'user' is the person (or answering machine) on the other end of the line."
                  },
                  "text": {
                    "type": "string",
                    "title": "Text",
                    "description": "What was said in this turn."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "CallListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/CallResponse"
                    },
                    "title": "Items",
                    "description": "Calls in this page, newest first."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List calls",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "send_sms",
          "title": "Send a text message",
          "description": "Send an outbound text message.\n\n        Without ``from_``, supported destinations use the workspace's alphanumeric sender ID.\n        Other destinations use an eligible workspace SMS-capable number.\n        A missing required number returns 422. SMS does not use the shared voice-call pool.\n        US long-code texting to US recipients requires ready A2P 10DLC registration and an attached number.\n        Trial texts (only to the workspace's own verified phone, set up in the console: Overview > Test a text): without from_, Hail uses one when the workspace's own number cannot text that US phone; set from_ to the trial number to use one directly. Each starts with \"[Hail trial]\".\n\n        The message purpose determines the consent checks. Marketing requires a consent source.\n        Hail does not independently verify the recipient's consent.\n\n        The result includes the delivery status and retry key. A failed carrier attempt can\n        appear as a message record with status ``failed``.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "send_sms_toolArguments",
            "required": [
              "to",
              "body",
              "recipient_consent"
            ],
            "properties": {
              "to": {
                "type": "string",
                "title": "To",
                "description": "Recipient phone number in E.164 format, such as ``+14155551234``."
              },
              "body": {
                "type": "string",
                "title": "Body",
                "description": "Message text. Long bodies are split into carrier segments."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Sender: an active E.164 workspace number with SMS, from ``list_numbers``. Omitted: picked by destination (see the tool description)."
              },
              "metadata": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Metadata",
                "default": null,
                "description": "Extra data stored on the message record."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "message_type": {
                "type": "string",
                "title": "Message Type",
                "default": "informational",
                "description": "Purpose of the communication for consent checks. Transactional or service messages are ``informational``; promotional messages are ``marketing``."
              },
              "consent_source": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Consent Source",
                "default": null,
                "description": "Where or how consent was obtained, such as ``signup form``. Required when ``message_type`` is ``marketing``."
              },
              "idempotency_key": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Idempotency Key",
                "default": null,
                "description": "Retry key. The ``idempotency_key`` from an earlier response refers to that original request instead of starting a new one. Omitted: a new key is generated and returned."
              },
              "recipient_consent": {
                "type": "boolean",
                "title": "Recipient Consent",
                "description": "Confirmation from the user that the recipient lawfully agreed to be contacted. Hail requires ``true`` and does not independently verify consent."
              },
              "consent_obtained_at": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Consent Obtained At",
                "default": null,
                "description": "When consent was obtained, as an ISO 8601 timestamp, if known."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "SmsResponse",
                "required": [
                  "id",
                  "organization_id",
                  "from_e164",
                  "to_e164",
                  "direction",
                  "agent_id",
                  "status",
                  "body",
                  "provider_message_sid",
                  "segment_count",
                  "error_code",
                  "requested_at",
                  "sent_at",
                  "idempotency_key"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this message."
                  },
                  "body": {
                    "type": "string",
                    "title": "Body",
                    "description": "Message text."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "undelivered",
                      "received"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'undelivered', or 'received' (inbound messages)."
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sent At",
                    "description": "When the message was handed to the carrier, ISO 8601 timestamp. Null until sent."
                  },
                  "to_e164": {
                    "type": "string",
                    "title": "To E164",
                    "description": "Recipient phone number, E.164 format."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "The agent this text belongs to: the number's text agent on inbound texts, the agent that wrote it on outbound texts. Null when no agent is involved."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "description": "'outbound' for messages Hail sent, 'inbound' for messages received."
                  },
                  "from_e164": {
                    "type": "string",
                    "title": "From E164",
                    "description": "Sender phone number, E.164 format."
                  },
                  "error_code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Error Code",
                    "description": "Carrier error code if delivery failed. Null on success or while pending."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the send was requested, ISO 8601 timestamp."
                  },
                  "segment_count": {
                    "type": "integer",
                    "title": "Segment Count",
                    "description": "Number of carrier SMS segments the body was split into."
                  },
                  "idempotency_key": {
                    "type": "string",
                    "description": "Key that identifies this exact request when retrying."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that sent or received this message."
                  },
                  "provider_message_sid": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Message Sid",
                    "description": "The carrier/provider's identifier for this message, if assigned."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Send a text message",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_sms",
          "title": "Get a text message",
          "description": "Read a text message's current state by ID.\n\n        Returns the message record, including delivery status, or an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_sms_toolArguments",
            "required": [
              "sms_id"
            ],
            "properties": {
              "sms_id": {
                "type": "string",
                "title": "Sms Id",
                "description": "Text message ID, from ``send_sms`` or ``list_sms``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "SmsResponse",
                "required": [
                  "id",
                  "organization_id",
                  "from_e164",
                  "to_e164",
                  "direction",
                  "agent_id",
                  "status",
                  "body",
                  "provider_message_sid",
                  "segment_count",
                  "error_code",
                  "requested_at",
                  "sent_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this message."
                  },
                  "body": {
                    "type": "string",
                    "title": "Body",
                    "description": "Message text."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "undelivered",
                      "received"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'undelivered', or 'received' (inbound messages)."
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sent At",
                    "description": "When the message was handed to the carrier, ISO 8601 timestamp. Null until sent."
                  },
                  "to_e164": {
                    "type": "string",
                    "title": "To E164",
                    "description": "Recipient phone number, E.164 format."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "The agent this text belongs to: the number's text agent on inbound texts, the agent that wrote it on outbound texts. Null when no agent is involved."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "description": "'outbound' for messages Hail sent, 'inbound' for messages received."
                  },
                  "from_e164": {
                    "type": "string",
                    "title": "From E164",
                    "description": "Sender phone number, E.164 format."
                  },
                  "error_code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Error Code",
                    "description": "Carrier error code if delivery failed. Null on success or while pending."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the send was requested, ISO 8601 timestamp."
                  },
                  "segment_count": {
                    "type": "integer",
                    "title": "Segment Count",
                    "description": "Number of carrier SMS segments the body was split into."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that sent or received this message."
                  },
                  "provider_message_sid": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Message Sid",
                    "description": "The carrier/provider's identifier for this message, if assigned."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get a text message",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_sms",
          "title": "List text messages",
          "description": "List recent workspace text messages and their delivery states.\n\n        A message ID in the results identifies the same record in ``get_sms``.",
          "inputSchema": {
            "type": "object",
            "title": "list_sms_toolArguments",
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "Only items sent to this E.164 phone number."
              },
              "limit": {
                "type": "integer",
                "title": "Limit",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Maximum records returned on this page."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "undelivered",
                      "received"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Status",
                "default": null,
                "description": "Only messages currently in this status; ``received`` means inbound. Omitted: every status."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "SmsResponse": {
                "type": "object",
                "title": "SmsResponse",
                "required": [
                  "id",
                  "organization_id",
                  "from_e164",
                  "to_e164",
                  "direction",
                  "agent_id",
                  "status",
                  "body",
                  "provider_message_sid",
                  "segment_count",
                  "error_code",
                  "requested_at",
                  "sent_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this message."
                  },
                  "body": {
                    "type": "string",
                    "title": "Body",
                    "description": "Message text."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "undelivered",
                      "received"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'undelivered', or 'received' (inbound messages)."
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sent At",
                    "description": "When the message was handed to the carrier, ISO 8601 timestamp. Null until sent."
                  },
                  "to_e164": {
                    "type": "string",
                    "title": "To E164",
                    "description": "Recipient phone number, E.164 format."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "The agent this text belongs to: the number's text agent on inbound texts, the agent that wrote it on outbound texts. Null when no agent is involved."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "description": "'outbound' for messages Hail sent, 'inbound' for messages received."
                  },
                  "from_e164": {
                    "type": "string",
                    "title": "From E164",
                    "description": "Sender phone number, E.164 format."
                  },
                  "error_code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Error Code",
                    "description": "Carrier error code if delivery failed. Null on success or while pending."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the send was requested, ISO 8601 timestamp."
                  },
                  "segment_count": {
                    "type": "integer",
                    "title": "Segment Count",
                    "description": "Number of carrier SMS segments the body was split into."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that sent or received this message."
                  },
                  "provider_message_sid": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Message Sid",
                    "description": "The carrier/provider's identifier for this message, if assigned."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "SmsListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/SmsResponse"
                    },
                    "title": "Items",
                    "description": "Messages in this page, newest first."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List text messages",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_email",
          "title": "Get an email",
          "description": "Read a complete workspace email by ID.\n\n        Returns ``body_text``, ``body_html`` and other email fields.\n        Inbound records include reply headers and spam, virus, SPF, DKIM and DMARC verdicts.\n        Attachments include IDs and file metadata.\n        An unknown or inaccessible email returns an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_email_toolArguments",
            "required": [
              "email_id"
            ],
            "properties": {
              "email_id": {
                "type": "string",
                "title": "Email Id",
                "description": "Email ID, from ``send_email`` or ``list_emails``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "EmailAttachmentResponse": {
                "type": "object",
                "title": "EmailAttachmentResponse",
                "required": [
                  "id",
                  "filename",
                  "content_type",
                  "size_bytes",
                  "content_id",
                  "url"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this attachment."
                  },
                  "url": {
                    "type": "string",
                    "title": "Url",
                    "description": "API endpoint that 302-redirects to a presigned download URL for this attachment."
                  },
                  "filename": {
                    "type": "string",
                    "title": "Filename",
                    "description": "Original filename of the attachment."
                  },
                  "content_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Content Id",
                    "default": null,
                    "description": "MIME Content-ID, present when this attachment is referenced inline (cid:) from the HTML body. Null otherwise."
                  },
                  "size_bytes": {
                    "type": "integer",
                    "title": "Size Bytes",
                    "description": "Size of the attachment in bytes."
                  },
                  "content_type": {
                    "type": "string",
                    "title": "Content Type",
                    "description": "MIME type of the attachment."
                  }
                },
                "description": "One inbound MIME attachment as exposed to API consumers.\n\n``url`` is the stable Hail API endpoint that 302-redirects to a\npresigned S3 URL on access — see GET /emails/{id}/attachments/{aid}."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailResponse",
                "required": [
                  "id",
                  "organization_id",
                  "email_domain_id",
                  "direction",
                  "from_address",
                  "from_name",
                  "to_addresses",
                  "cc_addresses",
                  "bcc_addresses",
                  "reply_to",
                  "subject",
                  "status",
                  "end_reason",
                  "provider_message_id",
                  "requested_at",
                  "sent_at",
                  "failed_at",
                  "metadata",
                  "body_text",
                  "body_html",
                  "message_id",
                  "in_reply_to",
                  "references_ids",
                  "agent_id",
                  "agent_reply_state",
                  "spam_verdict",
                  "virus_verdict",
                  "dkim_verdict",
                  "spf_verdict",
                  "dmarc_verdict",
                  "provider_received_at",
                  "raw_url",
                  "attachments",
                  "last_event_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this email."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "bounced",
                      "complained",
                      "received"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'bounced', 'complained', or 'received' (inbound emails)."
                  },
                  "raw_url": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Raw Url",
                    "default": null,
                    "description": "API endpoint that redirects to the original MIME blob. Inbound emails only; null on outbound rows."
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sent At",
                    "description": "When the message was handed to the provider, ISO 8601 timestamp. Null until sent."
                  },
                  "subject": {
                    "type": "string",
                    "title": "Subject",
                    "description": "Email subject line."
                  },
                  "agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Id",
                    "default": null,
                    "description": "The agent this email belongs to: the address's agent on inbound rows, the writer on outbound rows."
                  },
                  "metadata": {
                    "type": "object",
                    "title": "Metadata",
                    "description": "Free-form JSON object attached to the email, as sent on create. Not interpreted by Hail.",
                    "additionalProperties": true
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Reply To",
                    "description": "Reply-To email address, if set."
                  },
                  "body_html": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Body Html",
                    "description": "HTML body, if any."
                  },
                  "body_text": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Body Text",
                    "description": "Plain-text body, if any."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "default": "outbound",
                    "description": "'outbound' for emails Hail sent, 'inbound' for emails received."
                  },
                  "failed_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Failed At",
                    "description": "When the send failed, ISO 8601 timestamp. Null unless it failed."
                  },
                  "from_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "From Name",
                    "default": null,
                    "description": "Display name used on the From: header, when the sender supplied one. Always null on inbound rows."
                  },
                  "end_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "End Reason",
                    "description": "Reason delivery failed or bounced, if applicable. Null on success or while pending."
                  },
                  "message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Message Id",
                    "default": null,
                    "description": "RFC 5322 Message-ID header. Inbound emails only; null on outbound rows."
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailAttachmentResponse"
                    },
                    "title": "Attachments",
                    "default": [],
                    "description": "Inbound MIME attachments on this email. Empty on outbound rows."
                  },
                  "in_reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "In Reply To",
                    "default": null,
                    "description": "RFC 5322 In-Reply-To header. Set on inbound emails and agent replies; null on other outbound rows."
                  },
                  "spf_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Spf Verdict",
                    "default": null,
                    "description": "Provider SPF-authentication verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "cc_addresses": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Cc Addresses",
                    "description": "CC recipient email addresses, if any."
                  },
                  "dkim_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Dkim Verdict",
                    "default": null,
                    "description": "Provider DKIM-authentication verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "from_address": {
                    "type": "string",
                    "title": "From Address",
                    "description": "Sender email address."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the send was requested, ISO 8601 timestamp."
                  },
                  "spam_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Spam Verdict",
                    "default": null,
                    "description": "Provider spam-scan verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "to_addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "To Addresses",
                    "description": "Recipient email addresses."
                  },
                  "bcc_addresses": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Bcc Addresses",
                    "description": "BCC recipient email addresses, if any."
                  },
                  "dmarc_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Dmarc Verdict",
                    "default": null,
                    "description": "Provider DMARC-authentication verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "last_event_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Last Event At",
                    "default": null,
                    "description": "When the most recent delivery event for this email occurred, ISO 8601 timestamp."
                  },
                  "virus_verdict": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Virus Verdict",
                    "default": null,
                    "description": "Provider virus-scan verdict (e.g. 'PASS'/'FAIL'). Inbound emails only; null on outbound rows."
                  },
                  "references_ids": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "References Ids",
                    "default": null,
                    "description": "RFC 5322 References header, split into ids. Set on inbound emails and agent replies; null on other outbound rows."
                  },
                  "email_domain_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email Domain Id",
                    "description": "The sending domain used, if from_address belongs to one of the org's configured domains."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that sent or received this email."
                  },
                  "agent_reply_state": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Agent Reply State",
                    "default": null,
                    "description": "Inbound rows routed to an agent: 'pending', 'processing', 'done', 'skipped', or 'failed'. A skipped row names why in metadata.agent_skip_reason."
                  },
                  "provider_message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Message Id",
                    "description": "The email provider's identifier for this message, if assigned."
                  },
                  "provider_received_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Received At",
                    "default": null,
                    "description": "When the provider received this email, ISO 8601 timestamp. Inbound emails only."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get an email",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_emails",
          "title": "List emails",
          "description": "List workspace email summaries, newest first.\n\n        Summaries contain IDs and metadata. ``get_email`` reads the body of a\n        specific message.",
          "inputSchema": {
            "type": "object",
            "title": "list_emails_toolArguments",
            "properties": {
              "limit": {
                "type": "integer",
                "title": "Limit",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Maximum records returned on this page."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "bounced",
                      "complained",
                      "received"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Status",
                "default": null,
                "description": "Only emails currently in this status; ``received`` means inbound. Omitted: every status."
              },
              "direction": {
                "anyOf": [
                  {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Direction",
                "default": null,
                "description": "Only mail received by the workspace (``inbound``) or only mail it sent (``outbound``). Omitted: both."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "EmailSummary": {
                "type": "object",
                "title": "EmailSummary",
                "required": [
                  "id",
                  "organization_id",
                  "email_domain_id",
                  "direction",
                  "from_address",
                  "from_name",
                  "to_addresses",
                  "cc_addresses",
                  "bcc_addresses",
                  "reply_to",
                  "subject",
                  "status",
                  "end_reason",
                  "provider_message_id",
                  "requested_at",
                  "sent_at",
                  "failed_at",
                  "metadata"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this email."
                  },
                  "status": {
                    "enum": [
                      "queued",
                      "sent",
                      "delivered",
                      "failed",
                      "bounced",
                      "complained",
                      "received"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'bounced', 'complained', or 'received' (inbound emails)."
                  },
                  "sent_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sent At",
                    "description": "When the message was handed to the provider, ISO 8601 timestamp. Null until sent."
                  },
                  "subject": {
                    "type": "string",
                    "title": "Subject",
                    "description": "Email subject line."
                  },
                  "metadata": {
                    "type": "object",
                    "title": "Metadata",
                    "description": "Free-form JSON object attached to the email, as sent on create. Not interpreted by Hail.",
                    "additionalProperties": true
                  },
                  "reply_to": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Reply To",
                    "description": "Reply-To email address, if set."
                  },
                  "direction": {
                    "enum": [
                      "outbound",
                      "inbound"
                    ],
                    "type": "string",
                    "title": "Direction",
                    "default": "outbound",
                    "description": "'outbound' for emails Hail sent, 'inbound' for emails received."
                  },
                  "failed_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Failed At",
                    "description": "When the send failed, ISO 8601 timestamp. Null unless it failed."
                  },
                  "from_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "From Name",
                    "default": null,
                    "description": "Display name used on the From: header, when the sender supplied one. Always null on inbound rows."
                  },
                  "end_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "End Reason",
                    "description": "Reason delivery failed or bounced, if applicable. Null on success or while pending."
                  },
                  "cc_addresses": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Cc Addresses",
                    "description": "CC recipient email addresses, if any."
                  },
                  "from_address": {
                    "type": "string",
                    "title": "From Address",
                    "description": "Sender email address."
                  },
                  "requested_at": {
                    "type": "string",
                    "title": "Requested At",
                    "format": "date-time",
                    "description": "When the send was requested, ISO 8601 timestamp."
                  },
                  "to_addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "To Addresses",
                    "description": "Recipient email addresses."
                  },
                  "bcc_addresses": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Bcc Addresses",
                    "description": "BCC recipient email addresses, if any."
                  },
                  "email_domain_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email Domain Id",
                    "description": "The sending domain used, if from_address belongs to one of the org's configured domains."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that sent or received this email."
                  },
                  "provider_message_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Provider Message Id",
                    "description": "The email provider's identifier for this message, if assigned."
                  }
                },
                "description": "Trimmed view for list endpoints — drops the message bodies.\n\nBodies can be large and contain PII; paging through a year of mail\nshouldn't return every byte of every message just to render a list.\nUse ``EmailResponse`` (via ``GET /emails/{id}``) for the full row."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailSummary"
                    },
                    "title": "Items",
                    "description": "Emails in this page, newest first."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List emails",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_email_raw",
          "title": "Get raw email",
          "description": "Return a temporary download URL for an inbound email's original MIME source.\n\n        The URL expires after approximately five minutes and requires no authorization header.\n        Raw source is available only for inbound emails.\n        Returns ``url``, or an error for an unavailable email.",
          "inputSchema": {
            "type": "object",
            "title": "get_email_raw_toolArguments",
            "required": [
              "email_id"
            ],
            "properties": {
              "email_id": {
                "type": "string",
                "title": "Email Id",
                "description": "Inbound email ID, from ``list_emails`` with direction ``inbound``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Short-lived download URL."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get raw email",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_email_attachment",
          "title": "Get an email attachment",
          "description": "Return a temporary download URL for an inbound email attachment.\n\n        The URL expires after approximately five minutes and requires no authorization header.\n        Returns ``url``, or an error for an unavailable attachment.",
          "inputSchema": {
            "type": "object",
            "title": "get_email_attachment_toolArguments",
            "required": [
              "email_id",
              "attachment_id"
            ],
            "properties": {
              "email_id": {
                "type": "string",
                "title": "Email Id",
                "description": "Inbound email ID, from ``list_emails`` with direction ``inbound``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "attachment_id": {
                "type": "string",
                "title": "Attachment Id",
                "description": "Attachment ID, from the ``attachments`` of ``get_email``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Short-lived download URL."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get an email attachment",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_email_events",
          "title": "Get email events",
          "description": "Read one email's delivery and engagement timeline.\n\n        Events include sent, delivered, delivery_delayed, bounced, complained,\n        rejected, opened and clicked, with ``payload`` and ``occurred_at``.\n        Open and click tracking requires an HTML email body. Delivery events\n        are also available for plain-text email.",
          "inputSchema": {
            "type": "object",
            "title": "get_email_events_toolArguments",
            "required": [
              "email_id"
            ],
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 1000,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Maximum records returned on this page. Omitted: the API returns 100."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "email_id": {
                "type": "string",
                "title": "Email Id",
                "description": "Email ID, from ``send_email`` or ``list_emails``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "EmailEventResponse": {
                "type": "object",
                "title": "EmailEventResponse",
                "required": [
                  "id",
                  "email_id",
                  "kind",
                  "payload",
                  "occurred_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this event."
                  },
                  "kind": {
                    "enum": [
                      "sent",
                      "delivered",
                      "delivery_delayed",
                      "bounced",
                      "complained",
                      "rejected",
                      "opened",
                      "clicked"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "description": "Event kind: 'sent', 'delivered', 'delivery_delayed', 'bounced', 'complained', 'rejected', 'opened', or 'clicked'. 'opened' and 'clicked' only occur for emails sent with an HTML body; plain-text-only emails never produce them."
                  },
                  "payload": {
                    "type": "object",
                    "title": "Payload",
                    "description": "Event-kind-specific detail, as a free-form JSON object.",
                    "additionalProperties": true
                  },
                  "email_id": {
                    "type": "string",
                    "title": "Email Id",
                    "format": "uuid",
                    "description": "The email this event belongs to."
                  },
                  "occurred_at": {
                    "type": "string",
                    "title": "Occurred At",
                    "format": "date-time",
                    "description": "When this event occurred, ISO 8601 timestamp."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailEventListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailEventResponse"
                    },
                    "title": "Items",
                    "description": "Events for this email, oldest first."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get email events",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_email_stats",
          "title": "Get email stats",
          "description": "Read workspace email delivery counts, rates and time series.\n\n        Without ``from_`` and ``to``, the range is the last seven days.\n        Hourly ranges are limited to eight days; all ranges to 92 days.\n        Returns ``from``, ``to``, ``bucket``, ``totals``, ``rates`` and ``series``.\n        Rates are null when the sent count is zero.\n        Open and click counts cover HTML emails only; plain-text emails lower these rates.\n        An upstream failure returns an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_email_stats_toolArguments",
            "properties": {
              "to": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "To",
                "default": null,
                "description": "End of the counting window, with a time zone. Omitted: now."
              },
              "from_": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "From",
                "default": null,
                "description": "Start of the counting window, with a time zone. Omitted: seven days before ``to``."
              },
              "bucket": {
                "enum": [
                  "hour",
                  "day"
                ],
                "type": "string",
                "title": "Bucket",
                "default": "day",
                "description": "Time span each point in ``series`` counts. Hourly points suit short ranges; daily points suit weeks."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "EmailStatsRates": {
                "type": "object",
                "title": "EmailStatsRates",
                "required": [
                  "delivery",
                  "bounce",
                  "complaint",
                  "open",
                  "click"
                ],
                "properties": {
                  "open": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Open",
                    "default": null,
                    "description": "unique_opened / sent for the window. Null when sent == 0. Only HTML emails can be opened-tracked, so plain-text sends lower this rate."
                  },
                  "click": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Click",
                    "default": null,
                    "description": "unique_clicked / sent for the window. Null when sent == 0. Only HTML emails can be click-tracked, so plain-text sends lower this rate."
                  },
                  "bounce": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Bounce",
                    "default": null,
                    "description": "bounced_hard / sent for the window. Null when sent == 0."
                  },
                  "delivery": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Delivery",
                    "default": null,
                    "description": "delivered / sent for the window. Null when sent == 0."
                  },
                  "complaint": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Complaint",
                    "default": null,
                    "description": "complained / sent for the window. Null when sent == 0."
                  }
                },
                "description": "All None when sent == 0 in the window."
              },
              "EmailStatsBucket": {
                "type": "object",
                "title": "EmailStatsBucket",
                "required": [
                  "sent",
                  "delivered",
                  "delivery_delayed",
                  "bounced",
                  "bounced_hard",
                  "complained",
                  "rejected",
                  "opened",
                  "clicked",
                  "unique_opened",
                  "unique_clicked",
                  "bucket_start"
                ],
                "properties": {
                  "sent": {
                    "type": "integer",
                    "title": "Sent",
                    "default": 0,
                    "description": "Emails sent in the window."
                  },
                  "opened": {
                    "type": "integer",
                    "title": "Opened",
                    "default": 0,
                    "description": "Total open events in the window, including repeat opens by the same recipient. HTML emails only; plain-text-only emails are never tracked for opens."
                  },
                  "bounced": {
                    "type": "integer",
                    "title": "Bounced",
                    "default": 0,
                    "description": "Emails bounced (soft or hard) in the window."
                  },
                  "clicked": {
                    "type": "integer",
                    "title": "Clicked",
                    "default": 0,
                    "description": "Total click events in the window, including repeat clicks by the same recipient. HTML emails only; plain-text-only emails are never tracked for clicks."
                  },
                  "rejected": {
                    "type": "integer",
                    "title": "Rejected",
                    "default": 0,
                    "description": "Emails rejected by the provider before sending, in the window."
                  },
                  "delivered": {
                    "type": "integer",
                    "title": "Delivered",
                    "default": 0,
                    "description": "Emails confirmed delivered in the window."
                  },
                  "complained": {
                    "type": "integer",
                    "title": "Complained",
                    "default": 0,
                    "description": "Emails that received a spam complaint in the window."
                  },
                  "bounced_hard": {
                    "type": "integer",
                    "title": "Bounced Hard",
                    "default": 0,
                    "description": "Emails hard-bounced in the window. Subset of bounced."
                  },
                  "bucket_start": {
                    "type": "string",
                    "title": "Bucket Start",
                    "format": "date-time",
                    "description": "Start of this bucket, ISO 8601 timestamp."
                  },
                  "unique_opened": {
                    "type": "integer",
                    "title": "Unique Opened",
                    "default": 0,
                    "description": "Distinct emails opened at least once in the window (HTML emails only)."
                  },
                  "unique_clicked": {
                    "type": "integer",
                    "title": "Unique Clicked",
                    "default": 0,
                    "description": "Distinct emails clicked at least once in the window (HTML emails only)."
                  },
                  "delivery_delayed": {
                    "type": "integer",
                    "title": "Delivery Delayed",
                    "default": 0,
                    "description": "Emails with a delivery-delayed event in the window."
                  }
                }
              },
              "EmailStatsCounts": {
                "type": "object",
                "title": "EmailStatsCounts",
                "required": [
                  "sent",
                  "delivered",
                  "delivery_delayed",
                  "bounced",
                  "bounced_hard",
                  "complained",
                  "rejected",
                  "opened",
                  "clicked",
                  "unique_opened",
                  "unique_clicked"
                ],
                "properties": {
                  "sent": {
                    "type": "integer",
                    "title": "Sent",
                    "default": 0,
                    "description": "Emails sent in the window."
                  },
                  "opened": {
                    "type": "integer",
                    "title": "Opened",
                    "default": 0,
                    "description": "Total open events in the window, including repeat opens by the same recipient. HTML emails only; plain-text-only emails are never tracked for opens."
                  },
                  "bounced": {
                    "type": "integer",
                    "title": "Bounced",
                    "default": 0,
                    "description": "Emails bounced (soft or hard) in the window."
                  },
                  "clicked": {
                    "type": "integer",
                    "title": "Clicked",
                    "default": 0,
                    "description": "Total click events in the window, including repeat clicks by the same recipient. HTML emails only; plain-text-only emails are never tracked for clicks."
                  },
                  "rejected": {
                    "type": "integer",
                    "title": "Rejected",
                    "default": 0,
                    "description": "Emails rejected by the provider before sending, in the window."
                  },
                  "delivered": {
                    "type": "integer",
                    "title": "Delivered",
                    "default": 0,
                    "description": "Emails confirmed delivered in the window."
                  },
                  "complained": {
                    "type": "integer",
                    "title": "Complained",
                    "default": 0,
                    "description": "Emails that received a spam complaint in the window."
                  },
                  "bounced_hard": {
                    "type": "integer",
                    "title": "Bounced Hard",
                    "default": 0,
                    "description": "Emails hard-bounced in the window. Subset of bounced."
                  },
                  "unique_opened": {
                    "type": "integer",
                    "title": "Unique Opened",
                    "default": 0,
                    "description": "Distinct emails opened at least once in the window (HTML emails only)."
                  },
                  "unique_clicked": {
                    "type": "integer",
                    "title": "Unique Clicked",
                    "default": 0,
                    "description": "Distinct emails clicked at least once in the window (HTML emails only)."
                  },
                  "delivery_delayed": {
                    "type": "integer",
                    "title": "Delivery Delayed",
                    "default": 0,
                    "description": "Emails with a delivery-delayed event in the window."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailStatsResponse",
                "required": [
                  "from",
                  "to",
                  "bucket",
                  "totals",
                  "rates",
                  "series"
                ],
                "properties": {
                  "to": {
                    "type": "string",
                    "title": "To",
                    "format": "date-time",
                    "description": "End of the queried window, ISO 8601 timestamp (exclusive)."
                  },
                  "from": {
                    "type": "string",
                    "title": "From",
                    "format": "date-time",
                    "description": "Start of the queried window, ISO 8601 timestamp (inclusive)."
                  },
                  "rates": {
                    "$ref": "#/$defs/EmailStatsRates",
                    "description": "Derived rates (delivery, bounce, complaint, open, click) for the whole window. Each individual rate is null when sent == 0."
                  },
                  "bucket": {
                    "enum": [
                      "hour",
                      "day"
                    ],
                    "type": "string",
                    "title": "Bucket",
                    "description": "Time-bucket size used for the series."
                  },
                  "series": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailStatsBucket"
                    },
                    "title": "Series",
                    "description": "Per-bucket event counts across the window, in chronological order."
                  },
                  "totals": {
                    "$ref": "#/$defs/EmailStatsCounts",
                    "description": "Event counts summed across the whole window."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get email stats",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_events",
          "title": "Get events",
          "description": "Read a page of workspace events or events for one resource.\n\n        A call-specific response includes the current ``call_status``.\n        Terminal call states are completed, failed, busy, no_answer and canceled.\n        This is a snapshot for checking progress. ``call_status`` is null for\n        workspace-wide results and for non-call resource filters.",
          "inputSchema": {
            "type": "object",
            "title": "get_events_toolArguments",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Id",
                "default": null,
                "description": "One resource: ``call:<uuid>``, ``email:<uuid>`` or ``sms:<uuid>``, with the ID from ``place_call``, ``send_email``, ``send_sms`` or their list tools. Omitted: events for the whole workspace."
              },
              "kind": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Kind",
                "default": null,
                "description": "Only events of this type, such as state_change, agent_turn, user_turn, tool_call or error."
              },
              "limit": {
                "type": "integer",
                "title": "Limit",
                "default": 100,
                "maximum": 1000,
                "minimum": 1,
                "description": "Maximum records returned on this page."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "EventResponse": {
                "type": "object",
                "title": "EventResponse",
                "required": [
                  "id",
                  "source",
                  "call_id",
                  "email_id",
                  "sms_id",
                  "kind",
                  "payload",
                  "occurred_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this event."
                  },
                  "kind": {
                    "type": "string",
                    "title": "Kind",
                    "description": "Event kind within the source (e.g. 'queued', 'delivered', 'bounced'). Vocabulary differs per source."
                  },
                  "sms_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sms Id",
                    "default": null,
                    "description": "The message this event belongs to. Set only when source='sms'."
                  },
                  "source": {
                    "enum": [
                      "call",
                      "email",
                      "sms"
                    ],
                    "type": "string",
                    "title": "Source",
                    "description": "Which channel this event belongs to: 'call', 'email', or 'sms'."
                  },
                  "call_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Call Id",
                    "default": null,
                    "description": "The call this event belongs to. Set only when source='call'."
                  },
                  "payload": {
                    "type": "object",
                    "title": "Payload",
                    "description": "Event-kind-specific detail, as a free-form JSON object.",
                    "additionalProperties": true
                  },
                  "email_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email Id",
                    "default": null,
                    "description": "The email this event belongs to. Set only when source='email'."
                  },
                  "occurred_at": {
                    "type": "string",
                    "title": "Occurred At",
                    "format": "date-time",
                    "description": "When this event occurred, ISO 8601 timestamp."
                  }
                },
                "description": "One event on the unified GET /events stream (call, email, or SMS)."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EventStreamResponse",
                "required": [
                  "items",
                  "next_cursor",
                  "call_status"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EventResponse"
                    },
                    "title": "Items",
                    "description": "Events in this page, oldest first."
                  },
                  "call_status": {
                    "anyOf": [
                      {
                        "enum": [
                          "queued",
                          "dialing",
                          "ringing",
                          "in_progress",
                          "completed",
                          "failed",
                          "busy",
                          "no_answer",
                          "canceled"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Call Status",
                    "default": null,
                    "description": "Current status of the call named by the id filter (e.g. id=call:<uuid>). Null for org-wide tails and non-call filters, since there is no single call to report a status for."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get events",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_agents",
          "title": "List agents",
          "description": "List the workspace's saved agents and their settings.\n\n        Agent records contain IDs, names, instructions, greetings, disclosure settings,\n        voice settings, enabled channels, status, duration limits and handover contacts.\n        Returns ``items`` or an error.",
          "inputSchema": {
            "type": "object",
            "title": "list_agents_toolArguments",
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "HttpToolOut": {
                "type": "object",
                "title": "HttpToolOut",
                "required": [
                  "name",
                  "description",
                  "url",
                  "parameters",
                  "header_names",
                  "timeout_seconds",
                  "wait_message"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "title": "Url",
                    "description": "HTTPS endpoint Hail POSTs to."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Function name the model calls."
                  },
                  "parameters": {
                    "type": "object",
                    "title": "Parameters",
                    "description": "JSON Schema of the arguments.",
                    "additionalProperties": true
                  },
                  "description": {
                    "type": "string",
                    "title": "Description",
                    "description": "What the tool does. Read by the model."
                  },
                  "header_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Header Names",
                    "description": "Names of the saved static headers. Values are never returned."
                  },
                  "wait_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Wait Message",
                    "description": "Sentence said on a call while waiting, or null."
                  },
                  "timeout_seconds": {
                    "type": "integer",
                    "title": "Timeout Seconds",
                    "description": "Seconds Hail waits for the answer."
                  }
                }
              },
              "AgentResponse": {
                "type": "object",
                "title": "AgentResponse",
                "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"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this agent."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name, unique per organization."
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Tools",
                    "description": "Allowed tools; null means all."
                  },
                  "status": {
                    "enum": [
                      "live",
                      "paused"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "'live' or 'paused'."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "http_tools": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HttpToolOut"
                    },
                    "title": "Http Tools",
                    "description": "Your APIs the agent may call."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "sms_enabled": {
                    "type": "boolean",
                    "title": "Sms Enabled",
                    "description": "Whether the agent answers texts."
                  },
                  "voice_config": {
                    "type": "object",
                    "title": "Voice Config",
                    "description": "TTS voice and language settings.",
                    "additionalProperties": true
                  },
                  "ai_disclosure": {
                    "type": "boolean",
                    "title": "Ai Disclosure",
                    "description": "Whether the AI line is spoken first."
                  },
                  "email_enabled": {
                    "type": "boolean",
                    "title": "Email Enabled",
                    "default": true,
                    "description": "Whether the agent answers email."
                  },
                  "first_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "First Message",
                    "description": "Opening line, or null to wait."
                  },
                  "system_prompt": {
                    "type": "string",
                    "title": "System Prompt",
                    "description": "Task instructions."
                  },
                  "voice_enabled": {
                    "type": "boolean",
                    "title": "Voice Enabled",
                    "description": "Whether the agent answers calls."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that owns this agent."
                  },
                  "http_tool_secret": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Http Tool Secret",
                    "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."
                  },
                  "handover_contacts": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HandoverContactOut"
                    },
                    "title": "Handover Contacts",
                    "description": "People the agent may hand a live call to."
                  },
                  "recording_enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Enabled",
                    "default": null,
                    "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting."
                  },
                  "ai_disclosure_line": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ai Disclosure Line",
                    "description": "This agent's AI line template, or null for the workspace line."
                  },
                  "max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Duration Seconds",
                    "description": "Soft cap per call; null means the workspace limit."
                  },
                  "handover_max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Handover Max Duration Seconds",
                    "description": "Call limit after a handover contact answers; null means 1800 (30 minutes)."
                  }
                }
              },
              "HandoverContactOut": {
                "type": "object",
                "title": "HandoverContactOut",
                "required": [
                  "contact_id",
                  "name",
                  "phone_e164",
                  "note"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Name, as the agent says it."
                  },
                  "note": {
                    "type": "string",
                    "title": "Note",
                    "description": "When the agent hands over to this person."
                  },
                  "contact_id": {
                    "type": "string",
                    "title": "Contact Id",
                    "description": "The person: a contact's id, or `member:<user id>` for a team member."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "description": "Number Hail dials. Null when the contact lost its number; it is then skipped."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "AgentListResponse",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/AgentResponse"
                    },
                    "title": "Items",
                    "description": "Agents, newest first."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List agents",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_agent",
          "title": "Create an agent",
          "description": "Save an agent for calls, texts, and email replies.\n\n        The saved instructions and enabled channels apply when a number or email address\n        routes to this agent. Saving the agent does not change existing routing.\n        The call agent can hand over to listed contacts without seeing their phone numbers.\n\n        Without a voice override, the built-in providers use the deployment's\n        configured voice. A workspace provider uses its configured voice or its\n        own default. An omitted language uses the speech providers' defaults (English).\n        Without a tool list, the workspace's channels determine the available tools.\n        The workspace call limit applies unless overridden, and the handover limit\n        defaults to 30 minutes from the contact answering.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "create_agent_toolArguments",
            "required": [
              "name",
              "system_prompt"
            ],
            "properties": {
              "name": {
                "type": "string",
                "title": "Name",
                "description": "Agent display name."
              },
              "tools": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tools",
                "default": null,
                "description": "Names of allowed built-in tools for calls or replies. An empty list selects none. Hail adds call transfer when handover contacts are configured."
              },
              "language": {
                "anyOf": [
                  {
                    "enum": [
                      "ar",
                      "bg",
                      "bn",
                      "cs",
                      "da",
                      "de",
                      "el",
                      "en",
                      "es",
                      "fi",
                      "fr",
                      "gu",
                      "he",
                      "hi",
                      "hr",
                      "hu",
                      "id",
                      "it",
                      "ja",
                      "kn",
                      "ko",
                      "mr",
                      "ms",
                      "nl",
                      "no",
                      "pl",
                      "pt",
                      "ro",
                      "ru",
                      "sk",
                      "sv",
                      "ta",
                      "te",
                      "th",
                      "tl",
                      "tr",
                      "uk",
                      "vi",
                      "zh"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Language",
                "default": null,
                "description": "Spoken language on calls, such as ``es`` for Spanish."
              },
              "voice_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Voice Id",
                "default": null,
                "description": "Text-to-speech voice ID from the voice provider that serves the call, such as an ElevenLabs voice ID."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "http_tools": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Http Tools",
                "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."
              },
              "sms_enabled": {
                "type": "boolean",
                "title": "Sms Enabled",
                "default": true,
                "description": "Whether this agent answers texts on numbers whose texts route to it."
              },
              "ai_disclosure": {
                "type": "boolean",
                "title": "Ai Disclosure",
                "default": true,
                "description": "Speak the AI disclosure line first on every call."
              },
              "email_enabled": {
                "type": "boolean",
                "title": "Email Enabled",
                "default": true,
                "description": "Whether this agent replies to mail on addresses routed to it."
              },
              "first_message": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "First Message",
                "default": null,
                "description": "Greeting spoken after the AI disclosure. Without one, an inbound agent waits for the caller."
              },
              "system_prompt": {
                "type": "string",
                "title": "System Prompt",
                "description": "Instructions that define the agent's behavior on calls, texts and email replies."
              },
              "voice_enabled": {
                "type": "boolean",
                "title": "Voice Enabled",
                "default": true,
                "description": "Whether this agent answers calls on numbers whose calls route to it."
              },
              "handover_contacts": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Handover Contacts",
                "default": null,
                "description": "Up 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``."
              },
              "recording_enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Recording Enabled",
                "default": null,
                "description": "Recording preference for this agent's calls, overriding the workspace setting."
              },
              "ai_disclosure_line": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Ai Disclosure Line",
                "default": null,
                "description": "Custom AI disclosure line replacing the workspace line. ``{org}`` expands to the organization name."
              },
              "max_duration_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 3600,
                    "minimum": 60
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Duration Seconds",
                "default": null,
                "description": "Longest 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_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 3600,
                    "minimum": 60
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Handover Max Duration Seconds",
                "default": null,
                "description": "Longest a call may last after a handover contact answers, in seconds, counted from that answer."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "HttpToolOut": {
                "type": "object",
                "title": "HttpToolOut",
                "required": [
                  "name",
                  "description",
                  "url",
                  "parameters",
                  "header_names",
                  "timeout_seconds",
                  "wait_message"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "title": "Url",
                    "description": "HTTPS endpoint Hail POSTs to."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Function name the model calls."
                  },
                  "parameters": {
                    "type": "object",
                    "title": "Parameters",
                    "description": "JSON Schema of the arguments.",
                    "additionalProperties": true
                  },
                  "description": {
                    "type": "string",
                    "title": "Description",
                    "description": "What the tool does. Read by the model."
                  },
                  "header_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Header Names",
                    "description": "Names of the saved static headers. Values are never returned."
                  },
                  "wait_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Wait Message",
                    "description": "Sentence said on a call while waiting, or null."
                  },
                  "timeout_seconds": {
                    "type": "integer",
                    "title": "Timeout Seconds",
                    "description": "Seconds Hail waits for the answer."
                  }
                }
              },
              "HandoverContactOut": {
                "type": "object",
                "title": "HandoverContactOut",
                "required": [
                  "contact_id",
                  "name",
                  "phone_e164",
                  "note"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Name, as the agent says it."
                  },
                  "note": {
                    "type": "string",
                    "title": "Note",
                    "description": "When the agent hands over to this person."
                  },
                  "contact_id": {
                    "type": "string",
                    "title": "Contact Id",
                    "description": "The person: a contact's id, or `member:<user id>` for a team member."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "description": "Number Hail dials. Null when the contact lost its number; it is then skipped."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "AgentResponse",
                "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"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this agent."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name, unique per organization."
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Tools",
                    "description": "Allowed tools; null means all."
                  },
                  "status": {
                    "enum": [
                      "live",
                      "paused"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "'live' or 'paused'."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "http_tools": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HttpToolOut"
                    },
                    "title": "Http Tools",
                    "description": "Your APIs the agent may call."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "sms_enabled": {
                    "type": "boolean",
                    "title": "Sms Enabled",
                    "description": "Whether the agent answers texts."
                  },
                  "voice_config": {
                    "type": "object",
                    "title": "Voice Config",
                    "description": "TTS voice and language settings.",
                    "additionalProperties": true
                  },
                  "ai_disclosure": {
                    "type": "boolean",
                    "title": "Ai Disclosure",
                    "description": "Whether the AI line is spoken first."
                  },
                  "email_enabled": {
                    "type": "boolean",
                    "title": "Email Enabled",
                    "default": true,
                    "description": "Whether the agent answers email."
                  },
                  "first_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "First Message",
                    "description": "Opening line, or null to wait."
                  },
                  "system_prompt": {
                    "type": "string",
                    "title": "System Prompt",
                    "description": "Task instructions."
                  },
                  "voice_enabled": {
                    "type": "boolean",
                    "title": "Voice Enabled",
                    "description": "Whether the agent answers calls."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that owns this agent."
                  },
                  "http_tool_secret": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Http Tool Secret",
                    "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."
                  },
                  "handover_contacts": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HandoverContactOut"
                    },
                    "title": "Handover Contacts",
                    "description": "People the agent may hand a live call to."
                  },
                  "recording_enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Enabled",
                    "default": null,
                    "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting."
                  },
                  "ai_disclosure_line": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ai Disclosure Line",
                    "description": "This agent's AI line template, or null for the workspace line."
                  },
                  "max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Duration Seconds",
                    "description": "Soft cap per call; null means the workspace limit."
                  },
                  "handover_max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Handover Max Duration Seconds",
                    "description": "Call limit after a handover contact answers; null means 1800 (30 minutes)."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Create an agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "route_number",
          "title": "Route a number to an agent",
          "description": "Set the saved agents that answer a number's calls and texts.\n\n        Replaces the selected routing settings. Registering or unregistering inbound\n        voice can change carrier and LiveKit routing; text-only changes leave it unchanged.\n        Clearing the voice route stops AI call answers; clearing the text route stops\n        agent replies to texts. Restoring a route does not recover missed interactions.\n        Omitted settings retain their current values.\n        Returns the updated number record or an error.",
          "inputSchema": {
            "type": "object",
            "title": "route_number_toolArguments",
            "required": [
              "number_id"
            ],
            "properties": {
              "clear_sms": {
                "type": "boolean",
                "title": "Clear Sms",
                "default": false,
                "description": "``true`` removes the agent that answers texts."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "type": "string",
                "title": "Number Id",
                "description": "Workspace phone number ID, from ``list_numbers`` or ``acquire_number``."
              },
              "clear_voice": {
                "type": "boolean",
                "title": "Clear Voice",
                "default": false,
                "description": "``true`` removes the agent that answers calls."
              },
              "sms_agent_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Sms Agent Id",
                "default": null,
                "description": "Agent that answers incoming texts, from ``list_agents`` or ``create_agent``."
              },
              "voice_agent_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Voice Agent Id",
                "default": null,
                "description": "Agent that answers incoming calls, from ``list_agents`` or ``create_agent``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "PhoneNumberResponse",
                "required": [
                  "id",
                  "e164",
                  "country_code",
                  "number_type",
                  "capabilities",
                  "provisioning_state",
                  "is_dedicated",
                  "voice_agent_id",
                  "sms_agent_id",
                  "inbound_registered",
                  "subject_type",
                  "verification_id",
                  "subject_name"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this number."
                  },
                  "e164": {
                    "type": "string",
                    "title": "E164",
                    "description": "The phone number, E.164 format."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Capabilities",
                    "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code this number belongs to."
                  },
                  "is_dedicated": {
                    "type": "boolean",
                    "title": "Is Dedicated",
                    "description": "True if this number is owned by the organization. False for shared-pool numbers."
                  },
                  "sms_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sms Agent Id",
                    "default": null,
                    "description": "Agent that answers texts to this number. Null: texts only reach your webhooks."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown."
                  },
                  "subject_type": {
                    "anyOf": [
                      {
                        "enum": [
                          "person",
                          "business"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Type",
                    "default": null,
                    "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used."
                  },
                  "voice_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Voice Agent Id",
                    "default": null,
                    "description": "Agent that answers calls to this number. Null: calls ring out."
                  },
                  "verification_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Verification Id",
                    "default": null,
                    "description": "Hail id of the verification used to buy this number. Null when no verification was used."
                  },
                  "inbound_registered": {
                    "type": "boolean",
                    "title": "Inbound Registered",
                    "default": false,
                    "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set."
                  },
                  "provisioning_state": {
                    "type": "string",
                    "title": "Provisioning State",
                    "description": "'pending', 'active', 'failed', or 'released'."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Route a number to an agent",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "route_email_domain",
          "title": "Route an email address to an agent",
          "description": "Choose which agent answers mail to an address, and who it answers.\n\n        Replaces the selected email routing settings. Clearing the agent stops\n        automatic replies; restoring it does not replay mail received in between.\n        Setting ``email_agent_id`` together with ``clear_agent=True`` is an error.\n        With ``email_agent_scope=\"anyone\"``, a stranger can make the agent use its\n        allowed tools. Mail without a passing DMARC result gets no reply.\n        A custom domain must be verified with inbound and sending on.\n        A field left out keeps its value, except that a new agent starts at ``\"members\"``.\n\n        Returns the updated ``EmailDomainResponse`` as a dict, or\n        ``{\"error\": \"<message>\"}``.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "route_email_domain_toolArguments",
            "required": [
              "domain_id"
            ],
            "properties": {
              "domain_id": {
                "type": "string",
                "title": "Domain Id",
                "description": "Email identity ID, the ``id`` from ``list_email_domains``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "clear_agent": {
                "type": "boolean",
                "title": "Clear Agent",
                "default": false,
                "description": "``true`` stops the agent replying to this address's mail."
              },
              "email_agent_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email Agent Id",
                "default": null,
                "description": "Agent that replies to inbound mail, from ``list_agents`` or ``create_agent``."
              },
              "email_agent_scope": {
                "anyOf": [
                  {
                    "enum": [
                      "members",
                      "anyone"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email Agent Scope",
                "default": null,
                "description": "Who the agent answers: ``members`` (verified members of the workspace whose mail passes DMARC) or ``anyone`` (every sender whose mail passes DMARC and the spam checks). Omitted: the current scope stays; a newly set agent starts at ``members``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "DnsRecordSchema": {
                "type": "object",
                "title": "DnsRecordSchema",
                "required": [
                  "name",
                  "value",
                  "type",
                  "priority"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "DNS record name/host to publish (e.g. a CNAME's subdomain)."
                  },
                  "type": {
                    "enum": [
                      "CNAME",
                      "MX",
                      "TXT"
                    ],
                    "type": "string",
                    "title": "Type",
                    "default": "CNAME",
                    "description": "DNS record type: 'CNAME' (DKIM), 'MX' (MAIL FROM), or 'TXT' (SPF)."
                  },
                  "value": {
                    "type": "string",
                    "title": "Value",
                    "description": "DNS record value to publish (e.g. a CNAME target or TXT content)."
                  },
                  "priority": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Priority",
                    "default": null,
                    "description": "MX priority. Only present for type='MX'; null otherwise."
                  }
                },
                "description": "One DNS record the tenant must publish for a sending domain.\n\nCovers DKIM CNAMEs, MAIL FROM MX, and SPF TXT records.",
                "additionalProperties": true
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailDomainResponse",
                "required": [
                  "id",
                  "organization_id",
                  "kind",
                  "domain",
                  "local_prefix_workspace",
                  "local_prefix_name",
                  "verification_status",
                  "dns_records",
                  "mail_from_domain",
                  "mail_from_status",
                  "provider",
                  "verified_at",
                  "inbound_enabled",
                  "sends_enabled",
                  "forward_to",
                  "forward_rate_per_hour",
                  "email_agent_id",
                  "email_agent_scope",
                  "created_at",
                  "updated_at",
                  "receive_ready",
                  "local_prefix_user",
                  "local_prefix_org"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this email domain."
                  },
                  "kind": {
                    "enum": [
                      "hail_mail",
                      "custom"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "description": "'hail_mail' (Hail-hosted address) or 'custom' (your own domain)."
                  },
                  "domain": {
                    "type": "string",
                    "title": "Domain",
                    "description": "The DNS domain mail is sent from."
                  },
                  "provider": {
                    "type": "string",
                    "title": "Provider",
                    "description": "Email sending provider for this domain (currently always 'ses')."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When this domain was added, ISO 8601 timestamp."
                  },
                  "forward_to": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Forward To",
                    "default": null,
                    "description": "Email addresses inbound mail is forwarded to, if inbound is enabled."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When this domain was last modified, ISO 8601 timestamp."
                  },
                  "dns_records": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/DnsRecordSchema"
                    },
                    "title": "Dns Records",
                    "description": "DNS records (DKIM, MAIL FROM MX, SPF) the tenant must publish to verify this domain."
                  },
                  "verified_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Verified At",
                    "description": "When the domain became verified, ISO 8601 timestamp. Null until it is."
                  },
                  "receive_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Receive Ready",
                    "default": null,
                    "description": "True when the domain's published MX points at Hail's inbound host. Only populated by POST /{id}/verify on custom domains; null everywhere else."
                  },
                  "sends_enabled": {
                    "type": "boolean",
                    "title": "Sends Enabled",
                    "default": true,
                    "description": "Send switch for kind='custom' rows. False stops the domain from sending at all: it is skipped by default sender selection and a send that names it explicitly returns 422. Always true for hail_mail rows."
                  },
                  "email_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email Agent Id",
                    "default": null,
                    "description": "The agent that answers mail to this address. Null when none does."
                  },
                  "inbound_enabled": {
                    "type": "boolean",
                    "title": "Inbound Enabled",
                    "default": false,
                    "description": "Whether this domain accepts and forwards inbound mail."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that owns this domain."
                  },
                  "local_prefix_org": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix Org",
                    "readOnly": true,
                    "deprecated": true,
                    "description": "Deprecated: use local_prefix_name. Same value."
                  },
                  "mail_from_domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Mail From Domain",
                    "description": "Custom MAIL FROM domain, if configured. Null when using the provider default."
                  },
                  "mail_from_status": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Mail From Status",
                    "default": null,
                    "description": "Verification status of the custom MAIL FROM domain, if one is configured. Secondary to verification_status."
                  },
                  "email_agent_scope": {
                    "enum": [
                      "members",
                      "anyone"
                    ],
                    "type": "string",
                    "title": "Email Agent Scope",
                    "default": "members",
                    "description": "Who the agent answers: 'members' or 'anyone'."
                  },
                  "local_prefix_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix Name",
                    "description": "Name prefix of a hail_mail address: the part after the '+'. A free name inside the workspace, such as a person or team. Null for kind='custom'."
                  },
                  "local_prefix_user": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix User",
                    "readOnly": true,
                    "deprecated": true,
                    "description": "Deprecated: use local_prefix_workspace. Same value."
                  },
                  "verification_status": {
                    "enum": [
                      "pending",
                      "verified",
                      "failed"
                    ],
                    "type": "string",
                    "title": "Verification Status",
                    "description": "'pending' (not yet verified), 'verified' (ready to send), or 'failed'."
                  },
                  "forward_rate_per_hour": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Forward Rate Per Hour",
                    "default": null,
                    "description": "Configured cap on forwarded messages per hour, if set."
                  },
                  "local_prefix_workspace": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix Workspace",
                    "description": "Workspace prefix of a hail_mail address: the part before the '+'. It names the workspace, and one workspace only may hold it. Null for kind='custom'."
                  }
                },
                "description": "Read view for an email domain.\n\nThe inbound-action fields (``inbound_enabled``, ``forward_to``,\n``forward_rate_per_hour``) surface what the row has configured for\nincoming mail."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Route an email address to an agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "quote_numbers",
          "title": "Quote phone numbers",
          "description": "Compare available phone numbers and their prices without buying or charging.\n\n        Returns ``offers``, ``recommended_quote_id`` and ``expires_at``.\n        Each offer includes ``e164``, ``number_type``, ``capabilities``, ``quote_id``,\n        ``monthly_cents``, ``setup_cents``, ``readiness``, ``requirements``,\n        ``subject_types``, ``verifications``, ``locality`` and ``region``.\n        Prices are USD cents. ``locality`` and ``region`` tell apart cities with the same name.\n        Quotes expire after ten minutes. Expired quotes cannot authorize a purchase.\n        ``recommended_quote_id`` identifies a ready offer or is null when none is ready.\n\n        ``subject_types`` identifies eligible personal or business registrations.\n        ``verifications`` contains accepted registrations, with approved entries first.\n        Entries include ``id``, ``state``, ``subject_type`` and ``subject_name``.\n        ``readiness=\"verification_required\"`` means registration approval is still needed.\n        Registration requirements are specific to the quote and applicant type.\n        An offer with ``by_request=true`` has no assigned number and requires a manual support order.\n        Such offers remain valid for registration but are unavailable for automatic purchase.\n        An upstream failure returns an error.",
          "inputSchema": {
            "type": "object",
            "title": "quote_numbers_toolArguments",
            "required": [
              "country_code"
            ],
            "properties": {
              "city": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64,
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "City",
                "default": null,
                "description": "City name as carriers list it, such as ``Austin``. Omitted: any city."
              },
              "region": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Region",
                "default": null,
                "description": "US state or Canadian province code from ``list_number_regions``, to tell apart cities with the same name. Omitted: any region."
              },
              "area_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,6}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Area Code",
                "default": null,
                "description": "First digits of the number as dialed inside the country, such as ``415``. Omitted: any digits."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_type": {
                "anyOf": [
                  {
                    "enum": [
                      "local",
                      "mobile",
                      "toll_free",
                      "national"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Number Type",
                "default": null,
                "description": "Offer only this kind of number, for example ``toll_free`` for a number callers reach for free. Omitted: every kind."
              },
              "capabilities": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "voice",
                        "sms"
                      ],
                      "type": "string"
                    },
                    "maxItems": 2,
                    "minItems": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Capabilities",
                "default": null,
                "description": "Channels each offer must support. Omitting the filter searches for numbers that support both calls and texts."
              },
              "country_code": {
                "type": "string",
                "title": "Country Code",
                "description": "ISO 3166-1 alpha-2 country code, such as ``US``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "QuoteOffer": {
                "type": "object",
                "title": "QuoteOffer",
                "required": [
                  "e164",
                  "country_code",
                  "number_type",
                  "capabilities",
                  "monthly_cents",
                  "setup_cents",
                  "currency",
                  "readiness",
                  "regulatory_friction",
                  "requirements",
                  "locality",
                  "region",
                  "quote_id",
                  "subject_types",
                  "verifications",
                  "verification",
                  "by_request",
                  "paperwork"
                ],
                "properties": {
                  "e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "E164",
                    "description": "Available phone number in E.164 format. Null for a by-request offer: support picks the number when it orders it."
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Region",
                    "default": null,
                    "description": "State, province or region the carrier lists, such as AZ or England; null when unknown."
                  },
                  "currency": {
                    "type": "string",
                    "const": "USD",
                    "title": "Currency",
                    "default": "USD",
                    "description": "Currency of the quoted rental and setup amounts."
                  },
                  "locality": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Locality",
                    "default": null,
                    "description": "City or area the carrier lists for this number, such as Phoenix or London; null when unknown."
                  },
                  "quote_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Quote Id",
                    "default": null,
                    "description": "Organization-bound quote identifier to pass to POST /numbers before expiry."
                  },
                  "paperwork": {
                    "type": "null",
                    "description": "Always null for this tool. Applicant-specific paperwork is available from get_verification_requirements for the chosen offer."
                  },
                  "readiness": {
                    "enum": [
                      "ready",
                      "verification_required"
                    ],
                    "type": "string",
                    "title": "Readiness",
                    "description": "Whether regulatory preflight permits purchase for this organization; rechecked at purchase."
                  },
                  "by_request": {
                    "type": "boolean",
                    "title": "By Request",
                    "default": false,
                    "description": "True when support orders this number by hand: it cannot be bought with POST /numbers. Ask support for it. Its quote_id still works for verification."
                  },
                  "number_type": {
                    "enum": [
                      "local",
                      "mobile",
                      "toll_free",
                      "national"
                    ],
                    "type": "string",
                    "title": "Number Type",
                    "description": "Local, mobile, national, or toll-free number type."
                  },
                  "setup_cents": {
                    "type": "integer",
                    "title": "Setup Cents",
                    "minimum": 0,
                    "description": "One-time setup charge in USD cents, payable with the first month."
                  },
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Capabilities",
                    "description": "Voice/SMS capabilities reported by live carrier inventory; SMS registration may still be required."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code of the number."
                  },
                  "requirements": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Requirements",
                    "description": "Carrier regulatory requirement labels associated with this offer."
                  },
                  "verification": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/OfferVerification"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Deprecated: read `verifications`. The verification a purchase without verification_id would use: the one approved verification in `verifications`, else the newest one there; null when there is none."
                  },
                  "monthly_cents": {
                    "type": "integer",
                    "title": "Monthly Cents",
                    "minimum": 1,
                    "description": "Monthly number rental in USD cents, charged from organization credits."
                  },
                  "subject_types": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "person",
                        "business"
                      ],
                      "type": "string"
                    },
                    "title": "Subject Types",
                    "description": "Who can verify for this number: 'person' (you), 'business' (your company), or both. Empty when no verification is needed."
                  },
                  "verifications": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/OfferVerification"
                    },
                    "title": "Verifications",
                    "description": "The verifications you can buy this offer with, approved first, then newest first: yours of a subject type in `subject_types` that are under review, and the approved ones the carrier still accepts for this offer. Once one is approved, pass its `id` as `verification_id` to POST /numbers to buy with it."
                  },
                  "regulatory_friction": {
                    "enum": [
                      "none",
                      "information",
                      "documents",
                      "unknown"
                    ],
                    "type": "string",
                    "title": "Regulatory Friction",
                    "default": "unknown",
                    "description": "Remaining verification effort derived from live requirements: none, information/address entry, document uploads, or unknown. This does not establish legal eligibility."
                  }
                },
                "description": "One number offer as the public API shows it. It never names the\ncarrier or carries a carrier-issued id: Hail picks the carrier."
              },
              "OfferVerification": {
                "type": "object",
                "title": "OfferVerification",
                "required": [
                  "id",
                  "state",
                  "subject_type",
                  "subject_name",
                  "held_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Hail verification id. Read it with GET /v1/verifications/{verification_id}."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "State of that verification, such as draft, submitted or approved."
                  },
                  "held_cents": {
                    "type": "integer",
                    "title": "Held Cents",
                    "default": 0,
                    "description": "Credit, in USD cents, set aside from your balance for this verification: setup and the first month of the offer it was started for. A purchase with this verification counts it toward the price. 0 when nothing is set aside."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company that verification is for, as typed in the verification form. Null when unknown."
                  },
                  "subject_type": {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string",
                    "title": "Subject Type",
                    "description": "Who that verification is for: 'person' (you) or 'business' (your company)."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "NumberQuotesResponse",
                "required": [
                  "offers",
                  "recommended_quote_id",
                  "incomplete",
                  "expires_at"
                ],
                "properties": {
                  "offers": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/QuoteOffer"
                    },
                    "title": "Offers",
                    "description": "Live offers ordered by readiness, remaining verification effort, monthly price and setup price."
                  },
                  "expires_at": {
                    "type": "string",
                    "title": "Expires At",
                    "format": "date-time",
                    "description": "UTC expiry of these persisted quotes; request fresh offers afterward."
                  },
                  "incomplete": {
                    "type": "boolean",
                    "title": "Incomplete",
                    "description": "True when some carriers did not answer, so the offers may not be complete. Search again later for a full comparison."
                  },
                  "recommended_quote_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recommended Quote Id",
                    "description": "Recommended ready offer, or null if none qualifies."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Quote phone numbers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "acquire_number",
          "title": "Buy a phone number",
          "description": "Buy a quoted phone number with explicit price confirmation.\n\n        This charges the setup fee and first month immediately, then renews monthly.\n        The purchase requires the user's authorization for that number and cost.\n        Expired or changed offers return 409 without authorizing a different price.\n        Each quote can buy at most one number.\n\n        A retry with the same quote and ``idempotency_key`` refers to the original purchase.\n        After a timeout, a new quote starts a different purchase and can buy a second number.\n        A returned retry key is available after a timeout or server error.\n        A 4xx failure returns no retry key; that failed request cannot be reused.\n        A rejected or ambiguous registration selection returns 422.\n        A purchase does not assign an answering agent automatically.\n        Returns the number record and ``idempotency_key``, or an error with any available retry key.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "acquire_number_toolArguments",
            "required": [
              "quote_id",
              "country_code",
              "number_type",
              "confirm_total_cents"
            ],
            "properties": {
              "quote_id": {
                "type": "string",
                "title": "Quote Id",
                "description": "``quote_id`` of one offer from ``quote_numbers``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_type": {
                "enum": [
                  "local",
                  "mobile",
                  "toll_free",
                  "national"
                ],
                "type": "string",
                "title": "Number Type",
                "description": "Kind of number being bought: copy the offer's ``number_type`` from ``quote_numbers``. Hail checks it against the offer."
              },
              "country_code": {
                "type": "string",
                "title": "Country Code",
                "description": "Country of the number being bought, as an ISO alpha-2 code: the ``country_code`` sent to ``quote_numbers`` for this offer."
              },
              "subject_type": {
                "anyOf": [
                  {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Subject Type",
                "default": null,
                "description": "Whose approved registration may be used: the user's own (``person``) or their company's (``business``). Omitted: either."
              },
              "idempotency_key": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Idempotency Key",
                "default": null,
                "description": "Retry key. The ``idempotency_key`` from an earlier response refers to that original request instead of starting a new one. Omitted: a new key is generated and returned."
              },
              "verification_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Verification Id",
                "default": null,
                "description": "Which approved registration covers this purchase: an ``id`` from the offer's ``verifications``. Give it when the offer lists more than one approved registration. Omitted: the only approved one, if any."
              },
              "confirm_total_cents": {
                "type": "integer",
                "title": "Confirm Total Cents",
                "description": "The offer's ``setup_cents`` plus ``monthly_cents``, in USD cents, as the user authorized it."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "PhoneNumberResponse",
                "required": [
                  "id",
                  "e164",
                  "country_code",
                  "number_type",
                  "capabilities",
                  "provisioning_state",
                  "is_dedicated",
                  "voice_agent_id",
                  "sms_agent_id",
                  "inbound_registered",
                  "subject_type",
                  "verification_id",
                  "subject_name",
                  "idempotency_key"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this number."
                  },
                  "e164": {
                    "type": "string",
                    "title": "E164",
                    "description": "The phone number, E.164 format."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Capabilities",
                    "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code this number belongs to."
                  },
                  "is_dedicated": {
                    "type": "boolean",
                    "title": "Is Dedicated",
                    "description": "True if this number is owned by the organization. False for shared-pool numbers."
                  },
                  "sms_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sms Agent Id",
                    "default": null,
                    "description": "Agent that answers texts to this number. Null: texts only reach your webhooks."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown."
                  },
                  "subject_type": {
                    "anyOf": [
                      {
                        "enum": [
                          "person",
                          "business"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Type",
                    "default": null,
                    "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used."
                  },
                  "voice_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Voice Agent Id",
                    "default": null,
                    "description": "Agent that answers calls to this number. Null: calls ring out."
                  },
                  "idempotency_key": {
                    "type": "string",
                    "description": "Key that identifies this exact request when retrying."
                  },
                  "verification_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Verification Id",
                    "default": null,
                    "description": "Hail id of the verification used to buy this number. Null when no verification was used."
                  },
                  "inbound_registered": {
                    "type": "boolean",
                    "title": "Inbound Registered",
                    "default": false,
                    "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set."
                  },
                  "provisioning_state": {
                    "type": "string",
                    "title": "Provisioning State",
                    "description": "'pending', 'active', 'failed', or 'released'."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "description": "Key that identifies this exact request when retrying."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Buy a phone number",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_numbers",
          "title": "List phone numbers",
          "description": "List dedicated workspace phone numbers, newest first.\n\n        The records show capabilities, provisioning state and assigned agents,\n        so they can be used to select an existing number for sending or routing.",
          "inputSchema": {
            "type": "object",
            "title": "list_numbers_toolArguments",
            "properties": {
              "limit": {
                "type": "integer",
                "title": "Limit",
                "default": 50,
                "maximum": 200,
                "minimum": 1,
                "description": "Maximum records returned on this page."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "PhoneNumberResponse": {
                "type": "object",
                "title": "PhoneNumberResponse",
                "required": [
                  "id",
                  "e164",
                  "country_code",
                  "number_type",
                  "capabilities",
                  "provisioning_state",
                  "is_dedicated",
                  "voice_agent_id",
                  "sms_agent_id",
                  "inbound_registered",
                  "subject_type",
                  "verification_id",
                  "subject_name"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this number."
                  },
                  "e164": {
                    "type": "string",
                    "title": "E164",
                    "description": "The phone number, E.164 format."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Capabilities",
                    "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code this number belongs to."
                  },
                  "is_dedicated": {
                    "type": "boolean",
                    "title": "Is Dedicated",
                    "description": "True if this number is owned by the organization. False for shared-pool numbers."
                  },
                  "sms_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sms Agent Id",
                    "default": null,
                    "description": "Agent that answers texts to this number. Null: texts only reach your webhooks."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown."
                  },
                  "subject_type": {
                    "anyOf": [
                      {
                        "enum": [
                          "person",
                          "business"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Type",
                    "default": null,
                    "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used."
                  },
                  "voice_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Voice Agent Id",
                    "default": null,
                    "description": "Agent that answers calls to this number. Null: calls ring out."
                  },
                  "verification_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Verification Id",
                    "default": null,
                    "description": "Hail id of the verification used to buy this number. Null when no verification was used."
                  },
                  "inbound_registered": {
                    "type": "boolean",
                    "title": "Inbound Registered",
                    "default": false,
                    "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set."
                  },
                  "provisioning_state": {
                    "type": "string",
                    "title": "Provisioning State",
                    "description": "'pending', 'active', 'failed', or 'released'."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "PhoneNumberListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/PhoneNumberResponse"
                    },
                    "title": "Items",
                    "description": "Numbers in this page."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List phone numbers",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_number_regions",
          "title": "List number search regions",
          "description": "List US state and Canadian province codes supported by number searches.\n\n        Returns ``regions`` containing ``country_code``, ``code`` and ``name``.\n        These codes identify the optional region filter for a city search.\n        An upstream failure returns an error.",
          "inputSchema": {
            "type": "object",
            "title": "list_number_regions_toolArguments",
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "NumberRegion": {
                "type": "object",
                "title": "NumberRegion",
                "required": [
                  "country_code",
                  "code",
                  "name"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "title": "Code",
                    "description": "Two-letter state or province code, such as AZ. Send it as region."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "State or province name, such as Arizona."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code: US or CA."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "NumberRegionsResponse",
                "required": [
                  "regions"
                ],
                "properties": {
                  "regions": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/NumberRegion"
                    },
                    "title": "Regions",
                    "description": "Every state and province the number search accepts as region."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List number search regions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_number",
          "title": "Get a number",
          "description": "Read a workspace number's state, capabilities and assigned agents.\n\n        Returns the number record or an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_number_toolArguments",
            "required": [
              "number_id"
            ],
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "type": "string",
                "title": "Number Id",
                "description": "Workspace phone number ID, from ``list_numbers`` or ``acquire_number``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "PhoneNumberResponse",
                "required": [
                  "id",
                  "e164",
                  "country_code",
                  "number_type",
                  "capabilities",
                  "provisioning_state",
                  "is_dedicated",
                  "voice_agent_id",
                  "sms_agent_id",
                  "inbound_registered",
                  "subject_type",
                  "verification_id",
                  "subject_name"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this number."
                  },
                  "e164": {
                    "type": "string",
                    "title": "E164",
                    "description": "The phone number, E.164 format."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Capabilities",
                    "description": "Channels this number supports, e.g. ['voice'], ['sms'], or both."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code this number belongs to."
                  },
                  "is_dedicated": {
                    "type": "boolean",
                    "title": "Is Dedicated",
                    "description": "True if this number is owned by the organization. False for shared-pool numbers."
                  },
                  "sms_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Sms Agent Id",
                    "default": null,
                    "description": "Agent that answers texts to this number. Null: texts only reach your webhooks."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company the verification used to buy this number is for. Null when no verification was used or the name is unknown."
                  },
                  "subject_type": {
                    "anyOf": [
                      {
                        "enum": [
                          "person",
                          "business"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Type",
                    "default": null,
                    "description": "Who the verification used to buy this number is for: 'person' or 'business'. Null when no verification was used."
                  },
                  "voice_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Voice Agent Id",
                    "default": null,
                    "description": "Agent that answers calls to this number. Null: calls ring out."
                  },
                  "verification_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Verification Id",
                    "default": null,
                    "description": "Hail id of the verification used to buy this number. Null when no verification was used."
                  },
                  "inbound_registered": {
                    "type": "boolean",
                    "title": "Inbound Registered",
                    "default": false,
                    "description": "True while the number is attached for inbound calls at the carrier and on Hail's LiveKit inbound trunk. Set when voice_agent_id is set."
                  },
                  "provisioning_state": {
                    "type": "string",
                    "title": "Provisioning State",
                    "description": "'pending', 'active', 'failed', or 'released'."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get a number",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "release_number",
          "title": "Release a number",
          "description": "Permanently release a phone number after explicit user authorization.\n\n        A mismatched ``confirm_e164`` returns an error without releasing anything.\n        Calls and texts to a released number stop. Recovery is not guaranteed.\n        Current and previous monthly fees remain due, without a refund.\n        Pending orders cannot be released and return 409.\n        A failed order was not purchased; this operation only dismisses it from the list.\n        Returns ``released`` or ``dismissed``, plus ``number_id`` and ``e164``, or an error.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "release_number_toolArguments",
            "required": [
              "number_id",
              "confirm_e164"
            ],
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "type": "string",
                "title": "Number Id",
                "description": "Workspace phone number ID, from ``list_numbers`` or ``acquire_number``."
              },
              "confirm_e164": {
                "type": "string",
                "title": "Confirm E164",
                "description": "The number's ``e164`` value, such as ``+14155551234``, as a safety check."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "released",
                  "number_id",
                  "e164"
                ],
                "properties": {
                  "e164": {
                    "type": "string"
                  },
                  "released": {
                    "type": "boolean",
                    "const": true
                  },
                  "number_id": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "dismissed",
                  "number_id",
                  "e164"
                ],
                "properties": {
                  "e164": {
                    "type": "string"
                  },
                  "dismissed": {
                    "type": "boolean",
                    "const": true
                  },
                  "number_id": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Release a number",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_verification_requirements",
          "title": "Get verification requirements",
          "description": "Read a carrier's current registration fields, documents and address requirements.\n\n        The response's ``subject_types`` lists the applicant types the carrier accepts.\n        US local SMS registration uses ``purpose=\"sms\"``, country ``US`` and type ``local``.\n        Toll-free verification uses ``purpose=\"sms\"``, the number's country ``US`` or ``CA``,\n        type ``toll_free`` and its owned ``number_id``. Each number needs its own verification.\n        Applicant country and business tax status determine the registration route.\n        The personal route is available to US or Canadian applicants without a business tax number.\n        Local 10DLC fees apply at submission, carrier review and monthly after approval.\n        Toll-free verification is free and sends no identity confirmation code.\n\n        Returns ``required``, ``fields``, ``documents`` and ``address_required``.\n        ``required=false`` means a registration submission is unnecessary and would fail.\n        Fields and files require accurate information supplied by the authorized applicant.\n        Choice fields accept comma-separated option keys within their ``min_choices`` and ``max_choices``.\n        Field ``max_length`` uses UTF-16 code units; an emoji counts as two.\n        Selected consent methods can require evidence even when shared fields are optional.\n        No public link for an ``*_evidence_url`` field? Upload the screenshot with\n        ``create_file_upload`` (purpose ``sms_evidence``) and use the ``url`` it returns.\n        Document slots with ``needs_input=false`` require no upload.\n        An upstream failure returns an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_verification_requirements_toolArguments",
            "required": [
              "country_code",
              "number_type",
              "subject_type"
            ],
            "properties": {
              "purpose": {
                "enum": [
                  "number",
                  "sms"
                ],
                "type": "string",
                "title": "Purpose",
                "default": "number",
                "description": "What the registration is for: ``number`` registers the applicant so a number can be bought; ``sms`` registers US texting (local 10DLC or toll-free)."
              },
              "quote_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Quote Id",
                "default": null,
                "description": "The offer to register for: its ``quote_id`` from ``quote_numbers``, which selects that offer's form. Give it when ``purpose`` is ``number``; leave it out for ``sms``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Number Id",
                "default": null,
                "description": "The owned number this registration is for: its ID from ``list_numbers``, the same one used for the requirements. Give it for toll-free texting and when the form asks for the sending number; otherwise leave it out."
              },
              "number_type": {
                "enum": [
                  "local",
                  "mobile",
                  "toll_free",
                  "national"
                ],
                "type": "string",
                "title": "Number Type",
                "description": "The kind of number this registration covers. Copy it from the offer in ``quote_numbers`` or the number in ``list_numbers``."
              },
              "country_code": {
                "type": "string",
                "title": "Country Code",
                "description": "ISO 3166-1 alpha-2 country code, such as ``US``."
              },
              "subject_type": {
                "enum": [
                  "person",
                  "business"
                ],
                "type": "string",
                "title": "Subject Type",
                "description": "Who the registration is for: the user themselves (``person``) or their company (``business``)."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "FieldSpec": {
                "type": "object",
                "title": "FieldSpec",
                "required": [
                  "name",
                  "label",
                  "kind",
                  "help",
                  "pattern",
                  "options",
                  "required",
                  "min_choices",
                  "max_choices",
                  "max_length"
                ],
                "properties": {
                  "help": {
                    "type": "string",
                    "title": "Help",
                    "default": "",
                    "description": "Help text from the carrier."
                  },
                  "kind": {
                    "enum": [
                      "text",
                      "email",
                      "phone",
                      "url",
                      "choices"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "default": "text",
                    "description": "Input kind: 'text', 'email', 'phone', 'url', or 'choices' (pick several of `options`; send their keys joined by commas)."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Key to send this value under in `fields`."
                  },
                  "label": {
                    "type": "string",
                    "title": "Label",
                    "description": "Label to show the customer."
                  },
                  "options": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/FieldOption"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Options",
                    "default": null,
                    "description": "Allowed values, when the field is a choice. Show a select, not a text box."
                  },
                  "pattern": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Pattern",
                    "default": null,
                    "description": "Regular expression the value must match, when the carrier gives one."
                  },
                  "required": {
                    "type": "boolean",
                    "title": "Required",
                    "default": true,
                    "description": "False when the field is optional."
                  },
                  "max_length": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Length",
                    "default": null,
                    "description": "The most characters the value may hold, when known, counted in UTF-16 code units (an emoji counts as 2). Enforced: a longer value gets 422. A form can show a field allowed more than about 100 characters as a box that wraps."
                  },
                  "max_choices": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Choices",
                    "default": null,
                    "description": "For kind 'choices': the most options to pick."
                  },
                  "min_choices": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Min Choices",
                    "default": null,
                    "description": "For kind 'choices': the fewest options to pick."
                  }
                },
                "description": "One value the customer types in."
              },
              "FieldOption": {
                "type": "object",
                "title": "FieldOption",
                "required": [
                  "key",
                  "label"
                ],
                "properties": {
                  "key": {
                    "type": "string",
                    "title": "Key",
                    "description": "Value to send."
                  },
                  "label": {
                    "type": "string",
                    "title": "Label",
                    "description": "Label to show the customer."
                  }
                },
                "description": "One allowed value for a field with a fixed set of answers."
              },
              "DocumentSlot": {
                "type": "object",
                "title": "DocumentSlot",
                "required": [
                  "name",
                  "label",
                  "help",
                  "options",
                  "needs_input"
                ],
                "properties": {
                  "help": {
                    "type": "string",
                    "title": "Help",
                    "default": "",
                    "description": "Help text from the carrier."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Key for this slot in `documents` and in the `file.<name>` part."
                  },
                  "label": {
                    "type": "string",
                    "title": "Label",
                    "description": "Label to show the customer, e.g. 'Proof of identity'."
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/DocumentOption"
                    },
                    "title": "Options",
                    "description": "The accepted ways to fill this slot. The customer picks one."
                  },
                  "needs_input": {
                    "type": "boolean",
                    "title": "Needs Input",
                    "readOnly": true,
                    "description": "False when there is nothing to ask: one option, no file, no extra\nvalues. The UI hides such a slot; the plug-in still fills it."
                  }
                },
                "description": "A required proof (identity, address, registration) with its options."
              },
              "DocumentOption": {
                "type": "object",
                "title": "DocumentOption",
                "required": [
                  "key",
                  "label",
                  "file_required",
                  "fields",
                  "copies",
                  "needs_address"
                ],
                "properties": {
                  "key": {
                    "type": "string",
                    "title": "Key",
                    "description": "Value to send as `option` for this document type."
                  },
                  "label": {
                    "type": "string",
                    "title": "Label",
                    "description": "Label to show the customer, e.g. 'Passport'."
                  },
                  "copies": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Copies",
                    "default": [],
                    "description": "Names of the customer's own fields copied onto this document automatically."
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/FieldSpec"
                    },
                    "title": "Fields",
                    "default": [],
                    "description": "Extra values this document needs. Send them in the slot's `fields`."
                  },
                  "file_required": {
                    "type": "boolean",
                    "title": "File Required",
                    "default": true,
                    "description": "True when the customer must upload a file for this option."
                  },
                  "needs_address": {
                    "type": "boolean",
                    "title": "Needs Address",
                    "default": false,
                    "description": "True when this document refers to the address the customer gave."
                  }
                },
                "description": "One accepted way to fill a document slot (e.g. passport or ID card)."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationRequirements",
                "required": [
                  "country_code",
                  "number_type",
                  "subject_type",
                  "required",
                  "fields",
                  "documents",
                  "address_required",
                  "subject_types"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/FieldSpec"
                    },
                    "title": "Fields",
                    "default": [],
                    "description": "Values to collect about the person or business."
                  },
                  "required": {
                    "type": "boolean",
                    "title": "Required",
                    "description": "False when the carrier needs no verification for this combination."
                  },
                  "documents": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/DocumentSlot"
                    },
                    "title": "Documents",
                    "default": [],
                    "description": "Documents to collect. Skip slots with `needs_input` false."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_type": {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "subject_types": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "person",
                        "business"
                      ],
                      "type": "string"
                    },
                    "title": "Subject Types",
                    "default": [],
                    "description": "Subject types the carrier accepts here, so you can offer the choice."
                  },
                  "address_required": {
                    "type": "boolean",
                    "title": "Address Required",
                    "default": false,
                    "description": "True when an address must be collected."
                  }
                },
                "description": "What the carrier needs for one (country, number type, subject type),\nas the public API shows it: without the carrier's name."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get verification requirements",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "check_verification",
          "title": "Check a verification",
          "description": "Check a carrier registration form without filing anything.\n\n        This preflight uses the intended registration and its supporting documents\n        to check the carrier's current requirements, available credit and duplicate\n        registrations. Uploads must belong to this workspace and be less than an hour old.\n        Nothing is filed, saved, held or charged, and uploads stay usable.\n        Returns ``ok``, ``files`` (slot, upload_id, size_bytes, sha256 per file) and\n        ``note``; problems come back as ``problems`` with the field named.\n        The carrier runs its own checks at submission.",
          "inputSchema": {
            "type": "object",
            "title": "check_verification_toolArguments",
            "required": [
              "country_code",
              "number_type",
              "fields",
              "documents",
              "files"
            ],
            "properties": {
              "files": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "slot",
                        "upload_id"
                      ],
                      "properties": {
                        "slot": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,64}$",
                          "description": "The key in ``documents`` that identifies what this file proves."
                        },
                        "upload_id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``."
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "slot",
                        "content_type",
                        "content_base64"
                      ],
                      "properties": {
                        "slot": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,64}$",
                          "description": "The key in ``documents`` that identifies what this file proves."
                        },
                        "content_type": {
                          "enum": [
                            "image/jpeg",
                            "image/png",
                            "application/pdf"
                          ],
                          "type": "string",
                          "description": "Media type of the actual document. Hail checks it against the file bytes."
                        },
                        "content_base64": {
                          "type": "string",
                          "description": "Bytes of the complete document for this slot, supplied directly in the tool call.",
                          "contentEncoding": "base64"
                        }
                      }
                    }
                  ]
                },
                "title": "Files",
                "maxItems": 20,
                "description": "One file per slot being filled, keyed by the matching slot in ``documents``. Upload IDs come from ``create_file_upload`` with purpose ``verification_document`` and last one hour. The inline form suits small files. Each file is at most 10 MiB."
              },
              "fields": {
                "type": "object",
                "title": "Fields",
                "description": "Applicant answers as text, keyed by the field names in ``get_verification_requirements``. Choice fields take comma-separated option keys."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "customer_name",
                      "street",
                      "city",
                      "region",
                      "postal_code",
                      "country_code"
                    ],
                    "properties": {
                      "city": {
                        "type": "string",
                        "title": "City",
                        "description": "City or town as it appears in the applicant's mailing address."
                      },
                      "region": {
                        "type": "string",
                        "title": "Region",
                        "description": "State, province, or equivalent administrative area in the applicant's address."
                      },
                      "street": {
                        "type": "string",
                        "title": "Street",
                        "description": "Street address."
                      },
                      "postal_code": {
                        "type": "string",
                        "title": "Postal Code",
                        "description": "Postal or ZIP code of the street address, such as `94103`."
                      },
                      "country_code": {
                        "type": "string",
                        "title": "Country Code",
                        "description": "ISO alpha-2 address country."
                      },
                      "customer_name": {
                        "type": "string",
                        "title": "Customer Name",
                        "description": "Name associated with the address."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Address",
                "default": null,
                "description": "The applicant's address. Give it when the requirements include one; otherwise leave it out."
              },
              "purpose": {
                "enum": [
                  "number",
                  "sms"
                ],
                "type": "string",
                "title": "Purpose",
                "default": "number",
                "description": "What the registration is for: ``number`` registers the applicant so a number can be bought; ``sms`` registers US texting (local 10DLC or toll-free)."
              },
              "quote_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Quote Id",
                "default": null,
                "description": "The number offer this registration lets the user buy: the offer's ``quote_id`` from ``quote_numbers``, the same one used for the requirements. Give it when ``purpose`` is ``number``; leave it out for ``sms``."
              },
              "documents": {
                "type": "object",
                "title": "Documents",
                "description": "Map from each needed document slot to ``{option, fields}``, with the option chosen from that slot in the requirements."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Number Id",
                "default": null,
                "description": "The owned number this registration is for: its ID from ``list_numbers``, the same one used for the requirements. Give it for toll-free texting and when the form asks for the sending number; otherwise leave it out."
              },
              "number_type": {
                "enum": [
                  "local",
                  "mobile",
                  "toll_free",
                  "national"
                ],
                "type": "string",
                "title": "Number Type",
                "description": "The kind of number this registration covers. Copy it from the offer in ``quote_numbers`` or the number in ``list_numbers``."
              },
              "country_code": {
                "type": "string",
                "title": "Country Code",
                "description": "ISO 3166-1 alpha-2 country code, such as ``US``."
              },
              "subject_type": {
                "anyOf": [
                  {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Subject Type",
                "default": null,
                "description": "Who the registration is for, matching the requirements: the user (``person``) or their company (``business``). It has no default; without it, nothing is sent."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "VerificationCheckFile": {
                "type": "object",
                "title": "VerificationCheckFile",
                "required": [
                  "slot",
                  "upload_id",
                  "size_bytes",
                  "sha256"
                ],
                "properties": {
                  "slot": {
                    "type": "string",
                    "title": "Slot",
                    "description": "The document slot."
                  },
                  "sha256": {
                    "type": "string",
                    "title": "Sha256",
                    "description": "sha256 of the file, hex."
                  },
                  "upload_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Upload Id",
                    "description": "The upload used for the slot, or null for a `file.<slot>` part."
                  },
                  "size_bytes": {
                    "type": "integer",
                    "title": "Size Bytes",
                    "description": "Size of the file in bytes."
                  }
                },
                "description": "One file a verification check read."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationCheckResponse",
                "required": [
                  "ok",
                  "files",
                  "note"
                ],
                "properties": {
                  "ok": {
                    "type": "boolean",
                    "const": true,
                    "title": "Ok",
                    "description": "Always true: a failed check is a 4xx."
                  },
                  "note": {
                    "type": "string",
                    "title": "Note",
                    "description": "What the check does not cover."
                  },
                  "files": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/VerificationCheckFile"
                    },
                    "title": "Files",
                    "description": "The files the check read, one per slot."
                  }
                },
                "description": "Returned by ``POST /verifications/check`` when every local check passes."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "loc",
                        "msg"
                      ],
                      "properties": {
                        "loc": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          }
                        },
                        "msg": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Validation issues with an input path and a message."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Check a verification",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "check_verification_documents",
          "title": "Read verification documents",
          "description": "Read the files of a number verification form, before the form is filled or submitted.\n\n        This applies to a number offer, using the same quote and applicant type\n        as the requirements. Known ``fields`` and ``address`` values can be partial.\n        An AI model reads each file.\n        Returns ``fields``, ``address`` and ``documents.<slot>.fields``: the values the\n        files show, by the form's own keys, to fill the form after the user confirms\n        them. ``documents.<slot>.option`` is the document type the file looks like.\n        ``warnings`` (``field``, ``kind``, ``message``) lists what the carrier may\n        refuse: an unreadable, upside-down or expired document, a file of another\n        type than the chosen one, or a typed name that differs from the printed one.\n        Each message names the fix. A submission with warnings is still accepted.\n        A file nothing was read from has ``read`` false; an unclear file also has an\n        ``unreadable`` warning, and a file past the daily reads has ``skipped``\n        ``daily_limit``. Only the first 3 pages of a PDF are read; a PDF of more\n        than 5 pages is not read.\n        Each file read uses one of the workspace's daily document reads (30 per day);\n        a file given for several slots uses one. Nothing is filed, saved, held or\n        charged, and uploads stay usable.",
          "inputSchema": {
            "type": "object",
            "title": "check_verification_documents_toolArguments",
            "required": [
              "country_code",
              "number_type",
              "fields",
              "documents",
              "files"
            ],
            "properties": {
              "files": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "slot",
                        "upload_id"
                      ],
                      "properties": {
                        "slot": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,64}$",
                          "description": "The key in ``documents`` that identifies what this file proves."
                        },
                        "upload_id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``."
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "slot",
                        "content_type",
                        "content_base64"
                      ],
                      "properties": {
                        "slot": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,64}$",
                          "description": "The key in ``documents`` that identifies what this file proves."
                        },
                        "content_type": {
                          "enum": [
                            "image/jpeg",
                            "image/png",
                            "application/pdf"
                          ],
                          "type": "string",
                          "description": "Media type of the actual document. Hail checks it against the file bytes."
                        },
                        "content_base64": {
                          "type": "string",
                          "description": "Bytes of the complete document for this slot, supplied directly in the tool call.",
                          "contentEncoding": "base64"
                        }
                      }
                    }
                  ]
                },
                "title": "Files",
                "maxItems": 20,
                "description": "One file per slot being filled, keyed by the matching slot in ``documents``. Upload IDs come from ``create_file_upload`` with purpose ``verification_document`` and last one hour. The inline form suits small files. Each file is at most 10 MiB."
              },
              "fields": {
                "type": "object",
                "title": "Fields",
                "description": "Applicant answers as text, keyed by the field names in ``get_verification_requirements``. Choice fields take comma-separated option keys."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "city": {
                        "type": "string",
                        "title": "City",
                        "description": "City or town as it appears in the applicant's mailing address."
                      },
                      "region": {
                        "type": "string",
                        "title": "Region",
                        "description": "State, province, or equivalent administrative area in the applicant's address."
                      },
                      "street": {
                        "type": "string",
                        "title": "Street",
                        "description": "Street address."
                      },
                      "postal_code": {
                        "type": "string",
                        "title": "Postal Code",
                        "description": "Postal or ZIP code of the street address, such as `94103`."
                      },
                      "country_code": {
                        "type": "string",
                        "title": "Country Code",
                        "description": "ISO alpha-2 address country."
                      },
                      "customer_name": {
                        "type": "string",
                        "title": "Customer Name",
                        "description": "Name associated with the address."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Address",
                "default": null,
                "description": "Known parts of the applicant's address when the form requires one. The document check can suggest missing values and flag a mismatch in the name on the address."
              },
              "quote_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Quote Id",
                "default": null,
                "description": "Required for reading documents. This is the ``quote_id`` from ``quote_numbers`` for the offer used to get the form requirements."
              },
              "documents": {
                "type": "object",
                "title": "Documents",
                "description": "Map from each document slot to ``{option, fields, covers}``. ``option`` may be empty while the type is not chosen. ``covers`` lists the other slots the same file stands for: the file is sent once, for this slot, and one read fills all of them."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_type": {
                "enum": [
                  "local",
                  "mobile",
                  "toll_free",
                  "national"
                ],
                "type": "string",
                "title": "Number Type",
                "description": "The kind of number this registration covers. Copy it from the offer in ``quote_numbers`` or the number in ``list_numbers``."
              },
              "country_code": {
                "type": "string",
                "title": "Country Code",
                "description": "ISO 3166-1 alpha-2 country code, such as ``US``."
              },
              "subject_type": {
                "anyOf": [
                  {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Subject Type",
                "default": null,
                "description": "Who the registration is for, matching the requirements: the user (``person``) or their company (``business``). It has no default; without it, nothing is sent."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "VerificationPrintedName": {
                "type": "object",
                "title": "VerificationPrintedName",
                "required": [
                  "given_names",
                  "surnames",
                  "latin_given_names",
                  "latin_surnames",
                  "business_name"
                ],
                "properties": {
                  "surnames": {
                    "type": "string",
                    "title": "Surnames",
                    "description": "That person's surnames."
                  },
                  "given_names": {
                    "type": "string",
                    "title": "Given Names",
                    "description": "The given names of the person the document is about or addressed to, never a person who signs for the issuer."
                  },
                  "business_name": {
                    "type": "string",
                    "title": "Business Name",
                    "description": "The name of the company the document is about or addressed to, never the company that issued it."
                  },
                  "latin_surnames": {
                    "type": "string",
                    "title": "Latin Surnames",
                    "default": "",
                    "description": "The surnames in Latin letters, the same way."
                  },
                  "latin_given_names": {
                    "type": "string",
                    "title": "Latin Given Names",
                    "default": "",
                    "description": "The given names in Latin letters as the document prints them (its machine-readable zone or a transliteration), or empty."
                  }
                },
                "description": "The name printed on a document, as read. Empty strings when not printed."
              },
              "VerificationDocumentRead": {
                "type": "object",
                "title": "VerificationDocumentRead",
                "required": [
                  "read",
                  "option",
                  "fields",
                  "expiry_date",
                  "printed_name",
                  "skipped",
                  "none_of_types",
                  "file_slot"
                ],
                "properties": {
                  "read": {
                    "type": "boolean",
                    "title": "Read",
                    "description": "False when nothing was read from the file: the reader is off, the file type is not supported, the read failed or took too long (no warning), or the file is unreadable (an 'unreadable' warning). The other values are then empty."
                  },
                  "fields": {
                    "type": "object",
                    "title": "Fields",
                    "description": "Values for the fields of the slot's document types, by field name, as printed on the file.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "option": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Option",
                    "description": "The slot's document type the file looks like, as an option key, or null when none fits or it was not read."
                  },
                  "skipped": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "daily_limit"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Skipped",
                    "default": null,
                    "description": "Why the file was not read, when Hail chose not to: 'daily_limit' when the workspace has used today's document reads. Null otherwise."
                  },
                  "file_slot": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "File Slot",
                    "default": null,
                    "description": "The slot whose file this was read from: this slot, or the slot whose file covers it. Slots with the same `file_slot` share one file. Null when not read."
                  },
                  "expiry_date": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Expiry Date",
                    "description": "The expiry date printed on the file (YYYY-MM-DD), or null."
                  },
                  "printed_name": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/VerificationPrintedName"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The name printed on the file, or null when not read."
                  },
                  "none_of_types": {
                    "type": "boolean",
                    "title": "None Of Types",
                    "default": false,
                    "description": "True when the file was read and looks like none of the slot's document types (`option` is then null)."
                  }
                },
                "description": "What was read from one slot's file."
              },
              "VerificationDocumentWarning": {
                "type": "object",
                "title": "VerificationDocumentWarning",
                "required": [
                  "field",
                  "kind",
                  "message"
                ],
                "properties": {
                  "kind": {
                    "enum": [
                      "unreadable",
                      "rotated",
                      "expired",
                      "document_type",
                      "name"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "description": "'unreadable', 'rotated' (upside down or on its side), 'expired', 'document_type' (the file does not match the chosen type), or 'name' (the typed name differs from the printed one)."
                  },
                  "field": {
                    "type": "string",
                    "title": "Field",
                    "description": "Where to show it: a slot name for the document itself, or the path of a typed value (`first_name`, `<slot>.<field>`, `address.customer_name`)."
                  },
                  "message": {
                    "type": "string",
                    "title": "Message",
                    "description": "What is wrong and how to fix it."
                  }
                },
                "description": "Something on an uploaded document the carrier may refuse. A warning\nonly: you can still submit."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationDocumentCheckResponse",
                "required": [
                  "fields",
                  "address",
                  "documents",
                  "warnings",
                  "note"
                ],
                "properties": {
                  "note": {
                    "type": "string",
                    "title": "Note",
                    "description": "What the check does not cover."
                  },
                  "fields": {
                    "type": "object",
                    "title": "Fields",
                    "description": "Values for the form's own `fields`, by field name, read from the files.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "address": {
                    "type": "object",
                    "title": "Address",
                    "description": "Address parts read from the files (`customer_name`, `street`, `city`, `region`, `postal_code`, `country_code`). Only the parts found.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "warnings": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/VerificationDocumentWarning"
                    },
                    "title": "Warnings",
                    "description": "Things the carrier may refuse. Empty when nothing was found."
                  },
                  "documents": {
                    "type": "object",
                    "title": "Documents",
                    "description": "What was read from each slot that had a file, by slot name.",
                    "additionalProperties": {
                      "$ref": "#/$defs/VerificationDocumentRead"
                    }
                  }
                },
                "description": "Returned by ``POST /verifications/document-check``."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "loc",
                        "msg"
                      ],
                      "properties": {
                        "loc": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          }
                        },
                        "msg": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Validation issues with an input path and a message."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Read verification documents",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "submit_verification",
          "title": "Submit a verification",
          "description": "Submit authorized applicant details and documents for carrier registration.\n\n        Submission is irreversible once sent for review. Carriers retain submitted documents.\n        Applicant answers, address and documents follow the carrier's current\n        requirements for the chosen applicant type and registration purpose.\n        Number registration needs the offer's quote ID. Toll-free texting needs the\n        owned number's ID. The named applicant must authorize the filing.\n        The user must review and approve SMS campaign text before submission.\n\n        For billed workspaces, an offer available for automatic purchase requires credit for\n        the setup fee plus first month. Hail reserves that amount during review and\n        applies it to a purchase using this registration. Hail releases the hold\n        after rejection, cancellation or 30 days without purchase following approval.\n        ``purpose=\"sms\"`` registers US local numbers for US texting with carrier filing fees.\n        Free toll-free verification uses type ``toll_free``, country ``US`` or ``CA``, the\n        owned ``number_id`` and ``registration_kind=toll_free`` among the form fields.\n\n        Inline files are included in the tool call and base64 adds about a third\n        to their size. Decoded inline files total at most 29 MiB. The API also\n        limits the combined file size, including uploads, to 30 MiB.\n        The form accepts at most 100 applicant answers. ``check_verification``\n        can preflight the same form without filing.\n\n        Returns ``id``, ``state`` and ``subject_name``. Carrier review takes business days.\n        A duplicate registration can return 409. A timeout can leave a submission in progress.\n        Carrier field errors include ``problems`` and leave no saved submission.",
          "inputSchema": {
            "type": "object",
            "title": "submit_verification_toolArguments",
            "required": [
              "country_code",
              "number_type",
              "fields",
              "documents",
              "files",
              "attest_authorized"
            ],
            "properties": {
              "files": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "slot",
                        "upload_id"
                      ],
                      "properties": {
                        "slot": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,64}$",
                          "description": "The key in ``documents`` that identifies what this file proves."
                        },
                        "upload_id": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``."
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "required": [
                        "slot",
                        "content_type",
                        "content_base64"
                      ],
                      "properties": {
                        "slot": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9_-]{1,64}$",
                          "description": "The key in ``documents`` that identifies what this file proves."
                        },
                        "content_type": {
                          "enum": [
                            "image/jpeg",
                            "image/png",
                            "application/pdf"
                          ],
                          "type": "string",
                          "description": "Media type of the actual document. Hail checks it against the file bytes."
                        },
                        "content_base64": {
                          "type": "string",
                          "description": "Bytes of the complete document for this slot, supplied directly in the tool call.",
                          "contentEncoding": "base64"
                        }
                      }
                    }
                  ]
                },
                "title": "Files",
                "maxItems": 20,
                "description": "One file per slot being filled, keyed by the matching slot in ``documents``. Upload IDs come from ``create_file_upload`` with purpose ``verification_document`` and last one hour. The inline form suits small files. Each file is at most 10 MiB."
              },
              "fields": {
                "type": "object",
                "title": "Fields",
                "description": "Applicant answers as text, keyed by the field names in ``get_verification_requirements``. Choice fields take comma-separated option keys."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "customer_name",
                      "street",
                      "city",
                      "region",
                      "postal_code",
                      "country_code"
                    ],
                    "properties": {
                      "city": {
                        "type": "string",
                        "title": "City",
                        "description": "City or town as it appears in the applicant's mailing address."
                      },
                      "region": {
                        "type": "string",
                        "title": "Region",
                        "description": "State, province, or equivalent administrative area in the applicant's address."
                      },
                      "street": {
                        "type": "string",
                        "title": "Street",
                        "description": "Street address."
                      },
                      "postal_code": {
                        "type": "string",
                        "title": "Postal Code",
                        "description": "Postal or ZIP code of the street address, such as `94103`."
                      },
                      "country_code": {
                        "type": "string",
                        "title": "Country Code",
                        "description": "ISO alpha-2 address country."
                      },
                      "customer_name": {
                        "type": "string",
                        "title": "Customer Name",
                        "description": "Name associated with the address."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Address",
                "default": null,
                "description": "The applicant's address. Give it when the requirements include one; otherwise leave it out."
              },
              "purpose": {
                "enum": [
                  "number",
                  "sms"
                ],
                "type": "string",
                "title": "Purpose",
                "default": "number",
                "description": "What the registration is for: ``number`` registers the applicant so a number can be bought; ``sms`` registers US texting (local 10DLC or toll-free)."
              },
              "quote_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Quote Id",
                "default": null,
                "description": "The number offer this registration lets the user buy: the offer's ``quote_id`` from ``quote_numbers``, the same one used for the requirements. Give it when ``purpose`` is ``number``; leave it out for ``sms``."
              },
              "documents": {
                "type": "object",
                "title": "Documents",
                "description": "Map from each needed document slot to ``{option, fields}``, with the option chosen from that slot in the requirements."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Number Id",
                "default": null,
                "description": "The owned number this registration is for: its ID from ``list_numbers``, the same one used for the requirements. Give it for toll-free texting and when the form asks for the sending number; otherwise leave it out."
              },
              "number_type": {
                "enum": [
                  "local",
                  "mobile",
                  "toll_free",
                  "national"
                ],
                "type": "string",
                "title": "Number Type",
                "description": "The kind of number this registration covers. Copy it from the offer in ``quote_numbers`` or the number in ``list_numbers``."
              },
              "country_code": {
                "type": "string",
                "title": "Country Code",
                "description": "ISO 3166-1 alpha-2 country code, such as ``US``."
              },
              "subject_type": {
                "anyOf": [
                  {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Subject Type",
                "default": null,
                "description": "Who the registration is for, matching the requirements: the user (``person``) or their company (``business``). It has no default; without it, nothing is sent."
              },
              "attest_authorized": {
                "type": "boolean",
                "title": "Attest Authorized",
                "description": "Confirms that the applicant supplied the details and files and authorized this filing. Hail sends the filing only when this is ``true``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationResponse",
                "required": [
                  "id",
                  "number_id",
                  "country_code",
                  "number_type",
                  "subject_type",
                  "subject_name",
                  "purpose",
                  "state",
                  "rejection_reason",
                  "created_at",
                  "updated_at",
                  "submitted_at",
                  "approved_at",
                  "confirmation",
                  "step",
                  "campaign_accepted",
                  "runtime_ready",
                  "cancellable",
                  "kept_until",
                  "resubmittable",
                  "identity_confirmed",
                  "waiting_for_credit",
                  "credit_needed_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this verification."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "enum": [
                          "confirm_identity",
                          "filing",
                          "carrier_review",
                          "runtime_setup",
                          "needs_information"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                  },
                  "purpose": {
                    "type": "string",
                    "title": "Purpose",
                    "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                  },
                  "number_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Number Id",
                    "default": null,
                    "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When the verification was created."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When it last changed."
                  },
                  "approved_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Approved At",
                    "default": null,
                    "description": "When the carrier approved it."
                  },
                  "cancellable": {
                    "type": "boolean",
                    "title": "Cancellable",
                    "default": false,
                    "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "confirmation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Confirmation",
                    "default": null,
                    "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                  },
                  "subject_type": {
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "submitted_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Submitted At",
                    "default": null,
                    "description": "When it was submitted to the carrier."
                  },
                  "resubmittable": {
                    "type": "boolean",
                    "title": "Resubmittable",
                    "default": false,
                    "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                  },
                  "runtime_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Runtime Ready",
                    "default": null,
                    "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                  },
                  "rejection_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rejection Reason",
                    "default": null,
                    "description": "Why it was rejected. Null unless rejected."
                  },
                  "campaign_accepted": {
                    "type": "boolean",
                    "title": "Campaign Accepted",
                    "default": false,
                    "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                  },
                  "identity_confirmed": {
                    "type": "boolean",
                    "title": "Identity Confirmed",
                    "default": false,
                    "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                  },
                  "waiting_for_credit": {
                    "type": "boolean",
                    "title": "Waiting For Credit",
                    "default": false,
                    "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                  },
                  "credit_needed_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Credit Needed Cents",
                    "default": null,
                    "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                  }
                },
                "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "loc",
                        "msg"
                      ],
                      "properties": {
                        "loc": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          }
                        },
                        "msg": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Validation issues with an input path and a message."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Submit a verification",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "resubmit_verification",
          "title": "Fix and resubmit a verification",
          "description": "File a rejected number registration again, with fixes, from what Hail kept.\n\n        Hail keeps a number registration's answers and files for 30 days after\n        submit (``kept_until``); ``get_sms_application`` returns the kept answers\n        and file names. A supplied answer map, address or document selection\n        replaces that saved part. Other parts are reused. Country, number type\n        and subject type stay as filed.\n\n        Irreversible once sent: it files a new registration (a new ``id``) with\n        the same credit rules as ``submit_verification``, and dismisses the\n        rejected one. Returns the new registration, or an error with\n        ``problems`` when nothing was sent.",
          "inputSchema": {
            "type": "object",
            "title": "resubmit_verification_toolArguments",
            "required": [
              "verification_id",
              "attest_authorized"
            ],
            "properties": {
              "files": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "slot",
                            "upload_id"
                          ],
                          "properties": {
                            "slot": {
                              "type": "string",
                              "pattern": "^[A-Za-z0-9_-]{1,64}$",
                              "description": "The key in ``documents`` that identifies what this file proves."
                            },
                            "upload_id": {
                              "type": "string",
                              "format": "uuid",
                              "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "required": [
                            "slot",
                            "content_type",
                            "content_base64"
                          ],
                          "properties": {
                            "slot": {
                              "type": "string",
                              "pattern": "^[A-Za-z0-9_-]{1,64}$",
                              "description": "The key in ``documents`` that identifies what this file proves."
                            },
                            "content_type": {
                              "enum": [
                                "image/jpeg",
                                "image/png",
                                "application/pdf"
                              ],
                              "type": "string",
                              "description": "Media type of the actual document. Hail checks it against the file bytes."
                            },
                            "content_base64": {
                              "type": "string",
                              "description": "Bytes of the complete document for this slot, supplied directly in the tool call.",
                              "contentEncoding": "base64"
                            }
                          }
                        }
                      ]
                    },
                    "maxItems": 20
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Files",
                "default": null,
                "description": "Replacement files, using the same upload or inline form as ``submit_verification``. An unchanged slot and document option can reuse the saved file."
              },
              "fields": {
                "anyOf": [
                  {
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Fields",
                "default": null,
                "description": "All form fields, replacing the kept ones. Null keeps them."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "customer_name",
                      "street",
                      "city",
                      "region",
                      "postal_code",
                      "country_code"
                    ],
                    "properties": {
                      "city": {
                        "type": "string",
                        "title": "City",
                        "description": "City or town as it appears in the applicant's mailing address."
                      },
                      "region": {
                        "type": "string",
                        "title": "Region",
                        "description": "State, province, or equivalent administrative area in the applicant's address."
                      },
                      "street": {
                        "type": "string",
                        "title": "Street",
                        "description": "Street address."
                      },
                      "postal_code": {
                        "type": "string",
                        "title": "Postal Code",
                        "description": "Postal or ZIP code of the street address, such as `94103`."
                      },
                      "country_code": {
                        "type": "string",
                        "title": "Country Code",
                        "description": "ISO alpha-2 address country."
                      },
                      "customer_name": {
                        "type": "string",
                        "title": "Customer Name",
                        "description": "Name associated with the address."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Address",
                "default": null,
                "description": "The applicant's address. Give it when the requirements include one; otherwise leave it out."
              },
              "quote_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Quote Id",
                "default": null,
                "description": "Replacement offer from ``quote_numbers`` if the saved quote is missing or unavailable. Null reuses the saved quote."
              },
              "documents": {
                "anyOf": [
                  {
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Documents",
                "default": null,
                "description": "All document slots ``{slot: {option, fields}}``, replacing the kept ones. Null keeps them."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "verification_id": {
                "type": "string",
                "title": "Verification Id",
                "description": "ID of a rejected number registration with ``resubmittable: true``, from ``list_verifications``."
              },
              "attest_authorized": {
                "type": "boolean",
                "title": "Attest Authorized",
                "description": "Confirms that the applicant supplied the details and files and authorized this filing. Hail sends the filing only when this is ``true``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationResponse",
                "required": [
                  "id",
                  "number_id",
                  "country_code",
                  "number_type",
                  "subject_type",
                  "subject_name",
                  "purpose",
                  "state",
                  "rejection_reason",
                  "created_at",
                  "updated_at",
                  "submitted_at",
                  "approved_at",
                  "confirmation",
                  "step",
                  "campaign_accepted",
                  "runtime_ready",
                  "cancellable",
                  "kept_until",
                  "resubmittable",
                  "identity_confirmed",
                  "waiting_for_credit",
                  "credit_needed_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this verification."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "enum": [
                          "confirm_identity",
                          "filing",
                          "carrier_review",
                          "runtime_setup",
                          "needs_information"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                  },
                  "purpose": {
                    "type": "string",
                    "title": "Purpose",
                    "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                  },
                  "number_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Number Id",
                    "default": null,
                    "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When the verification was created."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When it last changed."
                  },
                  "approved_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Approved At",
                    "default": null,
                    "description": "When the carrier approved it."
                  },
                  "cancellable": {
                    "type": "boolean",
                    "title": "Cancellable",
                    "default": false,
                    "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "confirmation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Confirmation",
                    "default": null,
                    "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                  },
                  "subject_type": {
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "submitted_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Submitted At",
                    "default": null,
                    "description": "When it was submitted to the carrier."
                  },
                  "resubmittable": {
                    "type": "boolean",
                    "title": "Resubmittable",
                    "default": false,
                    "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                  },
                  "runtime_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Runtime Ready",
                    "default": null,
                    "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                  },
                  "rejection_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rejection Reason",
                    "default": null,
                    "description": "Why it was rejected. Null unless rejected."
                  },
                  "campaign_accepted": {
                    "type": "boolean",
                    "title": "Campaign Accepted",
                    "default": false,
                    "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                  },
                  "identity_confirmed": {
                    "type": "boolean",
                    "title": "Identity Confirmed",
                    "default": false,
                    "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                  },
                  "waiting_for_credit": {
                    "type": "boolean",
                    "title": "Waiting For Credit",
                    "default": false,
                    "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                  },
                  "credit_needed_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Credit Needed Cents",
                    "default": null,
                    "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                  }
                },
                "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "loc",
                        "msg"
                      ],
                      "properties": {
                        "loc": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          }
                        },
                        "msg": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Validation issues with an input path and a message."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Fix and resubmit a verification",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "list_verifications",
          "title": "List verifications",
          "description": "List workspace carrier registrations, newest first.\n\n        Items include IDs, applicant names and types, country, number type, purpose,\n        state, rejection details, timestamps, confirmation method and SMS progress fields.\n        States are awaiting_review, submitting, submitted, approved, rejected or cancelled.\n        SMS steps include confirm_identity, filing, carrier_review, needs_information and runtime_setup.\n        ``campaign_accepted`` alone does not authorize texting: runtime readiness and number attachment are also required.\n        ``identity_confirmed`` can carry over to a later filing for the same person.\n        ``waiting_for_credit`` means a carrier fee prevents the next step.\n        ``credit_needed_cents`` is that registration's share of the additional credit needed,\n        or null when it is not waiting. Shares across waiting registrations are additive.\n        ``confirmation=\"code\"`` identifies a carrier-texted confirmation code.\n        Returns ``items`` or an error.",
          "inputSchema": {
            "type": "object",
            "title": "list_verifications_toolArguments",
            "properties": {
              "purpose": {
                "anyOf": [
                  {
                    "enum": [
                      "number",
                      "sms"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Purpose",
                "default": null,
                "description": "Show one kind of registration: ``number`` for registrations that let the user buy numbers, ``sms`` for US texting. Omitted: both."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "title": "VerificationResponse",
                      "required": [
                        "id",
                        "number_id",
                        "country_code",
                        "number_type",
                        "subject_type",
                        "subject_name",
                        "purpose",
                        "state",
                        "rejection_reason",
                        "created_at",
                        "updated_at",
                        "submitted_at",
                        "approved_at",
                        "confirmation",
                        "step",
                        "campaign_accepted",
                        "runtime_ready",
                        "cancellable",
                        "kept_until",
                        "resubmittable",
                        "identity_confirmed",
                        "waiting_for_credit",
                        "credit_needed_cents"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "title": "Id",
                          "format": "uuid",
                          "description": "Unique identifier for this verification."
                        },
                        "step": {
                          "anyOf": [
                            {
                              "enum": [
                                "confirm_identity",
                                "filing",
                                "carrier_review",
                                "runtime_setup",
                                "needs_information"
                              ],
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Step",
                          "default": null,
                          "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                        },
                        "state": {
                          "type": "string",
                          "title": "State",
                          "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                        },
                        "purpose": {
                          "type": "string",
                          "title": "Purpose",
                          "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                        },
                        "number_id": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Number Id",
                          "default": null,
                          "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                        },
                        "created_at": {
                          "type": "string",
                          "title": "Created At",
                          "format": "date-time",
                          "description": "When the verification was created."
                        },
                        "kept_until": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Kept Until",
                          "default": null,
                          "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                        },
                        "updated_at": {
                          "type": "string",
                          "title": "Updated At",
                          "format": "date-time",
                          "description": "When it last changed."
                        },
                        "approved_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Approved At",
                          "default": null,
                          "description": "When the carrier approved it."
                        },
                        "cancellable": {
                          "type": "boolean",
                          "title": "Cancellable",
                          "default": false,
                          "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                        },
                        "number_type": {
                          "type": "string",
                          "title": "Number Type",
                          "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                        },
                        "confirmation": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Confirmation",
                          "default": null,
                          "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                        },
                        "country_code": {
                          "type": "string",
                          "title": "Country Code",
                          "description": "ISO alpha-2 country code."
                        },
                        "subject_name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Subject Name",
                          "default": null,
                          "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                        },
                        "subject_type": {
                          "type": "string",
                          "title": "Subject Type",
                          "description": "'person' or 'business'."
                        },
                        "submitted_at": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Submitted At",
                          "default": null,
                          "description": "When it was submitted to the carrier."
                        },
                        "resubmittable": {
                          "type": "boolean",
                          "title": "Resubmittable",
                          "default": false,
                          "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                        },
                        "runtime_ready": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Runtime Ready",
                          "default": null,
                          "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                        },
                        "rejection_reason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Rejection Reason",
                          "default": null,
                          "description": "Why it was rejected. Null unless rejected."
                        },
                        "campaign_accepted": {
                          "type": "boolean",
                          "title": "Campaign Accepted",
                          "default": false,
                          "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                        },
                        "identity_confirmed": {
                          "type": "boolean",
                          "title": "Identity Confirmed",
                          "default": false,
                          "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                        },
                        "waiting_for_credit": {
                          "type": "boolean",
                          "title": "Waiting For Credit",
                          "default": false,
                          "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                        },
                        "credit_needed_cents": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Credit Needed Cents",
                          "default": null,
                          "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                        }
                      },
                      "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
                    }
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List verifications",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_verification",
          "title": "Get a verification",
          "description": "Read one carrier registration's current state and reported next step.\n\n        The carrier state refreshes at most once per minute. Review can take business days.\n        ``step=\"needs_information\"`` means the existing SMS application needs corrections;\n        its saved applicant details and paid identity remain attached to the same registration.\n        An approved registration can make matching number offers ready for purchase.\n        Rejections include ``rejection_reason``.\n        ``waiting_for_credit`` indicates a fee awaiting payment.\n        ``credit_needed_cents`` is this registration's share of the additional credit needed.\n        Returns the registration record or an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_verification_toolArguments",
            "required": [
              "verification_id"
            ],
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "verification_id": {
                "type": "string",
                "title": "Verification Id",
                "description": "Registration ID, from ``list_verifications`` or ``submit_verification``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationResponse",
                "required": [
                  "id",
                  "number_id",
                  "country_code",
                  "number_type",
                  "subject_type",
                  "subject_name",
                  "purpose",
                  "state",
                  "rejection_reason",
                  "created_at",
                  "updated_at",
                  "submitted_at",
                  "approved_at",
                  "confirmation",
                  "step",
                  "campaign_accepted",
                  "runtime_ready",
                  "cancellable",
                  "kept_until",
                  "resubmittable",
                  "identity_confirmed",
                  "waiting_for_credit",
                  "credit_needed_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this verification."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "enum": [
                          "confirm_identity",
                          "filing",
                          "carrier_review",
                          "runtime_setup",
                          "needs_information"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                  },
                  "purpose": {
                    "type": "string",
                    "title": "Purpose",
                    "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                  },
                  "number_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Number Id",
                    "default": null,
                    "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When the verification was created."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When it last changed."
                  },
                  "approved_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Approved At",
                    "default": null,
                    "description": "When the carrier approved it."
                  },
                  "cancellable": {
                    "type": "boolean",
                    "title": "Cancellable",
                    "default": false,
                    "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "confirmation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Confirmation",
                    "default": null,
                    "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                  },
                  "subject_type": {
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "submitted_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Submitted At",
                    "default": null,
                    "description": "When it was submitted to the carrier."
                  },
                  "resubmittable": {
                    "type": "boolean",
                    "title": "Resubmittable",
                    "default": false,
                    "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                  },
                  "runtime_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Runtime Ready",
                    "default": null,
                    "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                  },
                  "rejection_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rejection Reason",
                    "default": null,
                    "description": "Why it was rejected. Null unless rejected."
                  },
                  "campaign_accepted": {
                    "type": "boolean",
                    "title": "Campaign Accepted",
                    "default": false,
                    "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                  },
                  "identity_confirmed": {
                    "type": "boolean",
                    "title": "Identity Confirmed",
                    "default": false,
                    "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                  },
                  "waiting_for_credit": {
                    "type": "boolean",
                    "title": "Waiting For Credit",
                    "default": false,
                    "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                  },
                  "credit_needed_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Credit Needed Cents",
                    "default": null,
                    "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                  }
                },
                "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get a verification",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_sms_application",
          "title": "Read saved SMS application",
          "description": "Read saved answers for an existing workspace registration.\n\n        Returns private applicant fields, address and available sender information.\n        An older application without saved answers returns 404.\n        A number registration (``purpose=\"number\"``) returns its kept answers,\n        ``documents`` and the kept ``files`` by name (without their bytes) until\n        ``kept_until``; ``resubmit_verification`` files it again from them.\n        This read can recover an existing sender's details but creates no brand and files no campaign.\n        Corrections retain the existing registration and its paid identity.",
          "inputSchema": {
            "type": "object",
            "title": "get_sms_application_toolArguments",
            "required": [
              "verification_id"
            ],
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "verification_id": {
                "type": "string",
                "title": "Verification Id",
                "description": "ID of the original registration, from ``list_verifications``: an SMS one, including one needing corrections, or a rejected number one."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "Address": {
                "type": "object",
                "title": "Address",
                "required": [
                  "customer_name",
                  "street",
                  "city",
                  "region",
                  "postal_code",
                  "country_code"
                ],
                "properties": {
                  "city": {
                    "type": "string",
                    "title": "City",
                    "description": "City or town of the street address, as written on mail sent there."
                  },
                  "region": {
                    "type": "string",
                    "title": "Region",
                    "description": "State, province or region."
                  },
                  "street": {
                    "type": "string",
                    "title": "Street",
                    "description": "Street address."
                  },
                  "postal_code": {
                    "type": "string",
                    "title": "Postal Code",
                    "description": "Postal or ZIP code of the street address, such as `94103`."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 address country."
                  },
                  "customer_name": {
                    "type": "string",
                    "title": "Customer Name",
                    "description": "Name associated with the address."
                  }
                }
              },
              "KeptFileInfo": {
                "type": "object",
                "title": "KeptFileInfo",
                "required": [
                  "slot",
                  "filename",
                  "content_type",
                  "size_bytes"
                ],
                "properties": {
                  "slot": {
                    "type": "string",
                    "title": "Slot",
                    "description": "The document slot it was filed for."
                  },
                  "filename": {
                    "type": "string",
                    "title": "Filename",
                    "description": "The file name as it was sent."
                  },
                  "size_bytes": {
                    "type": "integer",
                    "title": "Size Bytes",
                    "description": "Size in bytes."
                  },
                  "content_type": {
                    "type": "string",
                    "title": "Content Type",
                    "description": "'image/jpeg', 'image/png' or 'application/pdf'."
                  }
                },
                "description": "A file Hail keeps for a resubmit. The bytes are never returned."
              },
              "KeptDocumentAnswer": {
                "type": "object",
                "title": "KeptDocumentAnswer",
                "required": [
                  "option",
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "object",
                    "title": "Fields",
                    "description": "The document's typed fields.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "option": {
                    "type": "string",
                    "title": "Option",
                    "default": "",
                    "description": "The document option chosen."
                  }
                },
                "description": "A document slot's saved choice on a number registration."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "SmsApplicationResponse",
                "required": [
                  "schema_version",
                  "subject_type",
                  "fields",
                  "address",
                  "documents",
                  "files",
                  "kept_until",
                  "quote_id",
                  "hold_cents"
                ],
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/KeptFileInfo"
                    },
                    "title": "Files",
                    "description": "Number registration only: the files Hail keeps, by slot. A resubmit reuses each one unless you send a new file for its slot."
                  },
                  "fields": {
                    "type": "object",
                    "title": "Fields",
                    "description": "Saved application answers; legacy responses may contain only verified sender details.",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "address": {
                    "anyOf": [
                      {
                        "$ref": "#/$defs/Address"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Original sender address, when available."
                  },
                  "quote_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Quote Id",
                    "default": null,
                    "description": "Number registration only: the quote it was filed for. It keeps working with GET /v1/verifications/requirements and the resubmit while the answers are kept."
                  },
                  "documents": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/$defs/KeptDocumentAnswer"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Documents",
                    "default": null,
                    "description": "Number registration only: each document slot's option and fields, by slot name. Null for US texting."
                  },
                  "hold_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Hold Cents",
                    "default": null,
                    "description": "Number registration only: the credit a resubmit with that quote sets aside (its setup and first month). Null when nothing is set aside or the quote is gone."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "Number registration only: when Hail deletes these answers and files."
                  },
                  "subject_type": {
                    "enum": [
                      "person",
                      "business"
                    ],
                    "type": "string",
                    "title": "Subject Type",
                    "description": "Original sender route: person or business."
                  },
                  "schema_version": {
                    "type": "integer",
                    "title": "Schema Version",
                    "default": 1,
                    "description": "Version of this saved-answer response format."
                  }
                },
                "description": "Private saved answers of a registration: a US texting application\n(or verified sender details for an old filing), or a number\nregistration kept for a resubmit."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Read saved SMS application",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "preview_sms_application",
          "title": "Preview a US texting registration",
          "description": "Preview local or toll-free SMS registration text without filing or charging.\n\n        The response contains the description, consent flow and samples for user review before submission.\n        Answers require actual applicant information and consent evidence.\n        Evidence links can come from ``create_file_upload`` with purpose ``sms_evidence``.\n        Field or length errors appear in ``problems``.\n        Limits are 100 fields and 64 KiB of combined fields and address.\n        A successful preview does not guarantee submission: duplicates, low credit or carrier checks can still prevent it.\n        ",
          "inputSchema": {
            "type": "object",
            "title": "preview_sms_application_toolArguments",
            "required": [
              "subject_type",
              "fields"
            ],
            "properties": {
              "fields": {
                "type": "object",
                "title": "Fields",
                "description": "Proposed applicant answers keyed by the field names in ``get_verification_requirements`` with purpose ``sms``."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "customer_name",
                      "street",
                      "city",
                      "region",
                      "postal_code",
                      "country_code"
                    ],
                    "properties": {
                      "city": {
                        "type": "string",
                        "title": "City",
                        "description": "City or town as it appears in the applicant's mailing address."
                      },
                      "region": {
                        "type": "string",
                        "title": "Region",
                        "description": "State, province, or equivalent administrative area in the applicant's address."
                      },
                      "street": {
                        "type": "string",
                        "title": "Street",
                        "description": "Street address."
                      },
                      "postal_code": {
                        "type": "string",
                        "title": "Postal Code",
                        "description": "Postal or ZIP code of the street address, such as `94103`."
                      },
                      "country_code": {
                        "type": "string",
                        "title": "Country Code",
                        "description": "ISO alpha-2 address country."
                      },
                      "customer_name": {
                        "type": "string",
                        "title": "Customer Name",
                        "description": "Name associated with the address."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Address",
                "default": null,
                "description": "The applicant's address. Give it when the requirements include one; otherwise leave it out."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "number_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Number Id",
                "default": null,
                "description": "Owned toll-free number ID from ``list_numbers``, for a toll-free preview. Omitted: a US local preview."
              },
              "subject_type": {
                "enum": [
                  "person",
                  "business"
                ],
                "type": "string",
                "title": "Subject Type",
                "description": "Who the registration is for: the user themselves (``person``) or their company (``business``)."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "CampaignText",
                "required": [
                  "use_case",
                  "description",
                  "message_flow",
                  "samples",
                  "has_links",
                  "privacy_policy_url",
                  "terms_url",
                  "text_types",
                  "contact_email",
                  "has_phone",
                  "age_gated",
                  "direct_lending",
                  "opt_in_message",
                  "opt_in_keywords",
                  "schema_version"
                ],
                "properties": {
                  "samples": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Samples"
                  },
                  "use_case": {
                    "type": "string",
                    "title": "Use Case"
                  },
                  "age_gated": {
                    "type": "boolean",
                    "title": "Age Gated",
                    "default": false
                  },
                  "has_links": {
                    "type": "boolean",
                    "title": "Has Links"
                  },
                  "has_phone": {
                    "type": "boolean",
                    "title": "Has Phone",
                    "default": false
                  },
                  "terms_url": {
                    "type": "string",
                    "title": "Terms Url"
                  },
                  "text_types": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Text Types"
                  },
                  "description": {
                    "type": "string",
                    "title": "Description"
                  },
                  "message_flow": {
                    "type": "string",
                    "title": "Message Flow"
                  },
                  "contact_email": {
                    "type": "string",
                    "title": "Contact Email"
                  },
                  "direct_lending": {
                    "type": "boolean",
                    "title": "Direct Lending",
                    "default": false
                  },
                  "opt_in_message": {
                    "type": "string",
                    "title": "Opt In Message",
                    "default": ""
                  },
                  "schema_version": {
                    "type": "integer",
                    "title": "Schema Version",
                    "default": 1,
                    "minimum": 1
                  },
                  "opt_in_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Opt In Keywords"
                  },
                  "privacy_policy_url": {
                    "type": "string",
                    "title": "Privacy Policy Url"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "loc",
                        "msg"
                      ],
                      "properties": {
                        "loc": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          }
                        },
                        "msg": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Validation issues with an input path and a message."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Preview a US texting registration",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "amend_sms_application",
          "title": "Correct an existing SMS application",
          "description": "Correct an existing SMS registration at the needs_information step.\n\n        The address must be accurate; saved details can be reused when still correct.\n        Identity changes are rejected. This operation does not create a replacement brand.\n        Actual consent evidence is required; ``create_file_upload`` with purpose\n        ``sms_evidence`` returns a public evidence link.\n        Limits are 100 fields and 64 KiB of combined fields and address. No documents are uploaded.\n        A later campaign filing can incur the normal review fee.\n        After a timeout, the existing registration can already reflect the correction.\n        Returns the updated registration or an error.",
          "inputSchema": {
            "type": "object",
            "title": "amend_sms_application_toolArguments",
            "required": [
              "verification_id",
              "fields",
              "attest_authorized"
            ],
            "properties": {
              "fields": {
                "type": "object",
                "title": "Fields",
                "description": "Complete corrected answers that satisfy the current requirements; ``get_sms_application`` returns the saved ones."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "customer_name",
                      "street",
                      "city",
                      "region",
                      "postal_code",
                      "country_code"
                    ],
                    "properties": {
                      "city": {
                        "type": "string",
                        "title": "City",
                        "description": "City or town as it appears in the applicant's mailing address."
                      },
                      "region": {
                        "type": "string",
                        "title": "Region",
                        "description": "State, province, or equivalent administrative area in the applicant's address."
                      },
                      "street": {
                        "type": "string",
                        "title": "Street",
                        "description": "Street address."
                      },
                      "postal_code": {
                        "type": "string",
                        "title": "Postal Code",
                        "description": "Postal or ZIP code of the street address, such as `94103`."
                      },
                      "country_code": {
                        "type": "string",
                        "title": "Country Code",
                        "description": "ISO alpha-2 address country."
                      },
                      "customer_name": {
                        "type": "string",
                        "title": "Customer Name",
                        "description": "Name associated with the address."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Address",
                "default": null,
                "description": "The sender's original address, as saved; ``get_sms_application`` returns it. Omitted: the correction is refused, because Hail cannot confirm the sender is unchanged."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "verification_id": {
                "type": "string",
                "title": "Verification Id",
                "description": "ID of the SMS registration at step ``needs_information``, from ``list_verifications``; the same paid application and identity."
              },
              "attest_authorized": {
                "type": "boolean",
                "title": "Attest Authorized",
                "description": "``true`` records that the applicant reviewed and approved these corrections."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationResponse",
                "required": [
                  "id",
                  "number_id",
                  "country_code",
                  "number_type",
                  "subject_type",
                  "subject_name",
                  "purpose",
                  "state",
                  "rejection_reason",
                  "created_at",
                  "updated_at",
                  "submitted_at",
                  "approved_at",
                  "confirmation",
                  "step",
                  "campaign_accepted",
                  "runtime_ready",
                  "cancellable",
                  "kept_until",
                  "resubmittable",
                  "identity_confirmed",
                  "waiting_for_credit",
                  "credit_needed_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this verification."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "enum": [
                          "confirm_identity",
                          "filing",
                          "carrier_review",
                          "runtime_setup",
                          "needs_information"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                  },
                  "purpose": {
                    "type": "string",
                    "title": "Purpose",
                    "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                  },
                  "number_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Number Id",
                    "default": null,
                    "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When the verification was created."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When it last changed."
                  },
                  "approved_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Approved At",
                    "default": null,
                    "description": "When the carrier approved it."
                  },
                  "cancellable": {
                    "type": "boolean",
                    "title": "Cancellable",
                    "default": false,
                    "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "confirmation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Confirmation",
                    "default": null,
                    "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                  },
                  "subject_type": {
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "submitted_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Submitted At",
                    "default": null,
                    "description": "When it was submitted to the carrier."
                  },
                  "resubmittable": {
                    "type": "boolean",
                    "title": "Resubmittable",
                    "default": false,
                    "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                  },
                  "runtime_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Runtime Ready",
                    "default": null,
                    "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                  },
                  "rejection_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rejection Reason",
                    "default": null,
                    "description": "Why it was rejected. Null unless rejected."
                  },
                  "campaign_accepted": {
                    "type": "boolean",
                    "title": "Campaign Accepted",
                    "default": false,
                    "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                  },
                  "identity_confirmed": {
                    "type": "boolean",
                    "title": "Identity Confirmed",
                    "default": false,
                    "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                  },
                  "waiting_for_credit": {
                    "type": "boolean",
                    "title": "Waiting For Credit",
                    "default": false,
                    "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                  },
                  "credit_needed_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Credit Needed Cents",
                    "default": null,
                    "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                  }
                },
                "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "loc",
                        "msg"
                      ],
                      "properties": {
                        "loc": {
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "integer"
                            ]
                          }
                        },
                        "msg": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "Validation issues with an input path and a message."
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Correct an existing SMS application",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "cancel_verification",
          "title": "Cancel a verification",
          "description": "Cancel an eligible carrier registration after explicit user authorization.\n\n        Awaiting-review drafts are discarded; rejected registrations are dismissed.\n        A rejected registration must be dismissed before a new one is submitted\n        for the same country and number type.\n        An approved US SMS registration can be cancelled: attached numbers lose US texting eligibility\n        and its monthly fee ends after the current month.\n        Some registrations have a minimum of three monthly fees even after early cancellation.\n        Submitting or submitted registrations normally return 409; an accepted SMS campaign\n        at runtime_setup is an exception.\n        An SMS application at needs_information supports correction on its existing paid identity.\n        Returns the cancelled registration or an error.",
          "inputSchema": {
            "type": "object",
            "title": "cancel_verification_toolArguments",
            "required": [
              "verification_id"
            ],
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "verification_id": {
                "type": "string",
                "title": "Verification Id",
                "description": "Registration ID, from ``list_verifications`` or ``submit_verification``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationResponse",
                "required": [
                  "id",
                  "number_id",
                  "country_code",
                  "number_type",
                  "subject_type",
                  "subject_name",
                  "purpose",
                  "state",
                  "rejection_reason",
                  "created_at",
                  "updated_at",
                  "submitted_at",
                  "approved_at",
                  "confirmation",
                  "step",
                  "campaign_accepted",
                  "runtime_ready",
                  "cancellable",
                  "kept_until",
                  "resubmittable",
                  "identity_confirmed",
                  "waiting_for_credit",
                  "credit_needed_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this verification."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "enum": [
                          "confirm_identity",
                          "filing",
                          "carrier_review",
                          "runtime_setup",
                          "needs_information"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                  },
                  "purpose": {
                    "type": "string",
                    "title": "Purpose",
                    "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                  },
                  "number_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Number Id",
                    "default": null,
                    "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When the verification was created."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When it last changed."
                  },
                  "approved_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Approved At",
                    "default": null,
                    "description": "When the carrier approved it."
                  },
                  "cancellable": {
                    "type": "boolean",
                    "title": "Cancellable",
                    "default": false,
                    "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "confirmation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Confirmation",
                    "default": null,
                    "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                  },
                  "subject_type": {
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "submitted_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Submitted At",
                    "default": null,
                    "description": "When it was submitted to the carrier."
                  },
                  "resubmittable": {
                    "type": "boolean",
                    "title": "Resubmittable",
                    "default": false,
                    "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                  },
                  "runtime_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Runtime Ready",
                    "default": null,
                    "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                  },
                  "rejection_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rejection Reason",
                    "default": null,
                    "description": "Why it was rejected. Null unless rejected."
                  },
                  "campaign_accepted": {
                    "type": "boolean",
                    "title": "Campaign Accepted",
                    "default": false,
                    "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                  },
                  "identity_confirmed": {
                    "type": "boolean",
                    "title": "Identity Confirmed",
                    "default": false,
                    "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                  },
                  "waiting_for_credit": {
                    "type": "boolean",
                    "title": "Waiting For Credit",
                    "default": false,
                    "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                  },
                  "credit_needed_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Credit Needed Cents",
                    "default": null,
                    "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                  }
                },
                "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Cancel a verification",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "confirm_verification",
          "title": "Confirm a verification with a code",
          "description": "Confirm a registration using the code the carrier sent to the applicant.\n\n        Incorrect or expired codes return a field error; the carrier can send a replacement after a day.\n        Success advances the registration but does not guarantee immediate approval.\n        A ``confirmation=\"reply\"`` registration requires a direct reply to the carrier's text instead.\n        Returns the updated registration or an error.",
          "inputSchema": {
            "type": "object",
            "title": "confirm_verification_toolArguments",
            "required": [
              "verification_id",
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "title": "Code",
                "maxLength": 10,
                "minLength": 4,
                "description": "The code the carrier texted to the applicant's mobile, exactly as the applicant read it out."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "verification_id": {
                "type": "string",
                "title": "Verification Id",
                "description": "ID of a registration with ``confirmation=\"code\"``, from ``list_verifications`` or ``get_verification``."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "VerificationResponse",
                "required": [
                  "id",
                  "number_id",
                  "country_code",
                  "number_type",
                  "subject_type",
                  "subject_name",
                  "purpose",
                  "state",
                  "rejection_reason",
                  "created_at",
                  "updated_at",
                  "submitted_at",
                  "approved_at",
                  "confirmation",
                  "step",
                  "campaign_accepted",
                  "runtime_ready",
                  "cancellable",
                  "kept_until",
                  "resubmittable",
                  "identity_confirmed",
                  "waiting_for_credit",
                  "credit_needed_cents"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this verification."
                  },
                  "step": {
                    "anyOf": [
                      {
                        "enum": [
                          "confirm_identity",
                          "filing",
                          "carrier_review",
                          "runtime_setup",
                          "needs_information"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Step",
                    "default": null,
                    "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise."
                  },
                  "state": {
                    "type": "string",
                    "title": "State",
                    "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'."
                  },
                  "purpose": {
                    "type": "string",
                    "title": "Purpose",
                    "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification."
                  },
                  "number_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Number Id",
                    "default": null,
                    "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When the verification was created."
                  },
                  "kept_until": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Kept Until",
                    "default": null,
                    "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When it last changed."
                  },
                  "approved_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Approved At",
                    "default": null,
                    "description": "When the carrier approved it."
                  },
                  "cancellable": {
                    "type": "boolean",
                    "title": "Cancellable",
                    "default": false,
                    "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now."
                  },
                  "number_type": {
                    "type": "string",
                    "title": "Number Type",
                    "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'."
                  },
                  "confirmation": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Confirmation",
                    "default": null,
                    "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending."
                  },
                  "country_code": {
                    "type": "string",
                    "title": "Country Code",
                    "description": "ISO alpha-2 country code."
                  },
                  "subject_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Subject Name",
                    "default": null,
                    "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown."
                  },
                  "subject_type": {
                    "type": "string",
                    "title": "Subject Type",
                    "description": "'person' or 'business'."
                  },
                  "submitted_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Submitted At",
                    "default": null,
                    "description": "When it was submitted to the carrier."
                  },
                  "resubmittable": {
                    "type": "boolean",
                    "title": "Resubmittable",
                    "default": false,
                    "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`)."
                  },
                  "runtime_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Runtime Ready",
                    "default": null,
                    "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked."
                  },
                  "rejection_reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Rejection Reason",
                    "default": null,
                    "description": "Why it was rejected. Null unless rejected."
                  },
                  "campaign_accepted": {
                    "type": "boolean",
                    "title": "Campaign Accepted",
                    "default": false,
                    "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send."
                  },
                  "identity_confirmed": {
                    "type": "boolean",
                    "title": "Identity Confirmed",
                    "default": false,
                    "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations."
                  },
                  "waiting_for_credit": {
                    "type": "boolean",
                    "title": "Waiting For Credit",
                    "default": false,
                    "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check."
                  },
                  "credit_needed_cents": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Credit Needed Cents",
                    "default": null,
                    "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay."
                  }
                },
                "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Confirm a verification with a code",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_agent",
          "title": "Get an agent",
          "description": "Read one saved workspace agent by ID.\n\n        Returns its name, instructions, greeting, disclosure, voice settings, enabled channels,\n        status, limits and other saved settings, or an error.",
          "inputSchema": {
            "type": "object",
            "title": "get_agent_toolArguments",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "title": "Agent Id",
                "description": "Saved agent ID, from ``list_agents`` or ``create_agent``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "HttpToolOut": {
                "type": "object",
                "title": "HttpToolOut",
                "required": [
                  "name",
                  "description",
                  "url",
                  "parameters",
                  "header_names",
                  "timeout_seconds",
                  "wait_message"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "title": "Url",
                    "description": "HTTPS endpoint Hail POSTs to."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Function name the model calls."
                  },
                  "parameters": {
                    "type": "object",
                    "title": "Parameters",
                    "description": "JSON Schema of the arguments.",
                    "additionalProperties": true
                  },
                  "description": {
                    "type": "string",
                    "title": "Description",
                    "description": "What the tool does. Read by the model."
                  },
                  "header_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Header Names",
                    "description": "Names of the saved static headers. Values are never returned."
                  },
                  "wait_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Wait Message",
                    "description": "Sentence said on a call while waiting, or null."
                  },
                  "timeout_seconds": {
                    "type": "integer",
                    "title": "Timeout Seconds",
                    "description": "Seconds Hail waits for the answer."
                  }
                }
              },
              "HandoverContactOut": {
                "type": "object",
                "title": "HandoverContactOut",
                "required": [
                  "contact_id",
                  "name",
                  "phone_e164",
                  "note"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Name, as the agent says it."
                  },
                  "note": {
                    "type": "string",
                    "title": "Note",
                    "description": "When the agent hands over to this person."
                  },
                  "contact_id": {
                    "type": "string",
                    "title": "Contact Id",
                    "description": "The person: a contact's id, or `member:<user id>` for a team member."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "description": "Number Hail dials. Null when the contact lost its number; it is then skipped."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "AgentResponse",
                "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"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this agent."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name, unique per organization."
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Tools",
                    "description": "Allowed tools; null means all."
                  },
                  "status": {
                    "enum": [
                      "live",
                      "paused"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "'live' or 'paused'."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "http_tools": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HttpToolOut"
                    },
                    "title": "Http Tools",
                    "description": "Your APIs the agent may call."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "sms_enabled": {
                    "type": "boolean",
                    "title": "Sms Enabled",
                    "description": "Whether the agent answers texts."
                  },
                  "voice_config": {
                    "type": "object",
                    "title": "Voice Config",
                    "description": "TTS voice and language settings.",
                    "additionalProperties": true
                  },
                  "ai_disclosure": {
                    "type": "boolean",
                    "title": "Ai Disclosure",
                    "description": "Whether the AI line is spoken first."
                  },
                  "email_enabled": {
                    "type": "boolean",
                    "title": "Email Enabled",
                    "default": true,
                    "description": "Whether the agent answers email."
                  },
                  "first_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "First Message",
                    "description": "Opening line, or null to wait."
                  },
                  "system_prompt": {
                    "type": "string",
                    "title": "System Prompt",
                    "description": "Task instructions."
                  },
                  "voice_enabled": {
                    "type": "boolean",
                    "title": "Voice Enabled",
                    "description": "Whether the agent answers calls."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that owns this agent."
                  },
                  "http_tool_secret": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Http Tool Secret",
                    "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."
                  },
                  "handover_contacts": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HandoverContactOut"
                    },
                    "title": "Handover Contacts",
                    "description": "People the agent may hand a live call to."
                  },
                  "recording_enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Enabled",
                    "default": null,
                    "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting."
                  },
                  "ai_disclosure_line": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ai Disclosure Line",
                    "description": "This agent's AI line template, or null for the workspace line."
                  },
                  "max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Duration Seconds",
                    "description": "Soft cap per call; null means the workspace limit."
                  },
                  "handover_max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Handover Max Duration Seconds",
                    "description": "Call limit after a handover contact answers; null means 1800 (30 minutes)."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Get an agent",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_agent",
          "title": "Update an agent",
          "description": "Update selected fields on a saved workspace agent.\n\n        Replaces active settings, including instructions and the whole handover list.\n        Pausing the agent or disabling a channel stops new replies on that channel.\n        Omitted fields retain their values.\n        Updating language or voice alone preserves the other setting.\n        ``clear_fields`` resets the named settings and cannot be combined with a new\n        value for the same field. Clearing the greeting lets the inbound caller speak\n        first. Other resets use workspace defaults, except the handover limit resets\n        to 30 minutes.\n        Existing calls keep their starting settings; changes affect later calls and texts.\n        Returns the updated agent or an error.",
          "inputSchema": {
            "type": "object",
            "title": "update_agent_toolArguments",
            "required": [
              "agent_id"
            ],
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Name",
                "default": null,
                "description": "Agent display name."
              },
              "tools": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Tools",
                "default": null,
                "description": "Names of allowed built-in tools for calls or replies. An empty list selects none. Hail adds call transfer when handover contacts are configured."
              },
              "status": {
                "anyOf": [
                  {
                    "enum": [
                      "live",
                      "paused"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Status",
                "default": null,
                "description": "``paused`` stops the agent answering; ``live`` turns it back on."
              },
              "agent_id": {
                "type": "string",
                "title": "Agent Id",
                "description": "Saved agent ID, from ``list_agents`` or ``create_agent``."
              },
              "language": {
                "anyOf": [
                  {
                    "enum": [
                      "ar",
                      "bg",
                      "bn",
                      "cs",
                      "da",
                      "de",
                      "el",
                      "en",
                      "es",
                      "fi",
                      "fr",
                      "gu",
                      "he",
                      "hi",
                      "hr",
                      "hu",
                      "id",
                      "it",
                      "ja",
                      "kn",
                      "ko",
                      "mr",
                      "ms",
                      "nl",
                      "no",
                      "pl",
                      "pt",
                      "ro",
                      "ru",
                      "sk",
                      "sv",
                      "ta",
                      "te",
                      "th",
                      "tl",
                      "tr",
                      "uk",
                      "vi",
                      "zh"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Language",
                "default": null,
                "description": "Spoken language on calls, such as ``es`` for Spanish."
              },
              "voice_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Voice Id",
                "default": null,
                "description": "Text-to-speech voice ID from the voice provider that serves the call, such as an ElevenLabs voice ID."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "http_tools": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Http Tools",
                "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."
              },
              "sms_enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Sms Enabled",
                "default": null,
                "description": "Whether this agent answers texts on numbers whose texts route to it."
              },
              "clear_fields": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "recording_enabled",
                        "first_message",
                        "ai_disclosure_line",
                        "tools",
                        "max_duration_seconds",
                        "handover_max_duration_seconds"
                      ],
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Clear Fields",
                "default": null,
                "description": "Settings to reset to the workspace default. Omitted: nothing is reset."
              },
              "ai_disclosure": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Ai Disclosure",
                "default": null,
                "description": "Speak the AI disclosure line first on every call."
              },
              "email_enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email Enabled",
                "default": null,
                "description": "Whether this agent replies to mail on addresses routed to it."
              },
              "first_message": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "First Message",
                "default": null,
                "description": "Greeting spoken after the AI disclosure. Without one, an inbound agent waits for the caller."
              },
              "system_prompt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "System Prompt",
                "default": null,
                "description": "Instructions that define the agent's behavior on calls, texts and email replies."
              },
              "voice_enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Voice Enabled",
                "default": null,
                "description": "Whether this agent answers calls on numbers whose calls route to it."
              },
              "handover_contacts": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Handover Contacts",
                "default": null,
                "description": "Replaces 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."
              },
              "recording_enabled": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Recording Enabled",
                "default": null,
                "description": "Recording preference for this agent's calls, overriding the workspace setting."
              },
              "ai_disclosure_line": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Ai Disclosure Line",
                "default": null,
                "description": "Custom AI disclosure line replacing the workspace line. ``{org}`` expands to the organization name."
              },
              "max_duration_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 3600,
                    "minimum": 60
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Duration Seconds",
                "default": null,
                "description": "Longest 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_seconds": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 3600,
                    "minimum": 60
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Handover Max Duration Seconds",
                "default": null,
                "description": "Longest a call may last after a handover contact answers, in seconds, counted from that answer."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "HttpToolOut": {
                "type": "object",
                "title": "HttpToolOut",
                "required": [
                  "name",
                  "description",
                  "url",
                  "parameters",
                  "header_names",
                  "timeout_seconds",
                  "wait_message"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "title": "Url",
                    "description": "HTTPS endpoint Hail POSTs to."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Function name the model calls."
                  },
                  "parameters": {
                    "type": "object",
                    "title": "Parameters",
                    "description": "JSON Schema of the arguments.",
                    "additionalProperties": true
                  },
                  "description": {
                    "type": "string",
                    "title": "Description",
                    "description": "What the tool does. Read by the model."
                  },
                  "header_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Header Names",
                    "description": "Names of the saved static headers. Values are never returned."
                  },
                  "wait_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Wait Message",
                    "description": "Sentence said on a call while waiting, or null."
                  },
                  "timeout_seconds": {
                    "type": "integer",
                    "title": "Timeout Seconds",
                    "description": "Seconds Hail waits for the answer."
                  }
                }
              },
              "HandoverContactOut": {
                "type": "object",
                "title": "HandoverContactOut",
                "required": [
                  "contact_id",
                  "name",
                  "phone_e164",
                  "note"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Name, as the agent says it."
                  },
                  "note": {
                    "type": "string",
                    "title": "Note",
                    "description": "When the agent hands over to this person."
                  },
                  "contact_id": {
                    "type": "string",
                    "title": "Contact Id",
                    "description": "The person: a contact's id, or `member:<user id>` for a team member."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "description": "Number Hail dials. Null when the contact lost its number; it is then skipped."
                  }
                }
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "AgentResponse",
                "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"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this agent."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name, unique per organization."
                  },
                  "tools": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Tools",
                    "description": "Allowed tools; null means all."
                  },
                  "status": {
                    "enum": [
                      "live",
                      "paused"
                    ],
                    "type": "string",
                    "title": "Status",
                    "description": "'live' or 'paused'."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "http_tools": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HttpToolOut"
                    },
                    "title": "Http Tools",
                    "description": "Your APIs the agent may call."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "ISO 8601 timestamp."
                  },
                  "sms_enabled": {
                    "type": "boolean",
                    "title": "Sms Enabled",
                    "description": "Whether the agent answers texts."
                  },
                  "voice_config": {
                    "type": "object",
                    "title": "Voice Config",
                    "description": "TTS voice and language settings.",
                    "additionalProperties": true
                  },
                  "ai_disclosure": {
                    "type": "boolean",
                    "title": "Ai Disclosure",
                    "description": "Whether the AI line is spoken first."
                  },
                  "email_enabled": {
                    "type": "boolean",
                    "title": "Email Enabled",
                    "default": true,
                    "description": "Whether the agent answers email."
                  },
                  "first_message": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "First Message",
                    "description": "Opening line, or null to wait."
                  },
                  "system_prompt": {
                    "type": "string",
                    "title": "System Prompt",
                    "description": "Task instructions."
                  },
                  "voice_enabled": {
                    "type": "boolean",
                    "title": "Voice Enabled",
                    "description": "Whether the agent answers calls."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that owns this agent."
                  },
                  "http_tool_secret": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Http Tool Secret",
                    "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."
                  },
                  "handover_contacts": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/HandoverContactOut"
                    },
                    "title": "Handover Contacts",
                    "description": "People the agent may hand a live call to."
                  },
                  "recording_enabled": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Recording Enabled",
                    "default": null,
                    "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting."
                  },
                  "ai_disclosure_line": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Ai Disclosure Line",
                    "description": "This agent's AI line template, or null for the workspace line."
                  },
                  "max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Max Duration Seconds",
                    "description": "Soft cap per call; null means the workspace limit."
                  },
                  "handover_max_duration_seconds": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Handover Max Duration Seconds",
                    "description": "Call limit after a handover contact answers; null means 1800 (30 minutes)."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Update an agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "delete_agent",
          "title": "Delete an agent",
          "description": "Permanently delete a saved agent after explicit user authorization.\n\n        A mismatched ``confirm_name`` returns an error without deleting anything.\n        Numbers assigned to the deleted agent stop answering calls with it;\n        texts are delivered to webhooks only.\n        Pausing an agent is a separate non-deleting status change.\n        Returns ``deleted``, ``agent_id`` and ``name``, or an error.",
          "inputSchema": {
            "type": "object",
            "title": "delete_agent_toolArguments",
            "required": [
              "agent_id",
              "confirm_name"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "title": "Agent Id",
                "description": "Saved agent ID, from ``list_agents`` or ``create_agent``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "confirm_name": {
                "type": "string",
                "title": "Confirm Name",
                "description": "The agent's saved ``name``, as a safety check."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "deleted",
                  "agent_id",
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "deleted": {
                    "type": "boolean",
                    "const": true
                  },
                  "agent_id": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Delete an agent",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_contacts",
          "title": "List contacts",
          "description": "List workspace members and manually saved contacts.\n\n        A member entry carries a workspace role and a ``member:<user_id>`` ID.\n        A manually saved contact has its own contact ID and no workspace role.\n        Either kind can be selected for handover when it has a phone number.",
          "inputSchema": {
            "type": "object",
            "title": "list_contacts_toolArguments",
            "properties": {
              "q": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Q",
                "default": null,
                "description": "Only contacts whose name, email or phone contains this text."
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 500,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Maximum matching contacts to include in this reply. Omitted: 100."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "ContactEntry": {
                "type": "object",
                "title": "ContactEntry",
                "required": [
                  "id",
                  "kind",
                  "name",
                  "phone_e164",
                  "email",
                  "role"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "description": "'member:<user_id>' for an org member, or the contact row's UUID (as a string) for a manual contact."
                  },
                  "kind": {
                    "enum": [
                      "member",
                      "manual"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "description": "'member' if this row is a member of the organization, 'manual' if it was added as a contact."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name."
                  },
                  "role": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Role",
                    "default": null,
                    "description": "Organization role (e.g. 'owner', 'admin', 'member') for kind='member'. Always null for kind='manual'."
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email",
                    "default": null,
                    "description": "Email address. Null if none on file."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "default": null,
                    "description": "Phone number, E.164 format. Null if none on file."
                  }
                },
                "description": "One row in the computed contacts union — an org member or a manual\ncontact. ``id`` is ``member:<user_id>`` for members, the contact row's\nUUID (as str) for manual rows."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "ContactListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ContactEntry"
                    },
                    "title": "Items",
                    "description": "Contacts in this page."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List contacts",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "lookup_contact",
          "title": "Look up a contact",
          "description": "Find workspace contacts by name, email or phone fragment.\n\n        Returns up to ten matches containing names, phone numbers, email addresses and IDs.\n        Several matches can refer to different people.",
          "inputSchema": {
            "type": "object",
            "title": "lookup_contact_toolArguments",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "title": "Query",
                "description": "Part of a name, email address or phone number, such as ``Dana``."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "ContactEntry": {
                "type": "object",
                "title": "ContactEntry",
                "required": [
                  "id",
                  "kind",
                  "name",
                  "phone_e164",
                  "email",
                  "role"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "description": "'member:<user_id>' for an org member, or the contact row's UUID (as a string) for a manual contact."
                  },
                  "kind": {
                    "enum": [
                      "member",
                      "manual"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "description": "'member' if this row is a member of the organization, 'manual' if it was added as a contact."
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name."
                  },
                  "role": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Role",
                    "default": null,
                    "description": "Organization role (e.g. 'owner', 'admin', 'member') for kind='member'. Always null for kind='manual'."
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email",
                    "default": null,
                    "description": "Email address. Null if none on file."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "default": null,
                    "description": "Phone number, E.164 format. Null if none on file."
                  }
                },
                "description": "One row in the computed contacts union — an org member or a manual\ncontact. ``id`` is ``member:<user_id>`` for members, the contact row's\nUUID (as str) for manual rows."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "ContactListResponse",
                "required": [
                  "items",
                  "next_cursor"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/ContactEntry"
                    },
                    "title": "Items",
                    "description": "Contacts in this page."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Look up a contact",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_email_domains",
          "title": "List email domains",
          "description": "List the workspace's sending identities and default sender address.\n\n        The listing helps select a sender for ``send_email``.\n        Only identities with ``verification_status=\"verified\"`` can send.\n        For ``kind=\"custom\"``, ``domain`` is a domain supporting any local part.\n        For ``kind=\"hail_mail\"``, it is already a complete email address.\n        One verified custom domain takes priority over the Hail mail address.\n        With several verified custom domains, ``default_from`` is null and email sending requires an explicit sender.\n        A custom domain with ``sends_enabled`` false cannot send: it is skipped for picks and refuses an explicit ``from_``.\n        Toggle it with PATCH ``/v1/email-domains/{id}`` (custom domains only).\n        ",
          "inputSchema": {
            "type": "object",
            "title": "list_email_domains_toolArguments",
            "properties": {
              "limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 200,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Limit",
                "default": null,
                "description": "Maximum sending identities to include on this page. Omitted: 50."
              },
              "cursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Cursor",
                "default": null,
                "description": "Pagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$defs": {
              "DnsRecordSchema": {
                "type": "object",
                "title": "DnsRecordSchema",
                "required": [
                  "name",
                  "value",
                  "type",
                  "priority"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "DNS record name/host to publish (e.g. a CNAME's subdomain)."
                  },
                  "type": {
                    "enum": [
                      "CNAME",
                      "MX",
                      "TXT"
                    ],
                    "type": "string",
                    "title": "Type",
                    "default": "CNAME",
                    "description": "DNS record type: 'CNAME' (DKIM), 'MX' (MAIL FROM), or 'TXT' (SPF)."
                  },
                  "value": {
                    "type": "string",
                    "title": "Value",
                    "description": "DNS record value to publish (e.g. a CNAME target or TXT content)."
                  },
                  "priority": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Priority",
                    "default": null,
                    "description": "MX priority. Only present for type='MX'; null otherwise."
                  }
                },
                "description": "One DNS record the tenant must publish for a sending domain.\n\nCovers DKIM CNAMEs, MAIL FROM MX, and SPF TXT records.",
                "additionalProperties": true
              },
              "EmailDomainResponse": {
                "type": "object",
                "title": "EmailDomainResponse",
                "required": [
                  "id",
                  "organization_id",
                  "kind",
                  "domain",
                  "local_prefix_workspace",
                  "local_prefix_name",
                  "verification_status",
                  "dns_records",
                  "mail_from_domain",
                  "mail_from_status",
                  "provider",
                  "verified_at",
                  "inbound_enabled",
                  "sends_enabled",
                  "forward_to",
                  "forward_rate_per_hour",
                  "email_agent_id",
                  "email_agent_scope",
                  "created_at",
                  "updated_at",
                  "receive_ready",
                  "local_prefix_user",
                  "local_prefix_org"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "title": "Id",
                    "format": "uuid",
                    "description": "Unique identifier for this email domain."
                  },
                  "kind": {
                    "enum": [
                      "hail_mail",
                      "custom"
                    ],
                    "type": "string",
                    "title": "Kind",
                    "description": "'hail_mail' (Hail-hosted address) or 'custom' (your own domain)."
                  },
                  "domain": {
                    "type": "string",
                    "title": "Domain",
                    "description": "The DNS domain mail is sent from."
                  },
                  "provider": {
                    "type": "string",
                    "title": "Provider",
                    "description": "Email sending provider for this domain (currently always 'ses')."
                  },
                  "created_at": {
                    "type": "string",
                    "title": "Created At",
                    "format": "date-time",
                    "description": "When this domain was added, ISO 8601 timestamp."
                  },
                  "forward_to": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Forward To",
                    "default": null,
                    "description": "Email addresses inbound mail is forwarded to, if inbound is enabled."
                  },
                  "updated_at": {
                    "type": "string",
                    "title": "Updated At",
                    "format": "date-time",
                    "description": "When this domain was last modified, ISO 8601 timestamp."
                  },
                  "dns_records": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/DnsRecordSchema"
                    },
                    "title": "Dns Records",
                    "description": "DNS records (DKIM, MAIL FROM MX, SPF) the tenant must publish to verify this domain."
                  },
                  "verified_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Verified At",
                    "description": "When the domain became verified, ISO 8601 timestamp. Null until it is."
                  },
                  "receive_ready": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Receive Ready",
                    "default": null,
                    "description": "True when the domain's published MX points at Hail's inbound host. Only populated by POST /{id}/verify on custom domains; null everywhere else."
                  },
                  "sends_enabled": {
                    "type": "boolean",
                    "title": "Sends Enabled",
                    "default": true,
                    "description": "Send switch for kind='custom' rows. False stops the domain from sending at all: it is skipped by default sender selection and a send that names it explicitly returns 422. Always true for hail_mail rows."
                  },
                  "email_agent_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email Agent Id",
                    "default": null,
                    "description": "The agent that answers mail to this address. Null when none does."
                  },
                  "inbound_enabled": {
                    "type": "boolean",
                    "title": "Inbound Enabled",
                    "default": false,
                    "description": "Whether this domain accepts and forwards inbound mail."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization that owns this domain."
                  },
                  "local_prefix_org": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix Org",
                    "readOnly": true,
                    "deprecated": true,
                    "description": "Deprecated: use local_prefix_name. Same value."
                  },
                  "mail_from_domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Mail From Domain",
                    "description": "Custom MAIL FROM domain, if configured. Null when using the provider default."
                  },
                  "mail_from_status": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Mail From Status",
                    "default": null,
                    "description": "Verification status of the custom MAIL FROM domain, if one is configured. Secondary to verification_status."
                  },
                  "email_agent_scope": {
                    "enum": [
                      "members",
                      "anyone"
                    ],
                    "type": "string",
                    "title": "Email Agent Scope",
                    "default": "members",
                    "description": "Who the agent answers: 'members' or 'anyone'."
                  },
                  "local_prefix_name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix Name",
                    "description": "Name prefix of a hail_mail address: the part after the '+'. A free name inside the workspace, such as a person or team. Null for kind='custom'."
                  },
                  "local_prefix_user": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix User",
                    "readOnly": true,
                    "deprecated": true,
                    "description": "Deprecated: use local_prefix_workspace. Same value."
                  },
                  "verification_status": {
                    "enum": [
                      "pending",
                      "verified",
                      "failed"
                    ],
                    "type": "string",
                    "title": "Verification Status",
                    "description": "'pending' (not yet verified), 'verified' (ready to send), or 'failed'."
                  },
                  "forward_rate_per_hour": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Forward Rate Per Hour",
                    "default": null,
                    "description": "Configured cap on forwarded messages per hour, if set."
                  },
                  "local_prefix_workspace": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Local Prefix Workspace",
                    "description": "Workspace prefix of a hail_mail address: the part before the '+'. It names the workspace, and one workspace only may hold it. Null for kind='custom'."
                  }
                },
                "description": "Read view for an email domain.\n\nThe inbound-action fields (``inbound_enabled``, ``forward_to``,\n``forward_rate_per_hour``) surface what the row has configured for\nincoming mail."
              }
            },
            "anyOf": [
              {
                "type": "object",
                "title": "EmailDomainListResponse",
                "required": [
                  "items",
                  "next_cursor",
                  "default_from"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/EmailDomainResponse"
                    },
                    "title": "Items",
                    "description": "Email domains in this page."
                  },
                  "next_cursor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Next Cursor",
                    "default": null,
                    "description": "Opaque cursor for the next page. Null when there are no more results."
                  },
                  "default_from": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Default From",
                    "default": null,
                    "description": "The From address used when a send omits 'from'. A verified custom domain wins over the hail-mail address. Null when no such default can be resolved (e.g. multiple verified custom domains, or none that can send yet). Computed across the whole organization, not just this page."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "List email domains",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "whoami",
          "title": "Who am I",
          "description": "Identify the account and organization authorized by the current credentials.\n\n        Returns ``auth_kind``, ``organization_id``, ``user_id``, ``email`` and ``name``.\n        Shared operator credentials have ``auth_kind=\"shared\"`` with null user details.\n        The response identifies the current actor, not a message recipient.",
          "inputSchema": {
            "type": "object",
            "title": "whoami_toolArguments",
            "properties": {
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "WhoamiResponse",
                "required": [
                  "auth_kind",
                  "organization_id",
                  "user_id",
                  "email",
                  "name",
                  "superadmin"
                ],
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Name",
                    "default": null,
                    "description": "The authenticated user's display name. Null for 'shared' callers."
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email",
                    "default": null,
                    "description": "The authenticated user's email. Null for 'shared' callers."
                  },
                  "user_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "User Id",
                    "default": null,
                    "description": "The authenticated user's id. Null for 'shared' callers."
                  },
                  "auth_kind": {
                    "enum": [
                      "apikey",
                      "jwt",
                      "shared"
                    ],
                    "type": "string",
                    "title": "Auth Kind",
                    "description": "How the caller authenticated: 'apikey' (org API key), 'jwt' (logged-in user session), or 'shared' (the shared HAIL_API_KEY, which carries no human identity)."
                  },
                  "superadmin": {
                    "type": "boolean",
                    "title": "Superadmin",
                    "default": false,
                    "description": "True for a Hail staff console session acting on this organization."
                  },
                  "organization_id": {
                    "type": "string",
                    "title": "Organization Id",
                    "format": "uuid",
                    "description": "Organization the caller belongs to."
                  }
                },
                "description": "Who the caller is — the answer ``GET /whoami`` gives.\n\n``user_id``/``email``/``name`` are ``None`` for shared-key\n(``HAIL_API_KEY``) callers: that key carries no human identity. An\nagent that wants to put the operator's address in ``Reply-To`` reads\n``email`` and skips the header when it is ``None``."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Who am I",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_contact",
          "title": "Create a contact",
          "description": "Save a manually managed contact for calls, texts or email.\n\n        The contact appears in workspace contact searches and can be selected\n        for call handover if it has a phone number. A duplicate phone or email\n        returns 409.",
          "inputSchema": {
            "type": "object",
            "title": "create_contact_toolArguments",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "title": "Name",
                "description": "The contact's name."
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Email",
                "default": null,
                "description": "The address to email this contact at, such as ``ana@example.com``. Give this, ``phone_e164``, or both."
              },
              "llm_model": {
                "type": "string",
                "description": "The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
              },
              "phone_e164": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\+[1-9][0-9]{1,14}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Phone E164",
                "default": null,
                "description": "Number used to call or text the contact. A contact can be reachable by phone, email, or both."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "title": "ContactEntry",
                "required": [
                  "id",
                  "kind",
                  "name",
                  "phone_e164",
                  "email",
                  "role"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The contact's ID."
                  },
                  "kind": {
                    "type": "string",
                    "const": "manual"
                  },
                  "name": {
                    "type": "string",
                    "title": "Name",
                    "description": "Display name."
                  },
                  "role": {
                    "type": "null",
                    "description": "Manual contacts have no workspace role."
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Email",
                    "default": null,
                    "description": "Email address. Null if none on file."
                  },
                  "phone_e164": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "title": "Phone E164",
                    "default": null,
                    "description": "Phone number, E.164 format. Null if none on file."
                  }
                },
                "description": "A manually saved workspace contact."
              },
              {
                "type": "object",
                "required": [
                  "error"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  }
                }
              }
            ]
          },
          "annotations": {
            "title": "Create a contact",
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "Hail gives an AI agent phone numbers, voice calls, text messages and email.\n\nRules:\n- place_call, send_sms and send_email need recipient_consent=true. Set it only when the user confirms the recipient agreed to be contacted. Marketing also needs consent_source.\n- acquire_number charges the workspace at once. Call quote_numbers, show the user the price, and buy only after they agree.\n- release_number and delete_agent cannot be undone. Ask the user first.\n- submit_verification files with the carrier and cannot be undone. A number registration holds the setup fee and first month; US local texting has carrier fees. Show the user the details and file only after they agree.\n- To retry a send or a purchase, pass the idempotency_key it returned, so the retry does not send or buy twice.\n\nStart here:\n1. whoami shows the workspace.\n2. list_numbers and list_email_domains show what it can send from. To get a number, use quote_numbers, then acquire_number. Some numbers need get_verification_requirements and submit_verification first.\n3. Send with place_call, send_sms or send_email. Follow progress with get_call, get_sms, get_email or get_events.\n4. To answer incoming calls, texts or mail, create_agent, then route_number or route_email_domain.\n\nLists return next_cursor: pass it as cursor to get the next page. A failure returns {\"error\": ...} with the reason. Fix the input from that reason instead of guessing.\n"
  },
  "changes": {
    "total": 2,
    "latest": [
      {
        "observed_at": "2026-11-23T19:58:02.427Z",
        "from_sha": "69173f9ff171e8dbecf2954a5dea18320e2c13c8070ab4db820f87ab15f75502",
        "to_sha": "a770a8eab2347fbb0faf19a8265fd4cc1a87fe27dbed749ab8f53f522147d197",
        "summary": {
          "tool_added": 71,
          "tool_changed": 145,
          "tool_removed": 92
        },
        "diff": {
          "truncated": true,
          "chars": 122488
        },
        "withheld": false
      },
      {
        "observed_at": "2026-11-22T19:57:02.325Z",
        "from_sha": "b4fef782dad42e462a0cd76531c17d373ed15aa65f3eadaff19d7dcdb56b7b8d",
        "to_sha": "69173f9ff171e8dbecf2954a5dea18320e2c13c8070ab4db820f87ab15f75502",
        "summary": {
          "tool_changed": 6
        },
        "diff": [
          {
            "op": "changed",
            "kind": "tool",
            "name": "create_file_upload",
            "path": "/description",
            "after": "Create a one-time link that uploads one file from a shell with curl.\n\n        The bytes go from the local disk to Hail directly, not through the tool call,\n        so any file that is not tiny goes this way.\n        An email attachment can be up to 25 MB. A verification document must be\n        JPG, PNG or PDF, up to 10 MB, and is usable for 1 hour after the upload.\n        SMS evidence must be a JPG, PNG or PDF of the given ``content_type``, up to 10 MB.\n        Its upload response has a public ``url`` for an ``*_evidence_url`` field.\n        Carrier reviewers open it without signing in, so remove personal information first.\n        Returns ``id``, ``upload_url``, ``expires_at`` (15 minutes), ``max_bytes``\n        and a ready ``curl`` line with a ``'FILE_PATH'`` placeholder for the\n        file's absolute path.\n        The link needs no key and works once. The upload response holds\n        ``size_bytes`` and ``sha256`` to compare with the local file.",
            "before": "Create a one-time link that uploads one file from a shell with curl.\n\n        The bytes go from the local disk to Hail directly, not through the tool call,\n        so any file that is not tiny goes this way.\n        An email attachment can be up to 25 MB. A verification document must be\n        JPG, PNG or PDF, up to 10 MB, and is usable for 1 hour after the upload.\n        Returns ``id``, ``upload_url``, ``expires_at`` (15 minutes), ``max_bytes``\n        and a ready ``curl`` line with a ``'FILE_PATH'`` placeholder for the\n        file's absolute path.\n        The link needs no key and works once. The upload response holds\n        ``size_bytes`` and ``sha256`` to compare with the local file."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "create_file_upload",
            "path": "/inputSchema/properties/purpose/description",
            "after": "What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``.",
            "before": "What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "create_file_upload",
            "path": "/inputSchema/properties/purpose/enum",
            "after": [
              "email_attachment",
              "verification_document",
              "sms_evidence"
            ],
            "before": [
              "email_attachment",
              "verification_document"
            ]
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "get_verification_requirements",
            "path": "/description",
            "after": "Read a carrier's current registration fields, documents, address rules and fees.\n\n        The response's ``subject_types`` lists the applicant types the carrier accepts.\n        US local SMS registration uses ``purpose=\"sms\"``, country ``US`` and type ``local``.\n        Toll-free verification uses ``purpose=\"sms\"``, the number's country ``US`` or ``CA``,\n        type ``toll_free`` and its owned ``number_id``. Each number needs its own verification.\n        Applicant country and business tax status determine the registration route.\n        The personal route is available to US or Canadian applicants without a business tax number.\n        Local 10DLC fees apply at submission, carrier review and monthly after approval.\n        Toll-free verification is free and sends no identity confirmation code.\n\n        Returns ``required``, ``fields``, ``documents`` and ``address_required``.\n        ``required=false`` means a registration submission is unnecessary and would fail.\n        Fields and files require accurate information supplied by the authorized applicant.\n        Choice fields accept comma-separated option keys within their ``min_choices`` and ``max_choices``.\n        Field ``max_length`` uses UTF-16 code units; an emoji counts as two.\n        Selected consent methods can require evidence even when shared fields are optional.\n        No public link for an ``*_evidence_url`` field? Upload the screenshot with\n        ``create_file_upload`` (purpose ``sms_evidence``) and use the ``url`` it returns.\n        Document slots with ``needs_input=false`` require no upload.\n        An upstream failure returns an error.",
            "before": "Read a carrier's current registration fields, documents, address rules and fees.\n\n        The response's ``subject_types`` lists the applicant types the carrier accepts.\n        US local SMS registration uses ``purpose=\"sms\"``, country ``US`` and type ``local``.\n        Toll-free verification uses ``purpose=\"sms\"``, the number's country ``US`` or ``CA``,\n        type ``toll_free`` and its owned ``number_id``. Each number needs its own verification.\n        Applicant country and business tax status determine the registration route.\n        The personal route is available to US or Canadian applicants without a business tax number.\n        Local 10DLC fees apply at submission, carrier review and monthly after approval.\n        Toll-free verification is free and sends no identity confirmation code.\n\n        Returns ``required``, ``fields``, ``documents`` and ``address_required``.\n        ``required=false`` means a registration submission is unnecessary and would fail.\n        Fields and files require accurate information supplied by the authorized applicant.\n        Choice fields accept comma-separated option keys within their ``min_choices`` and ``max_choices``.\n        Field ``max_length`` uses UTF-16 code units; an emoji counts as two.\n        Selected consent methods can require evidence even when shared fields are optional.\n        Document slots with ``needs_input=false`` require no upload.\n        An upstream failure returns an error."
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "preview_sms_application",
            "path": "/description",
            "after": "Preview local or toll-free SMS registration text without filing or charging.\n\n        The response contains the description, consent flow and samples for user review before submission.\n        Answers require actual applicant information and consent evidence.\n        Evidence links can come from ``create_file_upload`` with purpose ``sms_evidence``.\n        Field or length errors appear in ``problems``.\n        Limits are 100 fields and 64 KiB of combined fields and address.\n        A successful preview does not guarantee submission: duplicates, low credit or carrier checks can still prevent it.\n        ",
            "before": "Preview local or toll-free SMS registration text without filing or charging.\n\n        The response contains the description, consent flow and samples for user review before submission.\n        Answers require actual applicant information and consent evidence.\n        Field or length errors appear in ``problems``.\n        Limits are 100 fields and 64 KiB of combined fields and address.\n        A successful preview does not guarantee submission: duplicates, low credit or carrier checks can still prevent it.\n        "
          },
          {
            "op": "changed",
            "kind": "tool",
            "name": "amend_sms_application",
            "path": "/description",
            "after": "Correct an existing SMS registration at the needs_information step.\n\n        The address must be accurate; saved details can be reused when still correct.\n        Identity changes are rejected. This operation does not create a replacement brand.\n        Actual consent evidence is required; ``create_file_upload`` with purpose\n        ``sms_evidence`` returns a public evidence link.\n        Limits are 100 fields and 64 KiB of combined fields and address. No documents are uploaded.\n        A later campaign filing can incur the normal review fee.\n        After a timeout, the existing registration can already reflect the correction.\n        Returns the updated registration or an error.",
            "before": "Correct an existing SMS registration at the needs_information step.\n\n        The address must be accurate; saved details can be reused when still correct.\n        Identity changes are rejected. This operation does not create a replacement brand.\n        Actual consent evidence is required.\n        Limits are 100 fields and 64 KiB of combined fields and address. No documents are uploaded.\n        A later campaign filing can incur the normal review fee.\n        After a timeout, the existing registration can already reflect the correction.\n        Returns the updated registration or an error."
          }
        ],
        "withheld": false
      }
    ]
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}