{
  "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": "api.vendo-ai.com",
    "site": "vendo-ai.com",
    "addresses": [
      {
        "address": "157.90.20.234",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 24940,
          "name": "HETZNER-AS - Hetzner Online GmbH",
          "prefix": "157.90.0.0/16",
          "country": "DE"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "157.90.20.234"
        ],
        "first_seen": "2026-11-21T11:47:00.884Z",
        "last_seen": "2026-11-23T17:00:10.837Z",
        "checks": 3
      }
    ],
    "hosting": [],
    "software": [
      {
        "value": "nginx",
        "evidence": "Server header \"nginx\""
      }
    ],
    "server_info": {
      "name": "Vendo AI",
      "version": "0.1.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "nginx",
      "strict-transport-security": "max-age=31536000; includeSubDomains",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "com.vendo-ai",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "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": "17940",
    "server_name": "com.vendo-ai/vendo-ai",
    "url": "https://api.vendo-ai.com/mcp",
    "host": "api.vendo-ai.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T17:00:10.837Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "cf8cb136bc2239b9323b679e22e33b4ec598cfaba9caaec0828e5dd715a42acd",
    "first_listed_at": "2026-11-21T11:47:00.884Z",
    "created_at": "2026-11-21T07:05:12.455Z",
    "resolved_addresses": [
      "157.90.20.234"
    ]
  },
  "server": {
    "name": "com.vendo-ai/vendo-ai",
    "title": "Vendo AI",
    "description": "Autonomous AI sales: agents, signal-based prospecting, outreach, CRM — 149 tools.",
    "version": "1.0.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://vendo-ai.com/api-mcp/",
    "published_at": "2026-07-28T09:21:00.480Z",
    "updated_at": "2026-07-28T09:21:00.480Z",
    "first_seen": "2026-11-21T07:05:11.580Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "reads-chain",
      "runs-agents",
      "sends-messages",
      "takes-payment",
      "trades"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:26:06.983Z"
  },
  "operator": {
    "key": "vendo-ai.com",
    "name": "vendo-ai.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1554,
    "first_check_in_window": "2026-11-21T11:47:00.884Z",
    "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": "cf8cb136bc2239b9323b679e22e33b4ec598cfaba9caaec0828e5dd715a42acd",
    "tools": 405,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T11:47:02.471Z",
    "tool_names": [
      "create_agent",
      "update_agent",
      "set_agent_avatar_from_url",
      "set_agent_contact_channels",
      "list_voice_catalog",
      "set_agent_voice",
      "test_agent_reply",
      "update_agent_script",
      "add_agent_document",
      "remove_agent_document",
      "generate_knowledge_from_url",
      "scan_agent_website",
      "generate_agent_page_descriptions",
      "generate_support_script",
      "generate_transition_phrases",
      "set_agent_integrations",
      "preview_deep_scan",
      "deep_scan_agent",
      "get_agent_job",
      "list_agent_jobs",
      "save_scan_data",
      "generate_agent_description",
      "generate_agent_script",
      "get_agents_dashboard",
      "get_agent_connection",
      "create_agent_connection",
      "update_agent_connection",
      "preview_delete_agent_connection",
      "delete_agent_connection",
      "get_agent_connection_stats",
      "get_connection_analytics",
      "get_widget_embed_code",
      "create_widget_test_page",
      "list_connection_conversations",
      "get_conversation_recordings",
      "get_presentation",
      "set_presentation_slides",
      "generate_slide_script",
      "set_presentation_voice",
      "set_presentation_look",
      "set_presentation_cta",
      "get_presentation_embed_code",
      "list_agent_presentations",
      "get_narrator_analytics",
      "list_narrator_leads",
      "update_narrator_lead",
      "preview_delete_narrator_lead",
      "delete_narrator_lead",
      "connect_google_meet",
      "get_google_meet_settings",
      "update_google_meet_settings",
      "preview_disconnect_google_meet",
      "disconnect_google_meet",
      "list_google_meet_history",
      "get_google_meet_analytics",
      "list_meetings",
      "list_meeting_agents",
      "get_meeting",
      "get_meeting_transcript",
      "preview_cancel_meeting",
      "cancel_meeting",
      "preview_remove_agent_from_meeting",
      "remove_agent_from_meeting",
      "set_telegram_voice_calls",
      "set_telegram_voice_settings",
      "reconfigure_telegram_bot",
      "list_telegram_chats",
      "get_telegram_chat",
      "preview_send_telegram_message",
      "send_telegram_message",
      "get_telegram_analytics",
      "list_phone_numbers",
      "generate_phone_script",
      "preview_setup_phone_agent",
      "setup_phone_agent",
      "preview_phone_test_call",
      "phone_test_call",
      "list_phone_calls",
      "get_phone_channel_stats",
      "list_whatsapp_accounts",
      "preview_connect_whatsapp_account",
      "connect_whatsapp_account",
      "preview_disconnect_telegram_bot",
      "disconnect_telegram_bot",
      "preview_disconnect_whatsapp_account",
      "disconnect_whatsapp_account",
      "get_site_index_status",
      "start_site_indexing",
      "list_site_index_pages",
      "exclude_site_pages",
      "add_site_pages",
      "index_subdomain",
      "list_campaigns",
      "get_campaign",
      "create_campaign",
      "update_campaign",
      "preview_archive_campaign",
      "archive_campaign",
      "preview_launch_campaign",
      "launch_campaign"
    ],
    "declared": {
      "tools": [
        {
          "name": "create_agent",
          "title": "Create a new agent",
          "description": "Create an AI agent like step 1 of the app's builder. Choose its direction: purpose \"sales\" (default), \"support\" or \"info\". The agent starts in DRAFT and contacts nobody. Needs at least 1 credit on the balance (checked, not charged). Fails with a plan-limit error when all agent slots are used (see get_agent_plan_limits). Next: set_agent_company → generate_agent_script → channels.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Agent's display name, e.g. 'Anna from Acme'"
              },
              "gender": {
                "enum": [
                  "male",
                  "female"
                ],
                "type": "string",
                "description": "Voice/face gender (default female)"
              },
              "purpose": {
                "enum": [
                  "sales",
                  "support",
                  "info"
                ],
                "type": "string",
                "description": "sales = sales agent, support = customer support, info = information assistant"
              },
              "description": {
                "type": "string",
                "description": "1-2 sentences about what the agent does"
              },
              "avatar_preset": {
                "type": "string",
                "pattern": "^avatar-([1-9]|1[0-9]|20)$",
                "description": "Preset face avatar-1 … avatar-20 (male: 1,4,6,8,10-15; female: 2,3,5,7,9,16-20). For your own photo use set_agent_avatar_from_url afterwards"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_agent",
          "title": "Update agent basics",
          "description": "Change an agent's name, description, direction (purpose), voice gender or preset face. Only the fields you pass change. Company name/website/description → set_agent_company; contacts → set_agent_contact_channels. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "name": {
                "type": "string"
              },
              "gender": {
                "enum": [
                  "male",
                  "female"
                ],
                "type": "string"
              },
              "purpose": {
                "enum": [
                  "sales",
                  "support",
                  "info"
                ],
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "avatar_preset": {
                "type": "string",
                "pattern": "^avatar-([1-9]|1[0-9]|20)$",
                "description": "Preset face avatar-1 … avatar-20"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_agent_avatar_from_url",
          "title": "Set the agent's own photo",
          "description": "Upload a custom avatar photo (JPG, PNG or GIF, ≤5 MB) from a public image URL or base64. Replaces the preset face. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "image_url": {
                "type": "string",
                "description": "Public https URL of the image"
              },
              "image_base64": {
                "type": "string",
                "description": "Base64 or data: URL of the image (use instead of image_url)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_agent_contact_channels",
          "title": "Set the contacts the agent hands out",
          "description": "Set the meeting link, presentation link, email, phone, WhatsApp, Telegram and up to 10 custom links that the agent gives to visitors (also shown as screen cards). MERGE: only the channels you pass change; pass \"\" (or null for custom_links) to clear one. Write, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "email": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              },
              "telegram": {
                "type": "string"
              },
              "whatsapp": {
                "type": "string"
              },
              "meeting_url": {
                "type": "string",
                "description": "Booking link, e.g. Calendly (http/https)"
              },
              "custom_links": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "label",
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "note": {
                          "type": "string",
                          "maxLength": 200,
                          "description": "When the agent should share it"
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 60
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 10
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Replaces the whole custom link list; null or [] clears it"
              },
              "presentation_url": {
                "type": "string",
                "description": "Link to a presentation/deck (http/https)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_voice_catalog",
          "title": "List voices (Voice v2 catalogue)",
          "description": "All voices for the website widget, Slide Presenter and Telegram voice: engine, gender, accent, expressive support, Ukrainian support, recommended flag, preview audio. Read-only. Use a voice_id from here in set_agent_voice / set_presentation_voice / set_telegram_voice_settings.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "set_agent_voice",
          "title": "Turn on / configure the website-widget voice",
          "description": "Configure the voice of the agent's website widget exactly like the app's widget settings page and create/update the voice agent at the voice provider, so voice calls in the widget really work. Only the settings you pass change (the rest keep their saved values or the app defaults). voice_id is required the first time (list_voice_catalog). Takes up to ~1 min. Free to configure; widget voice calls cost 15 credits/min.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "llm": {
                "enum": [
                  "fast",
                  "balanced",
                  "smart"
                ],
                "type": "string",
                "description": "Model: fast, balanced (default) or smart"
              },
              "rules": {
                "type": "string",
                "maxLength": 8000,
                "description": "Communication rules (plain text instructions for how the agent talks). Omit to keep the saved ones"
              },
              "speed": {
                "type": "number",
                "maximum": 1.3,
                "minimum": 0.7,
                "description": "Speaking pace, 0.7-1.3 (1 = normal)"
              },
              "volume": {
                "type": "number",
                "maximum": 2,
                "minimum": 0
              },
              "ambient": {
                "enum": [
                  "",
                  "coffee-shop",
                  "call-center",
                  "convention-hall"
                ],
                "type": "string",
                "description": "Background sound; \"\" = none"
              },
              "emotion": {
                "enum": [
                  "neutral",
                  "expressive",
                  "calm",
                  "dynamic"
                ],
                "type": "string",
                "description": "Delivery: neutral, expressive (warm), calm, dynamic (energetic)"
              },
              "handbook": {
                "type": "object",
                "properties": {
                  "high_empathy": {
                    "type": "boolean"
                  },
                  "ai_disclosure": {
                    "type": "boolean"
                  },
                  "scope_boundaries": {
                    "type": "boolean"
                  },
                  "echo_verification": {
                    "type": "boolean"
                  },
                  "natural_filler_words": {
                    "type": "boolean"
                  },
                  "speech_normalization": {
                    "type": "boolean"
                  },
                  "conversational_personality": {
                    "type": "boolean"
                  }
                },
                "description": "Behaviour switches (only the ones you pass change)",
                "additionalProperties": false
              },
              "voice_id": {
                "type": "string",
                "description": "Voice id from list_voice_catalog (e.g. \"retell-Grace\", \"11labs-Adrian\")"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20,
                "description": "Retell locales like [\"en-US\",\"uk-UA\"]; more than one = multilingual (answers in the caller's language). [] or one locale = script language only"
              },
              "end_call_s": {
                "type": "number",
                "maximum": 120,
                "minimum": 10,
                "description": "Hang up after this many seconds of silence"
              },
              "backchannel": {
                "type": "boolean",
                "description": "Short \"mm-hm\" acknowledgements while the person talks"
              },
              "screen_cards": {
                "type": "boolean",
                "description": "Show interactive cards (buttons/forms) on screen during voice calls"
              },
              "denoising_mode": {
                "enum": [
                  "noise-cancellation",
                  "noise-and-background-speech-cancellation"
                ],
                "type": "string"
              },
              "responsiveness": {
                "type": "number",
                "maximum": 1,
                "minimum": 0,
                "description": "How fast the agent answers (1 = fastest)"
              },
              "expressive_mode": {
                "type": "boolean",
                "description": "Only works for voices marked expressive in list_voice_catalog"
              },
              "reminder_seconds": {
                "type": "number",
                "maximum": 120,
                "minimum": 0,
                "description": "Nudge a silent person after N seconds; 0 = off"
              },
              "dynamic_voice_speed": {
                "type": "boolean"
              },
              "ambient_sound_volume": {
                "type": "number",
                "maximum": 2,
                "minimum": 0
              },
              "backchannel_frequency": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              },
              "dynamic_responsiveness": {
                "type": "boolean"
              },
              "interruption_sensitivity": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "test_agent_reply",
          "title": "Ask the agent a test question (text)",
          "description": "Send a message to the agent and get its reply using its current script — a text test, nobody is contacted. Needs a generated script. Use history for a multi-turn test.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "message"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "role",
                    "content"
                  ],
                  "properties": {
                    "role": {
                      "enum": [
                        "user",
                        "assistant"
                      ],
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Earlier turns, oldest first"
              },
              "message": {
                "type": "string",
                "description": "What the visitor says"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_agent_script",
          "title": "Edit the agent's script stages",
          "description": "Replace the script stages (rename, reorder, edit, add or remove stages) and optionally the tone, like the builder's script editor. Send the FULL list of stages you want; the full text is rebuilt from them. Get the current stages from get_agent (script_sections). Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "sections"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "sections": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "title",
                    "content"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "icon": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "minItems": 1,
                "description": "All stages in order"
              },
              "email_script": {
                "type": "string",
                "description": "Written-channel script (email/LinkedIn); omit to keep"
              },
              "script_style": {
                "enum": [
                  "PROFESSIONAL_FORMAL",
                  "FRIENDLY_CASUAL",
                  "TECHNICAL_EXPERT",
                  "CONSULTATIVE"
                ],
                "type": "string",
                "description": "Tone; omit to keep the current one"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "add_agent_document",
          "title": "Attach a knowledge file to the agent",
          "description": "Upload a material the agent learns from (PDF, DOC, DOCX, TXT, XLS, XLSX, CSV, PPT, PPTX, KEY; ≤10 MB) from a public URL or base64. Used the next time the script is generated (generate_agent_script). Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "filename"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "file_url": {
                "type": "string",
                "description": "Public https URL of the file"
              },
              "filename": {
                "type": "string",
                "description": "File name with extension, e.g. \"price-list.pdf\""
              },
              "file_base64": {
                "type": "string",
                "description": "Base64 content (use instead of file_url)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "remove_agent_document",
          "title": "Remove a knowledge file from the agent",
          "description": "Remove an uploaded material from the agent (see get_agent → documents[].url). Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "url": {
                "type": "string",
                "description": "documents[].url (preferred)"
              },
              "filename": {
                "type": "string",
                "description": "documents[].filename if you have no url"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_knowledge_from_url",
          "title": "Turn a web page into a knowledge block",
          "description": "Read a public web page and return a knowledge text block about it. Costs 1 credit. NOT saved — append the result to company_description with set_agent_company if you want the agent to know it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "url"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "url": {
                "type": "string",
                "description": "Public http(s) page URL"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "scan_agent_website",
          "title": "Scan the agent's website structure",
          "description": "List the pages of a website (path, title, description, keywords) for this agent — used by the page-navigation feature. Costs 2 credits. Read-only for the agent (nothing saved).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "website_url"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "website_url": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_agent_page_descriptions",
          "title": "Describe website pages with AI",
          "description": "Write AI descriptions + keywords for website pages (output of scan_agent_website). Costs 1 credit per 5 pages. Not saved.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "pages"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "pages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "path",
                    "title"
                  ],
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "minItems": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_support_script",
          "title": "Generate a support knowledge script (legacy)",
          "description": "Legacy support-script generator of the old text-widget creators. Prefer generate_agent_script with purpose \"support\". Needs company name + description. Costs 1 credit.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_transition_phrases",
          "title": "Generate slide transition phrases",
          "description": "Generate the phrases the Slide Presenter uses to move between slides, in the presentation's language, and save them on the agent. Needs saved slides (set_presentation_slides).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_agent_integrations",
          "title": "Set legacy integration flags",
          "description": "Legacy flags on the agent (zoom_enabled, google_meet_enabled, website_embed_enabled). Channels are managed with the connection tools; this does not connect anything. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "zoom_enabled": {
                "type": "boolean"
              },
              "google_meet_enabled": {
                "type": "boolean"
              },
              "website_embed_enabled": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_deep_scan",
          "title": "Preview a deep website scan",
          "description": "Show what deep_scan_agent would do: cost (15 credits), duration (60-180 s) and what gets saved. Nothing runs. ALWAYS call first and get the user's approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "persist": {
                "type": "boolean"
              },
              "company_name": {
                "type": "string"
              },
              "company_website": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "deep_scan_agent",
          "title": "Deep-scan the company website (15 credits)",
          "description": "Read the company website + LinkedIn and extract description, team, employee count, contacts, social links and pricing. Costs 15 credits, takes 60-180 s. With persist=true (default) the result is SAVED like in the app: company_description replaced, team/contacts/social/pricing stored (creates company + people records, fills blank contact channels). Waits up to ~200 s; if still running it returns a job_id — then call get_agent_job. Only call after preview_deep_scan and the user's approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "persist": {
                "type": "boolean",
                "description": "Save the result onto the agent (default true)"
              },
              "auto_update": {
                "type": "object",
                "required": [
                  "enabled",
                  "interval"
                ],
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "interval": {
                    "enum": [
                      "daily",
                      "weekly",
                      "biweekly",
                      "monthly",
                      "quarterly"
                    ],
                    "type": "string"
                  }
                },
                "description": "Re-scan automatically",
                "additionalProperties": false
              },
              "company_name": {
                "type": "string",
                "description": "Defaults to the agent's company_name"
              },
              "company_website": {
                "type": "string",
                "description": "Defaults to the agent's company_website"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_agent_job",
          "title": "Get a long job (deep scan / script) result",
          "description": "Status and result of a deep scan or script generation job started by deep_scan_agent / generate_agent_script (kept 1 hour). Poll every 10-20 s while status is \"running\". Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "job_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "job_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_agent_jobs",
          "title": "List recent long jobs of an agent",
          "description": "Deep scans and script generations of this agent in the last hour (status only) — use when a job_id was lost. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "save_scan_data",
          "title": "Save scan facts onto the agent",
          "description": "Save company facts (team, contacts, social links, pricing, employee count, auto re-scan) onto the agent — what the app does after a scan. Side effects: stores them in the agent, creates/updates the company and people records, fills BLANK contact channels (never overwrites manual ones). Not needed after deep_scan_agent with persist=true. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "company_name",
              "company_website"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "pricing": {
                "type": "string"
              },
              "contacts": {
                "type": "object",
                "properties": {
                  "emails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "phones": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "addresses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "directors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "position"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "phone": {
                      "type": "string"
                    },
                    "linkedin": {
                      "type": "string"
                    },
                    "position": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "description": "Team / management"
              },
              "auto_update": {
                "type": "object",
                "required": [
                  "enabled",
                  "interval"
                ],
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "interval": {
                    "enum": [
                      "daily",
                      "weekly",
                      "biweekly",
                      "monthly",
                      "quarterly"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "company_name": {
                "type": "string"
              },
              "social_links": {
                "type": "object",
                "properties": {
                  "booking": {
                    "type": "string"
                  },
                  "twitter": {
                    "type": "string"
                  },
                  "calendly": {
                    "type": "string"
                  },
                  "facebook": {
                    "type": "string"
                  },
                  "linkedin": {
                    "type": "string"
                  },
                  "telegram": {
                    "type": "string"
                  },
                  "whatsapp": {
                    "type": "string"
                  },
                  "instagram": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "employee_count": {
                "type": [
                  "number",
                  "string"
                ]
              },
              "company_website": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_agent_description",
          "title": "Draft the company description from the website",
          "description": "AI-write \"what the agent knows\" about the company from its website (no full scan). Costs 1 credit. NOT saved — pass the text to set_agent_company (company_description).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "company_name": {
                "type": "string",
                "description": "Defaults to the agent's company_name"
              },
              "company_website": {
                "type": "string",
                "description": "Defaults to the agent's company_website"
              },
              "target_language": {
                "type": "string",
                "description": "Write in this language, e.g. \"Ukrainian\""
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_agent_script",
          "title": "Generate the agent's script",
          "description": "Generate the agent's script (stages + full text + email/LinkedIn script) in the chosen tone for its direction (sales / support / info), using the company description and uploaded files. Saves it on the agent (overwrites). Costs 1 credit, takes 60-90 s. Needs company_name and company_description (set_agent_company). If it is still running after ~200 s you get a job_id → get_agent_job.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "script_style"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "purpose": {
                "enum": [
                  "sales",
                  "support",
                  "info"
                ],
                "type": "string",
                "description": "Defaults to the agent's direction"
              },
              "script_style": {
                "enum": [
                  "PROFESSIONAL_FORMAL",
                  "FRIENDLY_CASUAL",
                  "TECHNICAL_EXPERT",
                  "CONSULTATIVE"
                ],
                "type": "string",
                "description": "Tone"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_agents_dashboard",
          "title": "Legacy agents dashboard numbers",
          "description": "Older overview numbers of all agents (superseded by get_analytics_agents). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "get_agent_connection",
          "title": "Get one channel of an agent",
          "description": "Full settings of one channel (website widget, button, presentation, Google Meet, phone, Telegram). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "create_agent_connection",
          "title": "Add a channel to an agent",
          "description": "Add a channel. WEBSITE_WIDGET needs website_url; new widgets get the app defaults (Modern design) plus your widget_config — then get_widget_embed_code. WEBSITE_BUTTON: just creates the channel (style it in get_widget_embed_code). PRESENTATION_WIDGET = publish the Slide Presenter (optional website_url). GOOGLE_MEET: prefer connect_google_meet. PHONE_CALL: prefer setup_phone_agent. Telegram → connect_telegram_bot; WhatsApp → connect_whatsapp_account. A second widget for the same URL updates the existing one. Free. Interactive cards in chat need design \"modern\"; in voice they need set_agent_voice screen_cards=true.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "type"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "enum": [
                  "WEBSITE_WIDGET",
                  "WEBSITE_BUTTON",
                  "PRESENTATION_WIDGET",
                  "GOOGLE_MEET",
                  "PHONE_CALL"
                ],
                "type": "string"
              },
              "website_url": {
                "type": "string",
                "description": "Site where the widget/presentation is installed"
              },
              "widget_config": {
                "type": "object",
                "properties": {
                  "texts": {
                    "type": "object",
                    "description": "Wording overrides; keys: welcomeMessage, welcomeFollowUp (greeting bubbles) and the contact form: contactTitle, contactSubtitle, nameLabel, namePlaceholder, nameRequired, emailLabel, emailPlaceholder, emailRequired, emailInvalid, phoneLabelRequired, phoneLabel, phonePlaceholder, phoneRequired, phoneInvalid, contactSubmit. \"\" or null = back to the default (auto-translated). Merged with saved texts.",
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "theme": {
                    "type": "object",
                    "properties": {
                      "blur": {
                        "type": "number",
                        "maximum": 60,
                        "minimum": 0
                      },
                      "glass": {
                        "type": "boolean"
                      },
                      "gradient": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
                        },
                        "maxItems": 3,
                        "minItems": 2
                      },
                      "headerStyle": {
                        "enum": [
                          "gradient",
                          "solid"
                        ],
                        "type": "string"
                      },
                      "voiceVisual": {
                        "enum": [
                          "portrait",
                          "liquid",
                          "waves"
                        ],
                        "type": "string",
                        "description": "Look of the voice view: portrait, liquid or waves"
                      },
                      "glassOpacity": {
                        "type": "number",
                        "maximum": 1,
                        "minimum": 0
                      },
                      "gradientAngle": {
                        "type": "number",
                        "maximum": 360,
                        "minimum": 0
                      },
                      "openAnimation": {
                        "enum": [
                          "genie",
                          "spring",
                          "scale",
                          "slide",
                          "fade"
                        ],
                        "type": "string"
                      },
                      "accentGradient": {
                        "type": "boolean"
                      }
                    },
                    "description": "Modern design look (merged with the saved theme)",
                    "additionalProperties": false
                  },
                  "design": {
                    "enum": [
                      "classic",
                      "modern"
                    ],
                    "type": "string",
                    "description": "modern = new skin with interactive cards in chat; classic = old look"
                  },
                  "teaser": {
                    "type": "boolean",
                    "description": "Invitation: show autoOpenMessage as a bubble next to the closed button"
                  },
                  "autoOpen": {
                    "type": "boolean",
                    "description": "Open the widget automatically after autoOpenDelay seconds"
                  },
                  "position": {
                    "enum": [
                      "bottom-right",
                      "bottom-left",
                      "top-right",
                      "top-left"
                    ],
                    "type": "string"
                  },
                  "textColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "replySound": {
                    "type": "boolean"
                  },
                  "buttonColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "collectName": {
                    "type": "boolean"
                  },
                  "headerColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "logoVariant": {
                    "enum": [
                      "white",
                      "blue",
                      "black"
                    ],
                    "type": "string"
                  },
                  "teaserDelay": {
                    "type": "number",
                    "maximum": 30,
                    "minimum": 3
                  },
                  "unreadBadge": {
                    "type": "boolean"
                  },
                  "borderRadius": {
                    "type": "number",
                    "maximum": 40,
                    "minimum": 0
                  },
                  "collectEmail": {
                    "type": "boolean"
                  },
                  "collectPhone": {
                    "type": "boolean"
                  },
                  "primaryColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "autoOpenDelay": {
                    "type": "number",
                    "maximum": 600,
                    "minimum": 0
                  },
                  "autoOpenSound": {
                    "type": "boolean"
                  },
                  "launcherImage": {
                    "type": "string",
                    "const": "",
                    "description": "\"\" = remove the custom button picture (Vendo logo again)"
                  },
                  "launcherShape": {
                    "enum": [
                      "round",
                      "square"
                    ],
                    "type": "string"
                  },
                  "navigationMode": {
                    "enum": [
                      "auto",
                      "ask"
                    ],
                    "type": "string"
                  },
                  "autoOpenMessage": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "backgroundColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "buttonTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "headerTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "userBubbleColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "agentBubbleColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "navigationEnabled": {
                    "type": "boolean",
                    "description": "Let the agent open pages of the site"
                  },
                  "launcher_image_url": {
                    "type": "string",
                    "description": "Public URL of a small square picture for the widget button (PNG/JPG/WebP/GIF/SVG, ≤ ~110 KB)"
                  },
                  "userBubbleTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "agentBubbleTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "continueAfterNavigate": {
                    "type": "boolean"
                  }
                },
                "description": "Website widget settings (only what you pass changes; texts/theme are merged)",
                "additionalProperties": false
              },
              "phone_call_config": {
                "type": "object",
                "properties": {
                  "call_script": {
                    "type": "string"
                  },
                  "call_objective": {
                    "enum": [
                      "sell",
                      "inform",
                      "book_meeting",
                      "collect_info",
                      "qualify_lead"
                    ],
                    "type": "string"
                  },
                  "greeting_message": {
                    "type": "string"
                  },
                  "post_call_actions": {
                    "type": "object",
                    "properties": {
                      "log_outcome": {
                        "type": "boolean"
                      },
                      "send_followup_email": {
                        "type": "boolean"
                      },
                      "collect_contact_info": {
                        "type": "boolean"
                      },
                      "book_meeting_if_interested": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "max_call_duration_seconds": {
                    "type": "number",
                    "maximum": 1800,
                    "minimum": 30
                  }
                },
                "description": "Voice Call texts only; number, voice and inbound are set with setup_phone_agent",
                "additionalProperties": false
              },
              "google_meet_config": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "description": "Meeting language code, e.g. \"en\""
                  },
                  "auto_join": {
                    "type": "boolean"
                  },
                  "meeting_mode": {
                    "enum": [
                      "voice_only",
                      "presentation"
                    ],
                    "type": "string",
                    "description": "presentation = shares the agent's slides (needs slides)"
                  },
                  "greeting_message": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "join_before_minutes": {
                    "type": "number",
                    "maximum": 30,
                    "minimum": 0,
                    "description": "Join N minutes before start (default 1)"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_agent_connection",
          "title": "Change a channel's settings",
          "description": "Change a channel: website widget look and behaviour (design, colours, button picture, invitation/auto-open, sounds, contact form and its wording, greetings, page navigation, voice view), name, website_url, Google Meet settings or phone texts. Only what you pass changes; widget texts and theme are merged. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "name": {
                "type": "string"
              },
              "website_url": {
                "type": "string"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              },
              "widget_config": {
                "type": "object",
                "properties": {
                  "texts": {
                    "type": "object",
                    "description": "Wording overrides; keys: welcomeMessage, welcomeFollowUp (greeting bubbles) and the contact form: contactTitle, contactSubtitle, nameLabel, namePlaceholder, nameRequired, emailLabel, emailPlaceholder, emailRequired, emailInvalid, phoneLabelRequired, phoneLabel, phonePlaceholder, phoneRequired, phoneInvalid, contactSubmit. \"\" or null = back to the default (auto-translated). Merged with saved texts.",
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "theme": {
                    "type": "object",
                    "properties": {
                      "blur": {
                        "type": "number",
                        "maximum": 60,
                        "minimum": 0
                      },
                      "glass": {
                        "type": "boolean"
                      },
                      "gradient": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
                        },
                        "maxItems": 3,
                        "minItems": 2
                      },
                      "headerStyle": {
                        "enum": [
                          "gradient",
                          "solid"
                        ],
                        "type": "string"
                      },
                      "voiceVisual": {
                        "enum": [
                          "portrait",
                          "liquid",
                          "waves"
                        ],
                        "type": "string",
                        "description": "Look of the voice view: portrait, liquid or waves"
                      },
                      "glassOpacity": {
                        "type": "number",
                        "maximum": 1,
                        "minimum": 0
                      },
                      "gradientAngle": {
                        "type": "number",
                        "maximum": 360,
                        "minimum": 0
                      },
                      "openAnimation": {
                        "enum": [
                          "genie",
                          "spring",
                          "scale",
                          "slide",
                          "fade"
                        ],
                        "type": "string"
                      },
                      "accentGradient": {
                        "type": "boolean"
                      }
                    },
                    "description": "Modern design look (merged with the saved theme)",
                    "additionalProperties": false
                  },
                  "design": {
                    "enum": [
                      "classic",
                      "modern"
                    ],
                    "type": "string",
                    "description": "modern = new skin with interactive cards in chat; classic = old look"
                  },
                  "teaser": {
                    "type": "boolean",
                    "description": "Invitation: show autoOpenMessage as a bubble next to the closed button"
                  },
                  "autoOpen": {
                    "type": "boolean",
                    "description": "Open the widget automatically after autoOpenDelay seconds"
                  },
                  "position": {
                    "enum": [
                      "bottom-right",
                      "bottom-left",
                      "top-right",
                      "top-left"
                    ],
                    "type": "string"
                  },
                  "textColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "replySound": {
                    "type": "boolean"
                  },
                  "buttonColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "collectName": {
                    "type": "boolean"
                  },
                  "headerColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "logoVariant": {
                    "enum": [
                      "white",
                      "blue",
                      "black"
                    ],
                    "type": "string"
                  },
                  "teaserDelay": {
                    "type": "number",
                    "maximum": 30,
                    "minimum": 3
                  },
                  "unreadBadge": {
                    "type": "boolean"
                  },
                  "borderRadius": {
                    "type": "number",
                    "maximum": 40,
                    "minimum": 0
                  },
                  "collectEmail": {
                    "type": "boolean"
                  },
                  "collectPhone": {
                    "type": "boolean"
                  },
                  "primaryColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "autoOpenDelay": {
                    "type": "number",
                    "maximum": 600,
                    "minimum": 0
                  },
                  "autoOpenSound": {
                    "type": "boolean"
                  },
                  "launcherImage": {
                    "type": "string",
                    "const": "",
                    "description": "\"\" = remove the custom button picture (Vendo logo again)"
                  },
                  "launcherShape": {
                    "enum": [
                      "round",
                      "square"
                    ],
                    "type": "string"
                  },
                  "navigationMode": {
                    "enum": [
                      "auto",
                      "ask"
                    ],
                    "type": "string"
                  },
                  "autoOpenMessage": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "backgroundColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "buttonTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "headerTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "userBubbleColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "agentBubbleColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "navigationEnabled": {
                    "type": "boolean",
                    "description": "Let the agent open pages of the site"
                  },
                  "launcher_image_url": {
                    "type": "string",
                    "description": "Public URL of a small square picture for the widget button (PNG/JPG/WebP/GIF/SVG, ≤ ~110 KB)"
                  },
                  "userBubbleTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "agentBubbleTextColor": {
                    "$ref": "#/properties/widget_config/properties/theme/properties/gradient/items"
                  },
                  "continueAfterNavigate": {
                    "type": "boolean"
                  }
                },
                "description": "Website widget settings (only what you pass changes; texts/theme are merged)",
                "additionalProperties": false
              },
              "phone_call_config": {
                "type": "object",
                "properties": {
                  "call_script": {
                    "type": "string"
                  },
                  "call_objective": {
                    "enum": [
                      "sell",
                      "inform",
                      "book_meeting",
                      "collect_info",
                      "qualify_lead"
                    ],
                    "type": "string"
                  },
                  "greeting_message": {
                    "type": "string"
                  },
                  "post_call_actions": {
                    "type": "object",
                    "properties": {
                      "log_outcome": {
                        "type": "boolean"
                      },
                      "send_followup_email": {
                        "type": "boolean"
                      },
                      "collect_contact_info": {
                        "type": "boolean"
                      },
                      "book_meeting_if_interested": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "max_call_duration_seconds": {
                    "type": "number",
                    "maximum": 1800,
                    "minimum": 30
                  }
                },
                "description": "Voice Call texts only; number, voice and inbound are set with setup_phone_agent",
                "additionalProperties": false
              },
              "google_meet_config": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "description": "Meeting language code, e.g. \"en\""
                  },
                  "auto_join": {
                    "type": "boolean"
                  },
                  "meeting_mode": {
                    "enum": [
                      "voice_only",
                      "presentation"
                    ],
                    "type": "string",
                    "description": "presentation = shares the agent's slides (needs slides)"
                  },
                  "greeting_message": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "join_before_minutes": {
                    "type": "number",
                    "maximum": 30,
                    "minimum": 0,
                    "description": "Join N minutes before start (default 1)"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_delete_agent_connection",
          "title": "Preview removing a channel",
          "description": "Show what removing a channel would do. Nothing is removed. ALWAYS call first and show the user before delete_agent_connection.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "delete_agent_connection",
          "title": "Remove a channel (irreversible)",
          "description": "Remove a channel from the agent (the embed code stops working). No undo. Only after preview_delete_agent_connection and explicit user approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_agent_connection_stats",
          "title": "Channel counters",
          "description": "Conversations, messages, unique visitors, last activity of one channel. For widgets prefer get_connection_analytics (fresher). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_connection_analytics",
          "title": "Widget/button channel analytics",
          "description": "For a website widget/button/presentation channel: widget loaded, activated, chats started, voice calls started, plus estimated credits (text messages, voice minutes) for a date range. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "date_to": {
                "type": "string",
                "description": "To (YYYY-MM-DD or ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "From (YYYY-MM-DD or ISO 8601)"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_widget_embed_code",
          "title": "Get the embed code of a channel",
          "description": "HTML to paste on a site for a channel: website widget (settings load from the server), website button (style it here: text, colours, radius, size — not stored server-side) or Slide Presenter (also the direct link). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "size": {
                "enum": [
                  "small",
                  "medium",
                  "large"
                ],
                "type": "string",
                "description": "Button only"
              },
              "text": {
                "type": "string",
                "description": "Button only: label (default \"Talk to Assistant\")"
              },
              "text_color": {
                "$ref": "#/properties/background_color",
                "description": "Button only"
              },
              "border_radius": {
                "type": "number",
                "maximum": 50,
                "minimum": 0,
                "description": "Button only (px)"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              },
              "background_color": {
                "type": "string",
                "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
                "description": "Button only"
              },
              "modal_primary_color": {
                "$ref": "#/properties/background_color",
                "description": "Button only: colour of the chat window it opens"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "create_widget_test_page",
          "title": "Create a test page for a widget",
          "description": "Create (or return the existing) private, unlisted test page with this website widget installed, to try it before adding it to a real site. Only the agent's creator can do this. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_connection_conversations",
          "title": "List conversations of a channel",
          "description": "Conversations of a widget/presentation channel with messages, mode (chat/voice), visitor name/email/phone and page. Paged (limit ≤500). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_conversation_recordings",
          "title": "Get voice recordings of a conversation",
          "description": "Recording URLs (WAV), duration and start time of the voice calls in one widget conversation (up to 10 calls). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id",
              "conversation_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              },
              "conversation_id": {
                "type": "string",
                "description": "From list_connection_conversations"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_presentation",
          "title": "Get the agent's Slide Presenter",
          "description": "The agent's presentation: PDF name, slides (text + presenter script; images with include_images), look, call-to-action, presenter voice, published channels and direct link. Read-only. (list_agent_presentations shows only the legacy creator.)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "include_images": {
                "type": "boolean",
                "description": "Add slide image URLs"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_presentation_slides",
          "title": "Save the presentation slides",
          "description": "Save the slide deck — REPLACES all slides (add, remove, reorder, edit). Each slide: image (public URL or base64; JPG/PNG/WebP/GIF ≤5 MB; omit to keep the stored image of an existing slide id), extracted text and presenter script. PDF upload is not supported by the API: render the PDF pages to images first. Then write scripts with generate_slide_script and set_presentation_voice. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "slides"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "slides": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Keep an existing slide id to keep its stored image"
                    },
                    "image_url": {
                      "type": "string"
                    },
                    "page_number": {
                      "type": "number"
                    },
                    "image_base64": {
                      "type": "string"
                    },
                    "extracted_text": {
                      "type": "string"
                    },
                    "narrator_script": {
                      "type": "string",
                      "description": "What the presenter says on this slide"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "minItems": 1
              },
              "pdf_name": {
                "type": "string",
                "description": "Name of the presentation, e.g. \"Pitch deck.pdf\""
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "generate_slide_script",
          "title": "Write the presenter script for a slide",
          "description": "AI-write what the presenter says on one slide, in the presentation's language. 1 credit (2 with image_url — the AI looks at the slide). NOT saved — put it into narrator_script with set_presentation_slides.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "slide_number",
              "total_slides"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "image_url": {
                "type": "string",
                "description": "Public URL of the slide image (optional, 2 credits)"
              },
              "slide_number": {
                "type": "integer",
                "minimum": 1
              },
              "total_slides": {
                "type": "integer",
                "minimum": 1
              },
              "extracted_text": {
                "type": "string",
                "description": "Text on the slide"
              },
              "next_slide_text": {
                "type": "string"
              },
              "previous_script": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_presentation_voice",
          "title": "Set the presenter's voice",
          "description": "The Slide Presenter's own voice and model (the website widget voice is not touched). Same settings as the app; only what you pass changes. Needs saved slides. Takes up to ~1 min. Free to configure; presentation voice costs 17 credits/min.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "llm": {
                "enum": [
                  "fast",
                  "balanced",
                  "smart"
                ],
                "type": "string",
                "description": "Model: fast, balanced (default) or smart"
              },
              "rules": {
                "type": "string",
                "maxLength": 8000,
                "description": "Communication rules (plain text instructions for how the agent talks). Omit to keep the saved ones"
              },
              "speed": {
                "type": "number",
                "maximum": 1.3,
                "minimum": 0.7,
                "description": "Speaking pace, 0.7-1.3 (1 = normal)"
              },
              "volume": {
                "type": "number",
                "maximum": 2,
                "minimum": 0
              },
              "ambient": {
                "enum": [
                  "",
                  "coffee-shop",
                  "call-center",
                  "convention-hall"
                ],
                "type": "string",
                "description": "Background sound; \"\" = none"
              },
              "emotion": {
                "enum": [
                  "neutral",
                  "expressive",
                  "calm",
                  "dynamic"
                ],
                "type": "string",
                "description": "Delivery: neutral, expressive (warm), calm, dynamic (energetic)"
              },
              "handbook": {
                "type": "object",
                "properties": {
                  "high_empathy": {
                    "type": "boolean"
                  },
                  "ai_disclosure": {
                    "type": "boolean"
                  },
                  "scope_boundaries": {
                    "type": "boolean"
                  },
                  "echo_verification": {
                    "type": "boolean"
                  },
                  "natural_filler_words": {
                    "type": "boolean"
                  },
                  "speech_normalization": {
                    "type": "boolean"
                  },
                  "conversational_personality": {
                    "type": "boolean"
                  }
                },
                "description": "Behaviour switches (only the ones you pass change)",
                "additionalProperties": false
              },
              "voice_id": {
                "type": "string",
                "description": "Voice id from list_voice_catalog (e.g. \"retell-Grace\", \"11labs-Adrian\")"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20,
                "description": "Retell locales like [\"en-US\",\"uk-UA\"]; more than one = multilingual (answers in the caller's language). [] or one locale = script language only"
              },
              "end_call_s": {
                "type": "number",
                "maximum": 120,
                "minimum": 10,
                "description": "Hang up after this many seconds of silence"
              },
              "backchannel": {
                "type": "boolean",
                "description": "Short \"mm-hm\" acknowledgements while the person talks"
              },
              "screen_cards": {
                "type": "boolean",
                "description": "Show interactive cards (buttons/forms) on screen during voice calls"
              },
              "denoising_mode": {
                "enum": [
                  "noise-cancellation",
                  "noise-and-background-speech-cancellation"
                ],
                "type": "string"
              },
              "responsiveness": {
                "type": "number",
                "maximum": 1,
                "minimum": 0,
                "description": "How fast the agent answers (1 = fastest)"
              },
              "expressive_mode": {
                "type": "boolean",
                "description": "Only works for voices marked expressive in list_voice_catalog"
              },
              "reminder_seconds": {
                "type": "number",
                "maximum": 120,
                "minimum": 0,
                "description": "Nudge a silent person after N seconds; 0 = off"
              },
              "dynamic_voice_speed": {
                "type": "boolean"
              },
              "ambient_sound_volume": {
                "type": "number",
                "maximum": 2,
                "minimum": 0
              },
              "backchannel_frequency": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              },
              "dynamic_responsiveness": {
                "type": "boolean"
              },
              "interruption_sensitivity": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_presentation_look",
          "title": "Set the presentation look & behaviour",
          "description": "Theme, colours, corner radius, controls, autoplay, voice on/off, chat on/off, Modern look (background, glass, font, panel side, presenter bubble, voice visual), slide transition and button texts. Only what you pass changes. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "texts": {
                "type": "object",
                "properties": {
                  "chat": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "voice": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "chooseMode": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "placeholder": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "clickToStart": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "\"\" or null = default text",
                "additionalProperties": false
              },
              "theme": {
                "enum": [
                  "dark",
                  "light",
                  "custom"
                ],
                "type": "string"
              },
              "design": {
                "enum": [
                  "classic",
                  "modern"
                ],
                "type": "string"
              },
              "modern": {
                "type": "object",
                "properties": {
                  "bgTo": {
                    "$ref": "#/properties/backgroundColor"
                  },
                  "blur": {
                    "type": "number",
                    "maximum": 60,
                    "minimum": 0
                  },
                  "font": {
                    "enum": [
                      "system",
                      "rounded",
                      "serif",
                      "mono"
                    ],
                    "type": "string"
                  },
                  "glow": {
                    "type": "boolean"
                  },
                  "angle": {
                    "type": "number",
                    "maximum": 360,
                    "minimum": 0
                  },
                  "glass": {
                    "type": "boolean"
                  },
                  "bgFrom": {
                    "$ref": "#/properties/backgroundColor"
                  },
                  "accent2": {
                    "$ref": "#/properties/backgroundColor"
                  },
                  "panelSide": {
                    "enum": [
                      "right",
                      "left"
                    ],
                    "type": "string"
                  },
                  "background": {
                    "enum": [
                      "solid",
                      "gradient"
                    ],
                    "type": "string"
                  },
                  "voiceVisual": {
                    "enum": [
                      "portrait",
                      "liquid",
                      "waves"
                    ],
                    "type": "string"
                  },
                  "glassOpacity": {
                    "type": "number",
                    "maximum": 1,
                    "minimum": 0
                  },
                  "gradientButtons": {
                    "type": "boolean"
                  },
                  "presenterBubble": {
                    "enum": [
                      "off",
                      "left",
                      "right"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "autoplay": {
                "type": "boolean"
              },
              "textColor": {
                "$ref": "#/properties/backgroundColor"
              },
              "transition": {
                "enum": [
                  "zoom",
                  "fade",
                  "slide"
                ],
                "type": "string"
              },
              "buttonColor": {
                "$ref": "#/properties/backgroundColor"
              },
              "chatEnabled": {
                "type": "boolean",
                "description": "Viewers can chat"
              },
              "borderRadius": {
                "type": "number",
                "maximum": 40,
                "minimum": 0
              },
              "showControls": {
                "type": "boolean"
              },
              "voiceEnabled": {
                "type": "boolean",
                "description": "Viewers can listen/talk by voice"
              },
              "progressColor": {
                "$ref": "#/properties/backgroundColor"
              },
              "backgroundColor": {
                "type": "string",
                "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
              },
              "buttonTextColor": {
                "$ref": "#/properties/backgroundColor"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_presentation_cta",
          "title": "Set the presentation call-to-action",
          "description": "The button viewers see: a lead form (fields) or a link. Only what you pass changes (fields replaces the whole field list). Leads land in list_narrator_leads. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "type": {
                "enum": [
                  "form",
                  "link"
                ],
                "type": "string"
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "label"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "enum": [
                        "text",
                        "email",
                        "phone",
                        "textarea",
                        "select"
                      ],
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "options": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "placeholder": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 12
              },
              "enabled": {
                "type": "boolean"
              },
              "linkUrl": {
                "type": "string"
              },
              "buttonText": {
                "type": "string"
              },
              "successMessage": {
                "type": "string"
              },
              "linkOpenInNewTab": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_presentation_embed_code",
          "title": "Get the presentation embed code & link",
          "description": "Direct link (narrator page) and the HTML snippet with the saved look. Publish it as a channel first (create_agent_connection type PRESENTATION_WIDGET). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_agent_presentations",
          "title": "Get the agent's presentation (alias)",
          "description": "Alias of get_presentation kept for older clients: returns the agent's current Slide Presenter deck (PDF name, slides with text and presenter script, look, call-to-action, voice, published channels, direct link) — slides_count 0 when no deck is uploaded. Prefer get_presentation. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "include_images": {
                "type": "boolean",
                "description": "Add slide image URLs"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_narrator_analytics",
          "title": "Presentation analytics",
          "description": "Slide Presenter analytics. view \"summary\" (default): views, presentations started, watch time, unique viewers, average duration, completion rate, recent sessions, per channel. view \"period\" with date_from/date_to: widget loads, starts, watch minutes, unique viewers, credits used. Read-only. (No per-slide drop-off.)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "view": {
                "enum": [
                  "summary",
                  "period"
                ],
                "type": "string"
              },
              "date_to": {
                "type": "string",
                "description": "To (YYYY-MM-DD or ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "From (YYYY-MM-DD or ISO 8601)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_narrator_leads",
          "title": "List presentation leads",
          "description": "Leads from the presentation call-to-action form (form data, page, status, notes). Filter by status, page with limit/offset. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "status": {
                "enum": [
                  "new",
                  "contacted",
                  "converted",
                  "spam"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_narrator_lead",
          "title": "Update a presentation lead",
          "description": "Set a presentation lead's status (new / contacted / converted / spam) and notes. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "lead_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "notes": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "new",
                  "contacted",
                  "converted",
                  "spam"
                ],
                "type": "string"
              },
              "lead_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_delete_narrator_lead",
          "title": "Preview deleting a presentation lead",
          "description": "Show the lead that would be deleted. Nothing is deleted. Call first and show the user before delete_narrator_lead.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "lead_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "lead_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "delete_narrator_lead",
          "title": "Delete a presentation lead (irreversible)",
          "description": "Permanently delete a presentation lead. Only after preview_delete_narrator_lead and explicit user approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "lead_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "lead_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "connect_google_meet",
          "title": "Connect Google Meet (invite address)",
          "description": "Turn on the Google Meet channel the way the app does: returns the agent's own invite address (agent-xxxxxxxx@meet.vendo-ai.com). Invite that address to any Google Calendar event with a Meet link and the agent joins automatically. No Google login needed. Also saves the meeting settings. Free to connect; meeting minutes are billed.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "language": {
                "type": "string",
                "description": "Meeting language code, e.g. \"en\""
              },
              "auto_join": {
                "type": "boolean"
              },
              "meeting_mode": {
                "enum": [
                  "voice_only",
                  "presentation"
                ],
                "type": "string",
                "description": "presentation = shares the agent's slides (needs slides)"
              },
              "greeting_message": {
                "type": "string",
                "maxLength": 1000
              },
              "join_before_minutes": {
                "type": "number",
                "maximum": 30,
                "minimum": 0,
                "description": "Join N minutes before start (default 1)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_google_meet_settings",
          "title": "Get Google Meet status & settings",
          "description": "Whether Google Meet is connected for this agent, its invite address, settings and totals. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_google_meet_settings",
          "title": "Change Google Meet settings",
          "description": "Auto-join, minutes before start, greeting, language, meeting mode (voice only / presentation — needs slides). Only what you pass changes. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "language": {
                "type": "string",
                "description": "Meeting language code, e.g. \"en\""
              },
              "auto_join": {
                "type": "boolean"
              },
              "meeting_mode": {
                "enum": [
                  "voice_only",
                  "presentation"
                ],
                "type": "string",
                "description": "presentation = shares the agent's slides (needs slides)"
              },
              "greeting_message": {
                "type": "string",
                "maxLength": 1000
              },
              "join_before_minutes": {
                "type": "number",
                "maximum": 30,
                "minimum": 0,
                "description": "Join N minutes before start (default 1)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_disconnect_google_meet",
          "title": "Preview disconnecting Google Meet",
          "description": "Show what disconnecting Google Meet would do. Nothing changes. Call first and show the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "disconnect_google_meet",
          "title": "Disconnect Google Meet",
          "description": "Remove the Google Meet channel from the agent and turn auto-join off. Already scheduled meetings are not cancelled (use cancel_meeting). Only after preview_disconnect_google_meet and user approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_google_meet_history",
          "title": "Meeting history of an agent",
          "description": "All meetings of this agent (newest first) with status, times, duration, whether a transcript exists. Paged. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_google_meet_analytics",
          "title": "Google Meet analytics of an agent",
          "description": "Meetings, minutes, completed, missed and credits used for a date range. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "date_to": {
                "type": "string",
                "description": "To (YYYY-MM-DD or ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "From (YYYY-MM-DD or ISO 8601)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_meetings",
          "title": "Meetings calendar (all agents)",
          "description": "Google Meet meetings of all your agents in a date range (default: next 7 days, max 62 days) — title, time, link, organizer, attendees, status, agent, has transcript. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "end": {
                "type": "string",
                "description": "ISO date/time"
              },
              "start": {
                "type": "string",
                "description": "ISO date/time"
              },
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_meeting_agents",
          "title": "Agents with Google Meet",
          "description": "Agents that have Google Meet connected (the calendar's agent filter). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "get_meeting",
          "title": "Get a meeting",
          "description": "One meeting with transcript, summary, action items, join/leave time and duration. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "meeting_id"
            ],
            "properties": {
              "meeting_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_meeting_transcript",
          "title": "Get a meeting transcript",
          "description": "Transcript messages, summary and action items of a meeting (from the database or the recording service). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "meeting_id"
            ],
            "properties": {
              "meeting_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_cancel_meeting",
          "title": "Preview cancelling a meeting for the agent",
          "description": "Show which meeting the agent would skip. Nothing changes. Call first and show the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "meeting_id"
            ],
            "properties": {
              "meeting_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "cancel_meeting",
          "title": "Cancel a meeting for the agent",
          "description": "The agent will NOT join this scheduled meeting (the calendar event itself stays). Only scheduled, not yet started meetings. No undo. Only after preview_cancel_meeting and user approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "meeting_id"
            ],
            "properties": {
              "meeting_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_remove_agent_from_meeting",
          "title": "Preview removing the agent from a live call",
          "description": "Show whether the agent is in this live meeting and what removing it does. Nothing changes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "meeting_id"
            ],
            "properties": {
              "meeting_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "remove_agent_from_meeting",
          "title": "Remove the agent from a live call",
          "description": "The agent leaves the live Google Meet call right now. Only works while the meeting is in progress. Only after preview_remove_agent_from_meeting and user approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "meeting_id"
            ],
            "properties": {
              "meeting_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_telegram_voice_calls",
          "title": "Turn Telegram voice calls on/off",
          "description": "Show or hide the VOICE button of the agent's Telegram bot (voice calls in the mini app). Needs a connected bot. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "enabled"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_telegram_voice_settings",
          "title": "Set the Telegram voice",
          "description": "Voice and behaviour of the Telegram bot's voice calls (separate from the website widget): the same settings as set_agent_voice plus the mini app look (visual). Only what you pass changes. Needs a connected bot. Takes up to ~1 min. Free to configure; calls are billed per minute.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "llm": {
                "enum": [
                  "fast",
                  "balanced",
                  "smart"
                ],
                "type": "string",
                "description": "Model: fast, balanced (default) or smart"
              },
              "rules": {
                "type": "string",
                "maxLength": 8000,
                "description": "Communication rules (plain text instructions for how the agent talks). Omit to keep the saved ones"
              },
              "speed": {
                "type": "number",
                "maximum": 1.3,
                "minimum": 0.7,
                "description": "Speaking pace, 0.7-1.3 (1 = normal)"
              },
              "visual": {
                "enum": [
                  "portrait",
                  "liquid",
                  "waves"
                ],
                "type": "string",
                "description": "Look of the mini app during a call"
              },
              "volume": {
                "type": "number",
                "maximum": 2,
                "minimum": 0
              },
              "ambient": {
                "enum": [
                  "",
                  "coffee-shop",
                  "call-center",
                  "convention-hall"
                ],
                "type": "string",
                "description": "Background sound; \"\" = none"
              },
              "emotion": {
                "enum": [
                  "neutral",
                  "expressive",
                  "calm",
                  "dynamic"
                ],
                "type": "string",
                "description": "Delivery: neutral, expressive (warm), calm, dynamic (energetic)"
              },
              "handbook": {
                "type": "object",
                "properties": {
                  "high_empathy": {
                    "type": "boolean"
                  },
                  "ai_disclosure": {
                    "type": "boolean"
                  },
                  "scope_boundaries": {
                    "type": "boolean"
                  },
                  "echo_verification": {
                    "type": "boolean"
                  },
                  "natural_filler_words": {
                    "type": "boolean"
                  },
                  "speech_normalization": {
                    "type": "boolean"
                  },
                  "conversational_personality": {
                    "type": "boolean"
                  }
                },
                "description": "Behaviour switches (only the ones you pass change)",
                "additionalProperties": false
              },
              "voice_id": {
                "type": "string",
                "description": "Voice id from list_voice_catalog (e.g. \"retell-Grace\", \"11labs-Adrian\")"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20,
                "description": "Retell locales like [\"en-US\",\"uk-UA\"]; more than one = multilingual (answers in the caller's language). [] or one locale = script language only"
              },
              "end_call_s": {
                "type": "number",
                "maximum": 120,
                "minimum": 10,
                "description": "Hang up after this many seconds of silence"
              },
              "backchannel": {
                "type": "boolean",
                "description": "Short \"mm-hm\" acknowledgements while the person talks"
              },
              "screen_cards": {
                "type": "boolean",
                "description": "Show interactive cards (buttons/forms) on screen during voice calls"
              },
              "denoising_mode": {
                "enum": [
                  "noise-cancellation",
                  "noise-and-background-speech-cancellation"
                ],
                "type": "string"
              },
              "responsiveness": {
                "type": "number",
                "maximum": 1,
                "minimum": 0,
                "description": "How fast the agent answers (1 = fastest)"
              },
              "expressive_mode": {
                "type": "boolean",
                "description": "Only works for voices marked expressive in list_voice_catalog"
              },
              "reminder_seconds": {
                "type": "number",
                "maximum": 120,
                "minimum": 0,
                "description": "Nudge a silent person after N seconds; 0 = off"
              },
              "dynamic_voice_speed": {
                "type": "boolean"
              },
              "ambient_sound_volume": {
                "type": "number",
                "maximum": 2,
                "minimum": 0
              },
              "backchannel_frequency": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              },
              "dynamic_responsiveness": {
                "type": "boolean"
              },
              "interruption_sensitivity": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "reconfigure_telegram_bot",
          "title": "Re-apply Telegram bot commands",
          "description": "Re-apply the bot's commands and menu button (for private and group chats) — use when the bot menu looks wrong. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_telegram_chats",
          "title": "List Telegram chats",
          "description": "People/groups talking to the agent's Telegram bot: name, username, type, message count, last message time. Paged. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_telegram_chat",
          "title": "Read a Telegram chat",
          "description": "All messages of one Telegram chat, incl. voice-call turns with recording URL and duration. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "chat_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "chat_id": {
                "type": "string",
                "description": "chats[].id from list_telegram_chats"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_send_telegram_message",
          "title": "Preview an operator Telegram message",
          "description": "Show the recipient and exact text of an operator message. Nothing is sent. ALWAYS call first and show the user the text.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "chat_id",
              "message"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "chat_id": {
                "type": "string"
              },
              "message": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "send_telegram_message",
          "title": "Send a Telegram message as the operator",
          "description": "Sends a REAL Telegram message from the bot to this person (human takeover). Only after preview_send_telegram_message and the user approved the exact text.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "chat_id",
              "message"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "chat_id": {
                "type": "string"
              },
              "message": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_telegram_analytics",
          "title": "Telegram analytics",
          "description": "Chats, messages, voice calls, text messages, unique users and credits (text/voice) of the agent's Telegram bot for a date range. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "date_to": {
                "type": "string",
                "description": "To (YYYY-MM-DD or ISO 8601)"
              },
              "date_from": {
                "type": "string",
                "description": "From (YYYY-MM-DD or ISO 8601)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_phone_numbers",
          "title": "List my phone numbers",
          "description": "Phone numbers already on your account (number, country, type, monthly cost, per-minute rate). Buying numbers is done in the app. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "generate_phone_script",
          "title": "Draft a phone call script",
          "description": "Draft a call script and greeting from the agent's sales script for a call objective, in the agent's language. Free. Not saved — pass it to setup_phone_agent (or let setup_phone_agent generate it).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "voice_gender": {
                "enum": [
                  "male",
                  "female"
                ],
                "type": "string"
              },
              "call_objective": {
                "enum": [
                  "sell",
                  "inform",
                  "book_meeting",
                  "collect_info",
                  "qualify_lead"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_setup_phone_agent",
          "title": "Preview the Voice Call setup",
          "description": "Show what setup_phone_agent would do with the same arguments: which channel is created or updated, which of YOUR numbers is attached, objective, voice, inbound on/off. Nothing is attached or created. ALWAYS call first and show the user, then call setup_phone_agent with the same arguments after approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "speed": {
                "type": "number",
                "maximum": 1.3,
                "minimum": 0.7
              },
              "emotion": {
                "enum": [
                  "neutral",
                  "expressive",
                  "calm",
                  "dynamic"
                ],
                "type": "string"
              },
              "language": {
                "enum": [
                  "auto",
                  "multi"
                ],
                "type": "string",
                "description": "auto = script language; multi = switch to the caller's language"
              },
              "voice_id": {
                "type": "string",
                "description": "From list_retell_voices / list_voice_catalog"
              },
              "call_script": {
                "type": "string"
              },
              "voice_gender": {
                "enum": [
                  "male",
                  "female"
                ],
                "type": "string"
              },
              "ambient_sound": {
                "enum": [
                  "",
                  "coffee-shop",
                  "call-center",
                  "convention-hall"
                ],
                "type": "string"
              },
              "connection_id": {
                "type": "string",
                "description": "Existing PHONE_CALL channel; default = the agent's first one or a new one"
              },
              "call_objective": {
                "enum": [
                  "sell",
                  "inform",
                  "book_meeting",
                  "collect_info",
                  "qualify_lead"
                ],
                "type": "string"
              },
              "accept_incoming": {
                "type": "boolean",
                "description": "Answer calls TO this number with an inbound agent"
              },
              "phone_number_id": {
                "type": "string",
                "description": "Required the first time — from list_phone_numbers"
              },
              "greeting_message": {
                "type": "string"
              },
              "enable_backchannel": {
                "type": "boolean"
              },
              "communication_rules": {
                "type": "string"
              },
              "end_call_silence_seconds": {
                "type": "number",
                "maximum": 120,
                "minimum": 10
              },
              "reminder_trigger_seconds": {
                "type": "number",
                "maximum": 60,
                "minimum": 5
              },
              "max_call_duration_seconds": {
                "type": "number",
                "maximum": 1800,
                "minimum": 30
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "setup_phone_agent",
          "title": "Set up the Voice Call channel",
          "description": "Create/update the agent's Voice Call channel like the app: attach one of YOUR numbers (list_phone_numbers), objective, script (generated if omitted), greeting, voice, pace, emotion, language, rules, inbound calls on/off, background sound, silence/reminder timings. Creates the phone voice agent at the provider and links the number (with accept_incoming the number starts answering real calls). Takes up to ~1 min. Free to set up; calls cost 25 credits/min. Only call after preview_setup_phone_agent and the user's approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "speed": {
                "type": "number",
                "maximum": 1.3,
                "minimum": 0.7
              },
              "emotion": {
                "enum": [
                  "neutral",
                  "expressive",
                  "calm",
                  "dynamic"
                ],
                "type": "string"
              },
              "language": {
                "enum": [
                  "auto",
                  "multi"
                ],
                "type": "string",
                "description": "auto = script language; multi = switch to the caller's language"
              },
              "voice_id": {
                "type": "string",
                "description": "From list_retell_voices / list_voice_catalog"
              },
              "call_script": {
                "type": "string"
              },
              "voice_gender": {
                "enum": [
                  "male",
                  "female"
                ],
                "type": "string"
              },
              "ambient_sound": {
                "enum": [
                  "",
                  "coffee-shop",
                  "call-center",
                  "convention-hall"
                ],
                "type": "string"
              },
              "connection_id": {
                "type": "string",
                "description": "Existing PHONE_CALL channel; default = the agent's first one or a new one"
              },
              "call_objective": {
                "enum": [
                  "sell",
                  "inform",
                  "book_meeting",
                  "collect_info",
                  "qualify_lead"
                ],
                "type": "string"
              },
              "accept_incoming": {
                "type": "boolean",
                "description": "Answer calls TO this number with an inbound agent"
              },
              "phone_number_id": {
                "type": "string",
                "description": "Required the first time — from list_phone_numbers"
              },
              "greeting_message": {
                "type": "string"
              },
              "enable_backchannel": {
                "type": "boolean"
              },
              "communication_rules": {
                "type": "string"
              },
              "end_call_silence_seconds": {
                "type": "number",
                "maximum": 120,
                "minimum": 10
              },
              "reminder_trigger_seconds": {
                "type": "number",
                "maximum": 60,
                "minimum": 5
              },
              "max_call_duration_seconds": {
                "type": "number",
                "maximum": 1800,
                "minimum": 30
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_phone_test_call",
          "title": "Preview a test call",
          "description": "Show which number would be called from which, and the cost (25 credits/min, max 2 min). Nothing is dialled. ALWAYS call first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "to_number"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "to_number": {
                "type": "string",
                "description": "E.164, e.g. +447700900123"
              },
              "connection_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "phone_test_call",
          "title": "Make a test call (real phone)",
          "description": "DIALS A REAL PHONE: the agent calls to_number from the channel's number (max 2 min, 25 credits/min). Only call the user's own number, only after preview_phone_test_call and explicit approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "to_number"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "to_number": {
                "type": "string"
              },
              "connection_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_phone_calls",
          "title": "List the agent's phone calls",
          "description": "Phone calls of this agent (incl. test and inbound) with transcript, recording URL, summary, outcome, sentiment, duration and credits, plus totals by outcome/sentiment. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_phone_channel_stats",
          "title": "Voice Call channel counters",
          "description": "Calls attempted/completed/successful, minutes and credits of one Voice Call channel. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "connection_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              },
              "connection_id": {
                "type": "string",
                "description": "Channel (connection) id (UUID) — from list_agent_connections"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_whatsapp_accounts",
          "title": "List WhatsApp accounts",
          "description": "WhatsApp accounts connected to your user (phone, name, status: connecting / ok / error / credentials / stopped). Account-level: auto-replies use your latest campaign's agent. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "preview_connect_whatsapp_account",
          "title": "Preview connecting WhatsApp",
          "description": "Explain what connecting a WhatsApp number does and list the accounts already connected. No link is created. Call first, then connect_whatsapp_account after the user approves.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "connect_whatsapp_account",
          "title": "Get a WhatsApp connect link",
          "description": "Returns a hosted link; the user opens it and scans the QR code with WhatsApp (Linked devices) — that links a REAL phone number to the workspace. Poll list_whatsapp_accounts until status is \"ok\". Free. Only after preview_connect_whatsapp_account and the user's approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "preview_disconnect_telegram_bot",
          "title": "Preview disconnecting the Telegram bot",
          "description": "Show which Telegram bot would be detached from the agent (username, chats, messages). Nothing changes. Call first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "disconnect_telegram_bot",
          "title": "Disconnect Telegram bot",
          "description": "Detach the bot from this agent: the webhook is removed and the bot stops answering (it keeps existing in Telegram; chat history is kept; reconnect with connect_telegram_bot). Only after preview_disconnect_telegram_bot and the user's approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id (UUID) — from list_agents"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_disconnect_whatsapp_account",
          "title": "Preview disconnecting WhatsApp",
          "description": "Show the WhatsApp account that would be disconnected. Nothing changes. Call first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id"
            ],
            "properties": {
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "disconnect_whatsapp_account",
          "title": "Disconnect WhatsApp (irreversible)",
          "description": "Disconnect and delete the WhatsApp account; auto-replies stop and reconnecting needs a new QR scan. Only after preview_disconnect_whatsapp_account and user approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id"
            ],
            "properties": {
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_site_index_status",
          "title": "Site index status",
          "description": "Status of the agent's website index: pages/languages/products counts, crawl progress (finding / reading / understanding / catalogue), failures with reasons, detected shop platform, subdomains. The index powers the live widget and AI-agent access to the site. Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "start_site_indexing",
          "title": "(Re)index the agent's website",
          "description": "Start or refresh the index of the agent's own website (sitemap + link crawl, JS pages read in a headless browser, shop catalogue detection). Rate-limited to 12 runs/hour per user. force=true re-reads even a fresh index. Free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_site_index_pages",
          "title": "Site index pages",
          "description": "Every page of the agent's website index: language, title, text length, failures with error + attempt count, pages removed by the owner, manually added pages. Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "exclude_site_pages",
          "title": "Remove pages from the site index",
          "description": "Remove pages from the agent's website index (they stay out through refreshes). undo=true brings removed pages back.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "paths"
            ],
            "properties": {
              "undo": {
                "type": "boolean"
              },
              "paths": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 200,
                "minItems": 1
              },
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "add_site_pages",
          "title": "Add pages to the site index",
          "description": "Manually add page paths to the agent's website index (read immediately, kept through refreshes). Use for pages the crawler missed. Rate-limited to 60 adds/hour per user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "paths"
            ],
            "properties": {
              "paths": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100,
                "minItems": 1
              },
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "index_subdomain",
          "title": "Index or remove a subdomain",
          "description": "Add a subdomain of the agent's website to the index as a linked site (its pages join search and answers), or remove one with remove=true.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "agent_id",
              "host"
            ],
            "properties": {
              "host": {
                "type": "string",
                "description": "e.g. \"shop.example.com\""
              },
              "remove": {
                "type": "boolean"
              },
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaigns",
          "title": "List campaigns",
          "description": "List classic Sales Process campaigns with status and live stats. Archived campaigns are hidden unless include_archived=true. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "include_archived": {
                "type": "boolean",
                "description": "Also return archived campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign",
          "title": "Get a campaign",
          "description": "Full campaign: status, settings (all wizard fields), sequence, channel paused flags, channelStatuses, today's sends, stats.totalContacts. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "create_campaign",
          "title": "Create a campaign (DRAFT, not launched)",
          "description": "Create a classic campaign in DRAFT — nobody is contacted until launch_campaign. Needs an audience (audienceId from save_audience/list_audiences, OR customAudienceId of a READY uploaded/CRM list) and should get an agentId (a campaign cannot be launched without an agent: AGENT_REQUIRED). branchId = CRM branch for replies (crm_list_branches; null = General). Settings (all optional): channels, dailyLimit, dailyEmailLimit, dailyLinkedinLimit, timezone, workingHours, excludeWeekends, campaignDurationDays, customInstructions (Communication Rules incl. form of address), emailSignature, notifyEmails, ccEmail, autoResponseEnabled, autoResponseDelayMinutes, followUpInterval, maxFollowUps, trackOpens, emailSenderMode (managed needs a paid plan), senderEmailIds, emailContent {mode, prompt, tone, variants, htmlSteps, followUps[{delayDays, prompt|subject+body}]}, linkedinContent {mode, invite_prompt, invite_tone, invite_exact_text, followup_delay_minutes, followup_exact_text}, selectedLinkedinAccountIds, linkedinAutoReplyDisabled. Ids are checked against the workspace. Free, no sending.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "agentId": {
                "type": "string",
                "description": "Sales agent id (list_agents). Required before launch."
              },
              "branchId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "CRM branch id for replies; null = General"
              },
              "settings": {
                "type": "object",
                "properties": {
                  "ccEmail": {
                    "type": "string",
                    "description": "Address put in CC of outgoing emails."
                  },
                  "channels": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "email",
                        "linkedin",
                        "phone_call"
                      ],
                      "type": "string"
                    },
                    "description": "Channels the campaign uses (default ['email'])."
                  },
                  "timezone": {
                    "type": "string",
                    "description": "IANA timezone of the sending window, e.g. Europe/London (default)."
                  },
                  "speedTier": {
                    "enum": [
                      "conservative",
                      "balanced",
                      "aggressive"
                    ],
                    "type": "string"
                  },
                  "dailyLimit": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "New contacts emailed per day. Must not exceed sender capacity (list_sender_emails / list_client_mailboxes). Default 200."
                  },
                  "trackLinks": {
                    "type": "boolean",
                    "description": "Saved like the app (currently not read by the sender)."
                  },
                  "trackOpens": {
                    "type": "boolean",
                    "description": "Insert the open-tracking pixel."
                  },
                  "emailContent": {
                    "type": "object",
                    "required": [
                      "mode"
                    ],
                    "properties": {
                      "mode": {
                        "enum": [
                          "ai",
                          "fixed",
                          "html"
                        ],
                        "type": "string",
                        "description": "ai = AI writes each email from the prompt; fixed = your text with {{first_name}}-style placeholders; html = your own HTML steps."
                      },
                      "tone": {
                        "enum": [
                          "formal",
                          "casual",
                          "friendly"
                        ],
                        "type": "string"
                      },
                      "prompt": {
                        "type": "string",
                        "description": "AI writing rules for the first email."
                      },
                      "variants": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "subject",
                            "body"
                          ],
                          "properties": {
                            "body": {
                              "type": "string"
                            },
                            "subject": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 5,
                        "description": "Fixed mode: up to 5 A/B variants of the first email."
                      },
                      "followUps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "delayDays"
                          ],
                          "properties": {
                            "body": {
                              "type": "string",
                              "maxLength": 20000,
                              "description": "Fixed mode: body."
                            },
                            "prompt": {
                              "type": "string",
                              "maxLength": 4000,
                              "description": "AI mode: writing rules for this follow-up."
                            },
                            "subject": {
                              "type": "string",
                              "maxLength": 500,
                              "description": "Fixed mode: subject."
                            },
                            "delayDays": {
                              "type": "integer",
                              "maximum": 90,
                              "minimum": 1,
                              "description": "Days after the previous email."
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 7,
                        "description": "Follow-ups after the first email (max 7)."
                      },
                      "htmlSteps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "subject",
                            "html"
                          ],
                          "properties": {
                            "html": {
                              "type": "string"
                            },
                            "subject": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "delayDays": {
                              "type": "integer",
                              "maximum": 90,
                              "minimum": 1
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 20,
                        "description": "HTML mode: one entry per email; delayDays = days after the previous email (not on the first)."
                      }
                    },
                    "description": "Email content (wizard step 4). On a running campaign a change to steps/delays is NOT applied once anything was sent; see settings.smartleadSequencePending in get_campaign.",
                    "additionalProperties": true
                  },
                  "maxFollowUps": {
                    "type": "integer",
                    "maximum": 7,
                    "minimum": 0,
                    "description": "Legacy: number of follow-ups when emailContent.followUps is empty (default 3)."
                  },
                  "notifyEmails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Addresses notified when a lead replies."
                  },
                  "workingHours": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "maximum": 24,
                      "minimum": 0
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "description": "[startHour, endHour] in the campaign timezone (default [9,18]). Two integers: start 0-23, end 1-24."
                  },
                  "emailSignature": {
                    "type": "string",
                    "description": "HTML signature appended to emails ('' = no signature)."
                  },
                  "senderEmailIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Restrict sending to these sender ids from list_sender_emails (empty = auto-assign at launch)."
                  },
                  "stopOnNegative": {
                    "type": "boolean",
                    "description": "Saved like the app (currently not read by the sender)."
                  },
                  "dailyEmailLimit": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Emails per day; the app keeps it equal to dailyLimit."
                  },
                  "emailSenderMode": {
                    "enum": [
                      "managed",
                      "client_owned"
                    ],
                    "type": "string",
                    "description": "managed = Vendo warmed pool (PAID PLAN REQUIRED to launch); client_owned = the workspace's own mailboxes (connect_client_mailbox). Default managed."
                  },
                  "excludeWeekends": {
                    "type": "boolean",
                    "description": "Do not send on Saturday/Sunday (default true)."
                  },
                  "linkedinContent": {
                    "type": "object",
                    "required": [
                      "mode"
                    ],
                    "properties": {
                      "mode": {
                        "enum": [
                          "ai",
                          "fixed"
                        ],
                        "type": "string"
                      },
                      "invite_tone": {
                        "$ref": "#/properties/settings/properties/emailContent/properties/tone"
                      },
                      "invite_prompt": {
                        "type": "string",
                        "description": "AI rules for the connection note (also used for the form of address)."
                      },
                      "invite_exact_text": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Fixed connection note (LinkedIn sends max 200 chars)."
                      },
                      "followup_exact_text": {
                        "type": "string",
                        "maxLength": 1500,
                        "description": "Fixed first message after connect."
                      },
                      "followup_delay_minutes": {
                        "type": "integer",
                        "maximum": 43200,
                        "minimum": 0,
                        "description": "Delay of the first message after the invite is accepted."
                      }
                    },
                    "description": "LinkedIn content (wizard step 5).",
                    "additionalProperties": true
                  },
                  "followUpInterval": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Legacy: days between follow-ups, used only when emailContent.followUps is empty (default 3)."
                  },
                  "customInstructions": {
                    "type": "string",
                    "maxLength": 6000,
                    "description": "Communication Rules: CTA, links, promises, what never to say. Overrides prompt defaults in emails, follow-ups, AI auto-replies and LinkedIn. Also sets the informal/formal form of address (e.g. ти/Ви, du/Sie) when the rules say so."
                  },
                  "dailyLinkedinLimit": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Campaign-wide LinkedIn invites per day across ALL its accounts (hard limit). Each account also has its own warm-up cap."
                  },
                  "autoResponseEnabled": {
                    "type": "boolean",
                    "description": "AI answers email replies automatically (default true)."
                  },
                  "clientEmailProvider": {
                    "anyOf": [
                      {
                        "enum": [
                          "google",
                          "microsoft"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Informational provider of own mailboxes."
                  },
                  "campaignDurationDays": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Planned duration in days (default 30)."
                  },
                  "autoResponseDelayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Delay before the AI email auto-reply (default 10)."
                  },
                  "linkedinAutoReplyDisabled": {
                    "type": "boolean",
                    "description": "Switch LinkedIn AI auto-replies OFF for this campaign only (per-account settings: update_linkedin_account_settings)."
                  },
                  "selectedLinkedinAccountIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "LinkedIn accounts used by this campaign (ids from list_linkedin_accounts). Empty = all connected accounts at launch."
                  }
                },
                "additionalProperties": true
              },
              "audienceId": {
                "type": "string",
                "description": "Campaign audience id"
              },
              "description": {
                "type": "string"
              },
              "customAudienceId": {
                "type": "string",
                "description": "Instead of audienceId: id of a READY custom audience (uploaded CSV/CRM list); an audience is created from it"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_campaign",
          "title": "Update campaign (wizard settings)",
          "description": "Change a campaign's name, description or any wizard setting (partial: send only what changes; settings are merged). agentId and branchId can be changed only while the campaign is a draft. Settings (all optional): channels, dailyLimit, dailyEmailLimit, dailyLinkedinLimit, timezone, workingHours, excludeWeekends, campaignDurationDays, customInstructions (Communication Rules incl. form of address), emailSignature, notifyEmails, ccEmail, autoResponseEnabled, autoResponseDelayMinutes, followUpInterval, maxFollowUps, trackOpens, emailSenderMode (managed needs a paid plan), senderEmailIds, emailContent {mode, prompt, tone, variants, htmlSteps, followUps[{delayDays, prompt|subject+body}]}, linkedinContent {mode, invite_prompt, invite_tone, invite_exact_text, followup_delay_minutes, followup_exact_text}, selectedLinkedinAccountIds, linkedinAutoReplyDisabled. On a running campaign, changed email steps/delays are not applied once anything was sent (settings.smartleadSequencePending). No sending, no credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "name": {
                "type": "string"
              },
              "agentId": {
                "type": "string",
                "description": "Draft only"
              },
              "branchId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Draft only; null = General"
              },
              "settings": {
                "type": "object",
                "properties": {
                  "ccEmail": {
                    "type": "string",
                    "description": "Address put in CC of outgoing emails."
                  },
                  "channels": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "email",
                        "linkedin",
                        "phone_call"
                      ],
                      "type": "string"
                    },
                    "description": "Channels the campaign uses (default ['email'])."
                  },
                  "timezone": {
                    "type": "string",
                    "description": "IANA timezone of the sending window, e.g. Europe/London (default)."
                  },
                  "speedTier": {
                    "enum": [
                      "conservative",
                      "balanced",
                      "aggressive"
                    ],
                    "type": "string"
                  },
                  "dailyLimit": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "New contacts emailed per day. Must not exceed sender capacity (list_sender_emails / list_client_mailboxes). Default 200."
                  },
                  "trackLinks": {
                    "type": "boolean",
                    "description": "Saved like the app (currently not read by the sender)."
                  },
                  "trackOpens": {
                    "type": "boolean",
                    "description": "Insert the open-tracking pixel."
                  },
                  "emailContent": {
                    "type": "object",
                    "required": [
                      "mode"
                    ],
                    "properties": {
                      "mode": {
                        "enum": [
                          "ai",
                          "fixed",
                          "html"
                        ],
                        "type": "string",
                        "description": "ai = AI writes each email from the prompt; fixed = your text with {{first_name}}-style placeholders; html = your own HTML steps."
                      },
                      "tone": {
                        "enum": [
                          "formal",
                          "casual",
                          "friendly"
                        ],
                        "type": "string"
                      },
                      "prompt": {
                        "type": "string",
                        "description": "AI writing rules for the first email."
                      },
                      "variants": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "subject",
                            "body"
                          ],
                          "properties": {
                            "body": {
                              "type": "string"
                            },
                            "subject": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 5,
                        "description": "Fixed mode: up to 5 A/B variants of the first email."
                      },
                      "followUps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "delayDays"
                          ],
                          "properties": {
                            "body": {
                              "type": "string",
                              "maxLength": 20000,
                              "description": "Fixed mode: body."
                            },
                            "prompt": {
                              "type": "string",
                              "maxLength": 4000,
                              "description": "AI mode: writing rules for this follow-up."
                            },
                            "subject": {
                              "type": "string",
                              "maxLength": 500,
                              "description": "Fixed mode: subject."
                            },
                            "delayDays": {
                              "type": "integer",
                              "maximum": 90,
                              "minimum": 1,
                              "description": "Days after the previous email."
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 7,
                        "description": "Follow-ups after the first email (max 7)."
                      },
                      "htmlSteps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "subject",
                            "html"
                          ],
                          "properties": {
                            "html": {
                              "type": "string"
                            },
                            "subject": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "delayDays": {
                              "type": "integer",
                              "maximum": 90,
                              "minimum": 1
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 20,
                        "description": "HTML mode: one entry per email; delayDays = days after the previous email (not on the first)."
                      }
                    },
                    "description": "Email content (wizard step 4). On a running campaign a change to steps/delays is NOT applied once anything was sent; see settings.smartleadSequencePending in get_campaign.",
                    "additionalProperties": true
                  },
                  "maxFollowUps": {
                    "type": "integer",
                    "maximum": 7,
                    "minimum": 0,
                    "description": "Legacy: number of follow-ups when emailContent.followUps is empty (default 3)."
                  },
                  "notifyEmails": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Addresses notified when a lead replies."
                  },
                  "workingHours": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "maximum": 24,
                      "minimum": 0
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "description": "[startHour, endHour] in the campaign timezone (default [9,18]). Two integers: start 0-23, end 1-24."
                  },
                  "emailSignature": {
                    "type": "string",
                    "description": "HTML signature appended to emails ('' = no signature)."
                  },
                  "senderEmailIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Restrict sending to these sender ids from list_sender_emails (empty = auto-assign at launch)."
                  },
                  "stopOnNegative": {
                    "type": "boolean",
                    "description": "Saved like the app (currently not read by the sender)."
                  },
                  "dailyEmailLimit": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Emails per day; the app keeps it equal to dailyLimit."
                  },
                  "emailSenderMode": {
                    "enum": [
                      "managed",
                      "client_owned"
                    ],
                    "type": "string",
                    "description": "managed = Vendo warmed pool (PAID PLAN REQUIRED to launch); client_owned = the workspace's own mailboxes (connect_client_mailbox). Default managed."
                  },
                  "excludeWeekends": {
                    "type": "boolean",
                    "description": "Do not send on Saturday/Sunday (default true)."
                  },
                  "linkedinContent": {
                    "type": "object",
                    "required": [
                      "mode"
                    ],
                    "properties": {
                      "mode": {
                        "enum": [
                          "ai",
                          "fixed"
                        ],
                        "type": "string"
                      },
                      "invite_tone": {
                        "$ref": "#/properties/settings/properties/emailContent/properties/tone"
                      },
                      "invite_prompt": {
                        "type": "string",
                        "description": "AI rules for the connection note (also used for the form of address)."
                      },
                      "invite_exact_text": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Fixed connection note (LinkedIn sends max 200 chars)."
                      },
                      "followup_exact_text": {
                        "type": "string",
                        "maxLength": 1500,
                        "description": "Fixed first message after connect."
                      },
                      "followup_delay_minutes": {
                        "type": "integer",
                        "maximum": 43200,
                        "minimum": 0,
                        "description": "Delay of the first message after the invite is accepted."
                      }
                    },
                    "description": "LinkedIn content (wizard step 5).",
                    "additionalProperties": true
                  },
                  "followUpInterval": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Legacy: days between follow-ups, used only when emailContent.followUps is empty (default 3)."
                  },
                  "customInstructions": {
                    "type": "string",
                    "maxLength": 6000,
                    "description": "Communication Rules: CTA, links, promises, what never to say. Overrides prompt defaults in emails, follow-ups, AI auto-replies and LinkedIn. Also sets the informal/formal form of address (e.g. ти/Ви, du/Sie) when the rules say so."
                  },
                  "dailyLinkedinLimit": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Campaign-wide LinkedIn invites per day across ALL its accounts (hard limit). Each account also has its own warm-up cap."
                  },
                  "autoResponseEnabled": {
                    "type": "boolean",
                    "description": "AI answers email replies automatically (default true)."
                  },
                  "clientEmailProvider": {
                    "anyOf": [
                      {
                        "enum": [
                          "google",
                          "microsoft"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Informational provider of own mailboxes."
                  },
                  "campaignDurationDays": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Planned duration in days (default 30)."
                  },
                  "autoResponseDelayMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Delay before the AI email auto-reply (default 10)."
                  },
                  "linkedinAutoReplyDisabled": {
                    "type": "boolean",
                    "description": "Switch LinkedIn AI auto-replies OFF for this campaign only (per-account settings: update_linkedin_account_settings)."
                  },
                  "selectedLinkedinAccountIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "LinkedIn accounts used by this campaign (ids from list_linkedin_accounts). Empty = all connected accounts at launch."
                  }
                },
                "additionalProperties": true
              },
              "description": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_archive_campaign",
          "title": "Preview archiving a campaign",
          "description": "Show what archiving would do — NOTHING CHANGES: current status and channels, what stops (an active campaign stops ALL outreach at once and releases its mailboxes / LinkedIn accounts), what is kept (history, threads, stats, CRM leads). Archiving cannot be undone (duplicate_campaign to run the same setup again). ALWAYS call first and show the user before archive_campaign.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "archive_campaign",
          "title": "Archive a campaign",
          "description": "Archive the campaign: status becomes completed, all its outreach stops and it is hidden from the default lists (history stays readable with include_archived). Not reversible. Only call after preview_archive_campaign and the user's explicit approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_launch_campaign",
          "title": "Preview launching a campaign",
          "description": "Readiness report for launch/resume — NOTHING IS SENT: ready flag, blockers (AGENT_REQUIRED, AUDIENCE_REQUIRED, AUDIENCE_EMPTY (0 contacts), CLIENT_MAILBOX_NOT_CONNECTED, PAID_PLAN_REQUIRED for Vendo managed senders, INVALID_STATUS), warnings, real recipient count, channels, daily email/LinkedIn limits, sender mode, email steps, schedule and the LinkedIn accounts that will be activated. ALWAYS call this first and show the result to the user before launch_campaign.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "linkedin_account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Override which LinkedIn accounts get activated (default: settings.selectedLinkedinAccountIds, else all connected)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "launch_campaign",
          "title": "Launch / resume a campaign (sends real outreach)",
          "description": "Start (or resume a paused) campaign exactly like the app: starts email sending and queues LinkedIn on the selected (or all connected) accounts. Contacts receive REAL outreach in the working hours; credits are spent as messages go out. Only call AFTER the user reviewed preview_launch_campaign and approved it. Returns the campaign plus linkedin_activation.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "linkedin_account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "duplicate_campaign",
          "title": "Duplicate a campaign",
          "description": "Copy a campaign (settings + audience) into a new DRAFT named '<name> (Copy)'. Nothing is sent. Note: the copy re-uses company-based audiences only and has no CRM branch; check get_campaign of the copy before launching.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sync_campaign_stats",
          "title": "Refresh campaign email counters",
          "description": "Pull the latest sent/opened/clicked/replied/bounced counters from the sending provider and store them. Max once per minute per campaign. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_pulse",
          "title": "Campaign pulse (live status)",
          "description": "What the campaign is doing now (sending / idle / outside_hours / paused / queue_empty / done), today vs daily limits, 7–28-day email + LinkedIn series and the latest events. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "days": {
                "type": "integer",
                "maximum": 28,
                "minimum": 7
              },
              "limit": {
                "type": "integer",
                "maximum": 60,
                "minimum": 8,
                "description": "Recent events to return"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_live_status",
          "title": "Campaign email progress",
          "description": "Email channel progress: audience size, processed, % complete, event counts, queue depth and provider status / sent today. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_analytics",
          "title": "Campaign analytics (all campaigns)",
          "description": "Sales Process KPIs for the workspace: totals (campaigns, emails sent, opens, clicks, replies, contacts, rates) and per-campaign performance, optionally for a date range. Read-only. For SDR + campaigns combined use the SDR analytics tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "to": {
                "type": "string",
                "description": "YYYY-MM-DD"
              },
              "from": {
                "type": "string",
                "description": "YYYY-MM-DD"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_campaign_email",
          "title": "Preview a campaign email (first or follow-up #k)",
          "description": "Render the exact email a campaign would send — first email or follow-up #k — with the writing rules, tone, Communication Rules or fixed text. Pass campaign_id to use its saved settings (any field you pass overrides them), or agent_id + rules for an unsaved draft. No sending, no credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "mode": {
                "enum": [
                  "ai",
                  "fixed"
                ],
                "type": "string"
              },
              "tone": {
                "enum": [
                  "formal",
                  "casual",
                  "friendly"
                ],
                "type": "string"
              },
              "prompt": {
                "type": "string",
                "description": "AI writing rules (for the follow-up when follow_up is set)"
              },
              "sample": {
                "type": "object",
                "properties": {
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "position": {
                    "type": "string"
                  },
                  "company_name": {
                    "type": "string"
                  },
                  "contact_name": {
                    "type": "string"
                  }
                },
                "description": "Sample recipient used for the preview (defaults to a demo contact).",
                "additionalProperties": false
              },
              "variant": {
                "type": "object",
                "required": [
                  "subject",
                  "body"
                ],
                "properties": {
                  "body": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  }
                },
                "description": "Fixed mode text",
                "additionalProperties": false
              },
              "agent_id": {
                "type": "string",
                "description": "Required for AI mode when no campaign_id"
              },
              "follow_up": {
                "type": "object",
                "required": [
                  "index"
                ],
                "properties": {
                  "index": {
                    "type": "integer",
                    "maximum": 7,
                    "minimum": 1
                  },
                  "previous": {
                    "type": "object",
                    "properties": {
                      "body": {
                        "type": "string"
                      },
                      "subject": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "delay_days": {
                    "type": "integer",
                    "maximum": 90,
                    "minimum": 1
                  }
                },
                "description": "Preview follow-up #index instead of the first email",
                "additionalProperties": false
              },
              "campaign_id": {
                "type": "string"
              },
              "custom_instructions": {
                "type": "string",
                "description": "Communication Rules"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_campaign_linkedin_invite",
          "title": "Preview a campaign LinkedIn invite",
          "description": "Render the LinkedIn connection note a campaign would send (AI from rules/tone, or fixed text with placeholders), with its length vs the 200-char limit. Pass campaign_id to use saved settings. No sending, no credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "mode": {
                "enum": [
                  "ai",
                  "fixed"
                ],
                "type": "string"
              },
              "tone": {
                "enum": [
                  "formal",
                  "casual",
                  "friendly"
                ],
                "type": "string"
              },
              "prompt": {
                "type": "string"
              },
              "sample": {
                "type": "object",
                "properties": {
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "position": {
                    "type": "string"
                  },
                  "company_name": {
                    "type": "string"
                  },
                  "contact_name": {
                    "type": "string"
                  }
                },
                "description": "Sample recipient used for the preview (defaults to a demo contact).",
                "additionalProperties": false
              },
              "agent_id": {
                "type": "string"
              },
              "exact_text": {
                "type": "string",
                "maxLength": 300
              },
              "campaign_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_campaign_linkedin_followup",
          "title": "Preview the LinkedIn message after connect",
          "description": "Render the first LinkedIn message sent after an invite is accepted (AI from the agent, or the fixed text with placeholders filled). Pass campaign_id to use saved settings. No sending, no credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "mode": {
                "enum": [
                  "ai",
                  "fixed"
                ],
                "type": "string"
              },
              "sample": {
                "type": "object",
                "properties": {
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "position": {
                    "type": "string"
                  },
                  "company_name": {
                    "type": "string"
                  },
                  "contact_name": {
                    "type": "string"
                  }
                },
                "description": "Sample recipient used for the preview (defaults to a demo contact).",
                "additionalProperties": false
              },
              "agent_id": {
                "type": "string"
              },
              "exact_text": {
                "type": "string",
                "maxLength": 1500
              },
              "campaign_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_agent_email",
          "title": "Preview an email the agent would write",
          "description": "Render a sample outreach email from an agent — no sending, no credits. Optional mode/prompt/tone/customInstructions/variant/followUp{index,delayDays,previous}/sample make it render exactly like a campaign would (same as preview_campaign_email).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Agent id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_email_stats",
          "title": "Campaign email funnel incl. delivery",
          "description": "Email funnel: sent, delivered, opened, clicked, replied (real / auto-reply / bounce), bounced; delivery block (delivered vs not delivered: bounced, rejected as spam, unsubscribed; sender inbox-placement test — real inbox vs spam folder is not reported by providers) and unique opened/clicked/replied. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_emails",
          "title": "List sent / queued / prepared emails",
          "description": "state=sent: emails already sent (filter by status, search by address); state=queued: scheduled/queued emails waiting to go out; state=prepared: pre-generated emails pipeline with status counts and preparation progress. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "state"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Page size (default 50)"
              },
              "state": {
                "enum": [
                  "sent",
                  "queued",
                  "prepared"
                ],
                "type": "string"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Rows to skip (default 0)"
              },
              "search": {
                "type": "string",
                "description": "Search by email address (sent/queued)"
              },
              "status": {
                "type": "string",
                "description": "sent: sent|delivered|opened|clicked|replied|bounced; prepared: pipeline status e.g. ready_to_send, scheduled"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "prepare_campaign_emails",
          "title": "Pre-generate campaign emails (legacy)",
          "description": "Generate emails for every contact ahead of sending (legacy company-based audiences only; people/custom-audience campaigns prepare automatically after launch). Can take minutes. Nothing is sent. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "retry_campaign_email_preparation",
          "title": "Retry failed email preparation",
          "description": "Put prepared emails that failed validation/generation back in the queue (max 3 attempts each). Nothing is sent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_schedule_campaign_delivery",
          "title": "Preview scheduling prepared emails",
          "description": "Dry-run: how many ready prepared emails would be scheduled into the campaign working hours. Nothing changes. Call before schedule_campaign_delivery.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "schedule_campaign_delivery",
          "title": "Schedule prepared emails for delivery",
          "description": "Spread all ready prepared emails over the campaign's working-hour slots; they are then SENT for real automatically. Only after the user approved preview_schedule_campaign_delivery.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_send_campaign_emails_now",
          "title": "Preview sending prepared emails now",
          "description": "Dry-run: how many prepared emails would be sent immediately (outside the schedule). Nothing is sent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max emails (default 10)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "send_campaign_emails_now",
          "title": "Send prepared emails now (REAL emails)",
          "description": "Send up to `limit` prepared emails immediately, ignoring the schedule. REAL emails to real people. Only after the user approved preview_send_campaign_emails_now.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_replies",
          "title": "Campaign replies inbox",
          "description": "Email replies received by a campaign with body and classification: real (a person answered), auto_reply (out of office), bounce. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "type": {
                "enum": [
                  "real",
                  "auto_reply",
                  "bounce"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_email_leads",
          "title": "Engaged email leads",
          "description": "Recipients with their open/click/reply counts, read live from the sending provider (throttled: once per 15 s per campaign). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "filter": {
                "enum": [
                  "opened",
                  "clicked",
                  "replied",
                  "all"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_email",
          "title": "Open one campaign email",
          "description": "One sent email by email id (from list_campaign_emails / list_campaign_replies): content, recipient, related open/click/reply events, the reply and the conversation. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email_id"
            ],
            "properties": {
              "email_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "refresh_campaign_email_reply",
          "title": "Reload a reply from the provider",
          "description": "Fetch the latest reply text for an email from the sending provider (when a reply shows as empty). No credits, nothing sent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email_id"
            ],
            "properties": {
              "email_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_reply_to_campaign_email",
          "title": "Preview a manual reply to a lead",
          "description": "Dry-run of replying to a lead's email reply: shows recipient, subject and the exact text. Nothing is sent. Call before reply_to_campaign_email and show the text to the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email_id",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "description": "Reply body (HTML allowed)"
              },
              "email_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "reply_to_campaign_email",
          "title": "Send a manual reply to a lead (REAL email)",
          "description": "Send the reply immediately in the lead's thread (bypasses daily limits). REAL email. Only after the user approved the exact text from preview_reply_to_campaign_email.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email_id",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string"
              },
              "email_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_threads",
          "title": "AI email conversations of a campaign",
          "description": "Conversations the AI is handling for a campaign (filter by status ai_handling|human_takeover|closed and sentiment positive|objection|referral|unsubscribe|neutral), plus counters by status and sentiment. Only threads of the API key's user. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Page size (default 50)"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Rows to skip (default 0)"
              },
              "status": {
                "enum": [
                  "ai_handling",
                  "human_takeover",
                  "closed"
                ],
                "type": "string"
              },
              "sentiment": {
                "enum": [
                  "positive",
                  "objection",
                  "referral",
                  "unsubscribe",
                  "neutral"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_thread",
          "title": "Open an AI email conversation",
          "description": "One conversation with all messages (AI, human and contact). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "thread_id"
            ],
            "properties": {
              "thread_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "takeover_campaign_thread",
          "title": "Take over an AI email conversation",
          "description": "Stop the AI from replying in this conversation; a human continues (reply_in_campaign_thread). Nothing is sent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "thread_id"
            ],
            "properties": {
              "thread_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "close_campaign_thread",
          "title": "Close an AI email conversation",
          "description": "Mark the conversation closed (no more AI replies). Nothing is sent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "thread_id"
            ],
            "properties": {
              "thread_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_reply_in_campaign_thread",
          "title": "Preview a human reply in a conversation",
          "description": "Dry-run: recipient, subject (defaults to Re: last subject) and the exact text. Nothing is sent. Call before reply_in_campaign_thread and show the text to the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "thread_id",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "description": "Plain text"
              },
              "subject": {
                "type": "string"
              },
              "body_html": {
                "type": "string"
              },
              "thread_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "reply_in_campaign_thread",
          "title": "Send a human reply in a conversation (REAL email)",
          "description": "Send the email to the contact now. REAL email. Only after the user approved preview_reply_in_campaign_thread. Consider takeover_campaign_thread first so the AI stops answering.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "thread_id",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string"
              },
              "subject": {
                "type": "string"
              },
              "body_html": {
                "type": "string"
              },
              "thread_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_monitor",
          "title": "Campaign monitor",
          "description": "Monitor page data: AI lead discovery config + stats, audience growth by day, the last 100 activity events, event counts and credits (balance, spent today/total, daily budget). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_discovery",
          "title": "Get AI lead discovery config",
          "description": "AI lead discovery settings of a campaign (null when never configured). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_update_campaign_discovery",
          "title": "Preview AI lead discovery settings",
          "description": "Dry-run of enabling/changing automatic lead discovery: source, daily credit budget, leads/day. Nothing changes. Call before update_campaign_discovery whenever discovery is (or stays) enabled.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "enabled": {
                "type": "boolean"
              },
              "require_email": {
                "type": "boolean"
              },
              "search_source": {
                "enum": [
                  "apollo",
                  "signal"
                ],
                "type": "string"
              },
              "max_leads_per_day": {
                "type": "integer",
                "minimum": 0
              },
              "apollo_search_config": {
                "type": "object",
                "properties": {
                  "person_titles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "person_locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "organization_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "max_total_discovered": {
                "type": "integer",
                "minimum": 0
              },
              "signal_search_config": {
                "type": "object",
                "properties": {
                  "queries": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "linkedin_account_id": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "search_interval_minutes": {
                "type": "integer",
                "minimum": 5
              },
              "daily_discovery_budget_credits": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_campaign_discovery",
          "title": "Enable / change AI lead discovery (SPENDS CREDITS)",
          "description": "Turn on or adjust automatic lead discovery: it runs daily, SPENDS CREDITS up to daily_discovery_budget_credits and adds new leads to the campaign audience. Same args as preview_update_campaign_discovery; only after the user approved that preview. Disabling (enabled=false) needs no preview.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "enabled": {
                "type": "boolean"
              },
              "require_email": {
                "type": "boolean"
              },
              "search_source": {
                "enum": [
                  "apollo",
                  "signal"
                ],
                "type": "string"
              },
              "max_leads_per_day": {
                "type": "integer",
                "minimum": 0
              },
              "apollo_search_config": {
                "type": "object",
                "properties": {
                  "person_titles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "person_locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "organization_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "max_total_discovered": {
                "type": "integer",
                "minimum": 0
              },
              "signal_search_config": {
                "type": "object",
                "properties": {
                  "queries": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "linkedin_account_id": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "search_interval_minutes": {
                "type": "integer",
                "minimum": 5
              },
              "daily_discovery_budget_credits": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_discovered_leads",
          "title": "Leads found by AI discovery",
          "description": "Leads found by AI lead discovery for a campaign, filterable by status (discovered, enriching, enriched, added_to_audience, rejected, duplicate, enrichment_failed). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Page size (default 50)"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Rows to skip (default 0)"
              },
              "status": {
                "enum": [
                  "discovered",
                  "enriching",
                  "enriched",
                  "added_to_audience",
                  "rejected",
                  "duplicate",
                  "enrichment_failed"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_activity",
          "title": "Campaign activity feed",
          "description": "Paged activity events of a campaign (discovery, outreach, engagement, system, billing). Poll it instead of a live stream. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Page size (default 50)"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Rows to skip (default 0)"
              },
              "category": {
                "enum": [
                  "discovery",
                  "outreach",
                  "engagement",
                  "system",
                  "billing"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_sender_emails",
          "title": "Email senders + capacity",
          "description": "Sending addresses available to this workspace (Vendo managed pool + own mailboxes) with warm-up level, daily limit and status; summary.emails_per_day_ready = capacity in managed mode. Managed senders require a paid plan to launch (summary.paid_plan). Use ids in settings.senderEmailIds. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "list_client_mailboxes",
          "title": "Own sending mailboxes",
          "description": "The workspace's own connected mailboxes (status connecting|warming|ready|error|disconnected, warm-up reputation, last error). Capacity ≈ 50 emails/day per READY box. Used when settings.emailSenderMode=client_owned (classic campaigns and SDR). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "connect_client_mailbox",
          "title": "Connect an own mailbox (SMTP/IMAP app password)",
          "description": "Connect the user's OWN mailbox for sending. Requires SMTP/IMAP hosts+ports and an APP PASSWORD, which passes through this conversation: prefer asking the user to connect it in the app (Settings → Email Sending) unless they explicitly give you the password. WARM-UP STARTS IMMEDIATELY: the real mailbox sends and receives warm-up mail. The password is never returned. Gmail: smtp.gmail.com:465 / imap.gmail.com:993; Outlook: smtp.office365.com:587 / outlook.office365.com:993.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email",
              "smtp_host",
              "smtp_port",
              "imap_host",
              "imap_port",
              "password"
            ],
            "properties": {
              "email": {
                "type": "string"
              },
              "password": {
                "type": "string",
                "description": "App password (never stored by Vendo; passed to the sending operator)"
              },
              "provider": {
                "enum": [
                  "google",
                  "microsoft",
                  "other"
                ],
                "type": "string"
              },
              "from_name": {
                "type": "string"
              },
              "imap_host": {
                "type": "string"
              },
              "imap_port": {
                "type": "integer"
              },
              "smtp_host": {
                "type": "string"
              },
              "smtp_port": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "reconnect_client_mailbox",
          "title": "Reconnect an own mailbox",
          "description": "Retry the SMTP/IMAP connection of a mailbox in status error and refresh its status. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "mailbox_id"
            ],
            "properties": {
              "mailbox_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_disconnect_client_mailbox",
          "title": "Preview disconnecting an own mailbox",
          "description": "Dry-run: which client_owned campaigns are affected and how many usable mailboxes remain. Nothing changes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "mailbox_id"
            ],
            "properties": {
              "mailbox_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "disconnect_client_mailbox",
          "title": "Disconnect an own mailbox",
          "description": "Stop using the mailbox as a sender. If none remain, client_owned campaigns cannot send or launch. Only after the user approved preview_disconnect_client_mailbox.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "mailbox_id"
            ],
            "properties": {
              "mailbox_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_linkedin_accounts",
          "title": "List connected LinkedIn accounts",
          "description": "LinkedIn accounts of the workspace and their status (ok = can send; ~70–80 invites/day each). Returns { role, accounts } (role is filled only with detailed=true). detailed=true adds owner/role, campaigns and SDR searches using each account, 7-day activity, prospecting caps, warm-up stage, premium tier and proxy country. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "detailed": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_linkedin_account_settings",
          "title": "LinkedIn account settings",
          "description": "Per-account LinkedIn settings shared by every campaign and SDR process using the account: AI auto-replies (on/off, tone, instructions, pitch, booking link, reply delays, daily limit, working hours, agent, contact info), invites (on/off, tone, pitch, instructions, CTA), follow-ups (on/off, pitch, instructions, CTA) and signature (text, first_message|every_message). The first read creates defaults (pre-filled from campaign_id's agent).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id"
            ],
            "properties": {
              "account_id": {
                "type": "string"
              },
              "campaign_id": {
                "type": "string",
                "description": "Pre-fill defaults from this campaign's agent"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_linkedin_account_settings",
          "title": "Update LinkedIn account settings",
          "description": "Change AI auto-replies, invite / follow-up pitch, CTA, signature, reply delays/limits for ONE LinkedIn account (applies to all campaigns and SDR processes using it). Send only changed fields. To switch AI replies off for a single campaign use update_campaign settings.linkedinAutoReplyDisabled. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id"
            ],
            "properties": {
              "tone": {
                "enum": [
                  "formal",
                  "casual",
                  "friendly"
                ],
                "type": "string"
              },
              "enabled": {
                "type": "boolean",
                "description": "AI auto-replies on/off"
              },
              "agent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "timezone": {
                "type": "string"
              },
              "account_id": {
                "type": "string"
              },
              "invite_cta": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "invite_tone": {
                "$ref": "#/properties/tone"
              },
              "calendly_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Booking link offered in replies"
              },
              "contact_info": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "followup_cta": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "invite_pitch": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "product_pitch": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "working_hours": {
                "type": "object",
                "required": [
                  "start",
                  "end"
                ],
                "properties": {
                  "end": {
                    "type": "integer",
                    "maximum": 24,
                    "minimum": 1
                  },
                  "start": {
                    "type": "integer",
                    "maximum": 23,
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "followup_pitch": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signature_mode": {
                "enum": [
                  "first_message",
                  "every_message"
                ],
                "type": "string"
              },
              "signature_text": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "invites_enabled": {
                "type": "boolean"
              },
              "followup_enabled": {
                "type": "boolean"
              },
              "daily_reply_limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 0
              },
              "signature_enabled": {
                "type": "boolean"
              },
              "auto_accept_invites": {
                "type": "boolean",
                "description": "Automatically accept incoming LinkedIn connection requests on this account (2026-11-03 feature; ON by default)"
              },
              "custom_instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reply_delay_max_minutes": {
                "type": "integer",
                "maximum": 1440,
                "minimum": 0
              },
              "reply_delay_min_minutes": {
                "type": "integer",
                "maximum": 1440,
                "minimum": 0
              },
              "invite_custom_instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "followup_custom_instructions": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_linkedin_account_messages",
          "title": "Sample LinkedIn messages for an account",
          "description": "Sample invite, follow-up and auto-reply plus suggested pitch/signature for an account in a campaign (built from the campaign's agent). No sending, no credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id",
              "campaign_id"
            ],
            "properties": {
              "account_id": {
                "type": "string"
              },
              "campaign_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_linkedin_accounts",
          "title": "LinkedIn accounts working a campaign",
          "description": "Accounts working this campaign with per-account counters (pending, invites sent, connected, messaged, replied). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "add_campaign_linkedin_account",
          "title": "Add a LinkedIn account to a campaign",
          "description": "Add a connected account to a running campaign; pending contacts are rebalanced across accounts and backfilled. It starts sending invites in the next cycles. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "account_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "remove_campaign_linkedin_account",
          "title": "Remove a LinkedIn account from a campaign",
          "description": "Stop using an account for this campaign; its pending contacts move to the remaining accounts. Already-sent invites stay.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "account_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_activate_campaign_linkedin",
          "title": "Preview activating LinkedIn on a campaign",
          "description": "Dry-run: which accounts would get the campaign audience queued, how many contacts and what is already queued. Nothing changes. Call before activate_campaign_linkedin.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Default: settings.selectedLinkedinAccountIds, else all connected accounts"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "activate_campaign_linkedin",
          "title": "Activate LinkedIn on a campaign",
          "description": "Queue the campaign audience for LinkedIn on the given (or selected/all connected) accounts and add linkedin to the channels. On an active campaign REAL connection invites start within the next cycles. Only after the user approved preview_activate_campaign_linkedin.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_linkedin_outreach",
          "title": "LinkedIn outreach of a campaign",
          "description": "Contacts in the campaign's LinkedIn queue with their status (pending, invite_sent, connected, message_sent, replied, failed, skipped), optionally for one account. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Page size (default 50)"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Rows to skip (default 0)"
              },
              "status": {
                "enum": [
                  "pending",
                  "invite_sent",
                  "connected",
                  "message_sent",
                  "replied",
                  "failed",
                  "skipped"
                ],
                "type": "string"
              },
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_linkedin_stats",
          "title": "LinkedIn stats of a campaign",
          "description": "LinkedIn counters (total, pending, invites sent, connected, messaged, replied, failed), invites sent today, effective daily limit and active accounts; optionally for one account. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "takeover_linkedin_contact",
          "title": "Take over a LinkedIn contact",
          "description": "Stop the AI from messaging this LinkedIn contact (outreach id from list_campaign_linkedin_outreach or list_linkedin_conversations); pending auto-replies are cancelled. Nothing is sent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "outreach_id"
            ],
            "properties": {
              "outreach_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_linkedin_conversations",
          "title": "LinkedIn conversations",
          "description": "LinkedIn chats of the workspace (optionally of one campaign and/or account): contact, last message, pending AI reply, human takeover flag, outreach status. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "account_id": {
                "type": "string"
              },
              "campaign_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_linkedin_conversation",
          "title": "Open a LinkedIn conversation",
          "description": "All messages of one LinkedIn chat (chat_id from list_linkedin_conversations). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "chat_id"
            ],
            "properties": {
              "chat_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_send_linkedin_message",
          "title": "Preview a manual LinkedIn message",
          "description": "Dry-run: recipient, exact text, cost (3 credits) and whether the balance suffices. Nothing is sent. Call before send_linkedin_message and show the text to the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "chat_id",
              "text"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "chat_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "send_linkedin_message",
          "title": "Send a LinkedIn message (REAL, 3 credits)",
          "description": "Send a REAL LinkedIn message in the chat; costs 3 credits, the AI stops messaging this contact (human takeover) and the CRM lead moves to Manager Dialog. Only after the user approved preview_send_linkedin_message.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "chat_id",
              "text"
            ],
            "properties": {
              "text": {
                "type": "string"
              },
              "chat_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_activate_campaign_phone",
          "title": "Preview AI phone calls for a campaign",
          "description": "Dry-run of activating the phone channel with numbers the account already owns: numbers, objective, calls/day, window and estimated credits per call/day. Nothing is scheduled. Numbers cannot be bought through the API.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "phone_number_ids"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "timezone": {
                "type": "string"
              },
              "call_objective": {
                "enum": [
                  "sell",
                  "inform",
                  "book_meeting",
                  "collect_info",
                  "qualify_lead"
                ],
                "type": "string",
                "description": "Default inform"
              },
              "talking_points": {
                "type": "string"
              },
              "exclude_weekends": {
                "type": "boolean"
              },
              "phone_number_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Ids of the account's existing phone numbers"
              },
              "max_calls_per_day": {
                "type": "integer",
                "maximum": 1000,
                "minimum": 1,
                "description": "Default 50"
              },
              "working_hours_end": {
                "type": "integer",
                "maximum": 24,
                "minimum": 1
              },
              "working_hours_start": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0,
                "description": "Default: campaign working hours"
              },
              "max_call_duration_seconds": {
                "type": "integer",
                "maximum": 1800,
                "minimum": 30,
                "description": "Default 300"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "activate_campaign_phone",
          "title": "Activate AI phone calls (REAL calls, credits per minute)",
          "description": "Schedule REAL outbound AI calls to every audience contact with a phone number; credits are charged per call minute. Same args as preview_activate_campaign_phone; only after the user approved that preview. Pause with pause_channel channel=phone_call.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "phone_number_ids"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "timezone": {
                "type": "string"
              },
              "call_objective": {
                "enum": [
                  "sell",
                  "inform",
                  "book_meeting",
                  "collect_info",
                  "qualify_lead"
                ],
                "type": "string"
              },
              "talking_points": {
                "type": "string"
              },
              "exclude_weekends": {
                "type": "boolean"
              },
              "phone_number_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "max_calls_per_day": {
                "type": "integer",
                "maximum": 1000,
                "minimum": 1
              },
              "working_hours_end": {
                "type": "integer",
                "maximum": 24,
                "minimum": 1
              },
              "working_hours_start": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "max_call_duration_seconds": {
                "type": "integer",
                "maximum": 1800,
                "minimum": 30
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_campaign_phone_stats",
          "title": "Phone stats of a campaign",
          "description": "Call counters: total, completed, active, pending, no answer, voicemail, failed, interested, meetings booked, not interested, average/total duration. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_campaign_phone_calls",
          "title": "Calls of a campaign",
          "description": "Calls with contact, status, outcome, duration, sentiment, summary and recording URL. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Campaign id (UUID) from list_campaigns"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Page size (default 50)"
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Rows to skip (default 0)"
              },
              "status": {
                "enum": [
                  "pending",
                  "scheduled",
                  "calling",
                  "completed",
                  "failed",
                  "skipped",
                  "no_answer",
                  "voicemail",
                  "busy"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_content_accounts",
          "title": "Social publishing accounts",
          "description": "LinkedIn / Instagram accounts connected for publishing posts (Settings → Social), with status. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "connect_content_account",
          "title": "Get a link to connect a social publishing account",
          "description": "Returns a hosted URL a HUMAN must open in a browser to authorise a LinkedIn or Instagram publishing account. Give the link to the user; nothing is connected until they finish.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "provider": {
                "enum": [
                  "LINKEDIN",
                  "INSTAGRAM"
                ],
                "type": "string"
              },
              "redirect_path": {
                "type": "string",
                "description": "App path to return to, default /settings?tab=social"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_disconnect_content_account",
          "title": "Preview disconnecting a social publishing account",
          "description": "Dry-run of removing a publishing account. Nothing changes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id"
            ],
            "properties": {
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "disconnect_content_account",
          "title": "Disconnect a social publishing account",
          "description": "Remove the publishing account; it can no longer publish posts. Only after the user approved preview_disconnect_content_account.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "account_id"
            ],
            "properties": {
              "account_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_custom_audiences",
          "title": "List My Audiences (custom lists)",
          "description": "List the workspace's custom audiences — uploaded CSV/XLSX lists, purchased audience sets, CRM selections — with status (processing|ready|enriching|error), contact counts and enrichment progress. These are different from campaign audiences (`list_audiences`). Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Omit to get all"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_custom_audience",
          "title": "Get one custom audience",
          "description": "One custom audience: status, counts (with email/phone/LinkedIn), enrichment progress, column mapping and the first 20 contacts. Page through all contacts with `get_custom_audience_contacts`. Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_custom_audience_contacts",
          "title": "Page through custom audience contacts",
          "description": "Paged contacts of a custom audience (max 100 per page). Contacts added by Vendo SDR carry signal_context (why they were picked: reasoning, relevance score, ICP group). Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "create_custom_audience",
          "title": "Create an empty custom audience",
          "description": "Create an empty, named custom audience (status ready) — then fill it with `add_custom_audience_contacts`. To create one from a file use `upload_custom_audience`. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "rename_custom_audience",
          "title": "Rename a custom audience",
          "description": "Rename a custom audience. Reversible, no credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "name": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "add_custom_audience_contacts",
          "title": "Add contacts to a custom audience",
          "description": "Append up to 5000 contacts to a custom audience. Deduplicated inside the audience by email, LinkedIn URL or phone (duplicates and contacts with no email/LinkedIn/phone are skipped). Returns added / skipped / total_contacts. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "contacts"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string"
                    },
                    "phone": {
                      "type": "string"
                    },
                    "position": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "company_name": {
                      "type": "string"
                    },
                    "linkedin_url": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 5000,
                "minItems": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_custom_audience_contact",
          "title": "Edit a contact in a custom audience",
          "description": "Edit one contact of a custom audience (only the fields you pass change). No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "contact_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "city": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "website": {
                "type": "string"
              },
              "position": {
                "type": "string"
              },
              "telegram": {
                "type": "string"
              },
              "whatsapp": {
                "type": "string"
              },
              "full_name": {
                "type": "string"
              },
              "last_name": {
                "type": "string"
              },
              "contact_id": {
                "type": "string",
                "description": "Contact id (UUID)"
              },
              "first_name": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "facebook_url": {
                "type": "string"
              },
              "linkedin_url": {
                "type": "string"
              },
              "instagram_url": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_delete_custom_audience_contact",
          "title": "Preview removing a contact (dry-run)",
          "description": "Dry-run of removing one contact from a custom audience. Changes nothing. Show the result to the human before `delete_custom_audience_contact`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "contact_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "reason": {
                "type": "string"
              },
              "contact_id": {
                "type": "string",
                "description": "Contact id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "delete_custom_audience_contact",
          "title": "Remove a contact from a custom audience",
          "description": "Permanently remove one contact from a custom audience (not reversible). Optional reason (UI choices: Not relevant, Wrong contact, Already a customer, Bad data, Other) is logged to improve automatic selection. Only call after the user approved `preview_delete_custom_audience_contact`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "contact_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "reason": {
                "type": "string",
                "maxLength": 200
              },
              "contact_id": {
                "type": "string",
                "description": "Contact id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_delete_custom_audience",
          "title": "Preview deleting a custom audience (dry-run)",
          "description": "Dry-run: shows the audience name and how many contacts would be deleted. Changes nothing. ALWAYS call before `delete_custom_audience` and show the result.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "delete_custom_audience",
          "title": "Delete a custom audience",
          "description": "Permanently delete a custom audience with all its contacts and source file. NOT reversible. Only call after the user approved `preview_delete_custom_audience`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_custom_audience_file",
          "title": "Detect columns of a contacts file",
          "description": "Step 1 of an upload: send a CSV/XLSX/XLS/TSV/TXT file (base64 or https URL) and get the detected headers, a suggested column mapping, sample rows, total rows and the list of target fields. Creates nothing, no credits. Then call `upload_custom_audience` (optionally with a corrected column_mapping).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "file_url": {
                "type": "string",
                "description": "Public https URL to fetch the file from (≤10 MB). Use this OR content_base64."
              },
              "filename": {
                "type": "string",
                "description": "File name WITH extension (decides the type). Required with content_base64."
              },
              "content_base64": {
                "type": "string",
                "description": "File content, base64 (≤ ~7 MB). Use this OR file_url."
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "upload_custom_audience",
          "title": "Create a custom audience from a file",
          "description": "Create a custom audience from a CSV/XLSX/XLS/TSV/TXT file given as base64 or an https URL. Parsing runs in the background: poll `get_custom_audience` until status is \"ready\". No credits (enrichment is a separate, paid step).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 255,
                "description": "Audience name (default: file name)"
              },
              "file_url": {
                "type": "string",
                "description": "Public https URL to fetch the file from (≤10 MB). Use this OR content_base64."
              },
              "filename": {
                "type": "string",
                "description": "File name WITH extension (decides the type). Required with content_base64."
              },
              "column_mapping": {
                "type": "object",
                "description": "{ \"<column index>\": \"<field>\" } from preview_custom_audience_file (suggestedMapping / fieldOptions). Omit for auto-detect.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "content_base64": {
                "type": "string",
                "description": "File content, base64 (≤ ~7 MB). Use this OR file_url."
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "export_custom_audience_csv",
          "title": "Export a custom audience as CSV",
          "description": "Download every contact of a custom audience as CSV text (filename, total_rows, csv). Can be large. Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_enrich_custom_audience",
          "title": "Preview enriching a custom audience (cost)",
          "description": "Dry-run of enrichment: how many contacts still need enrichment, the maximum credits (1 per contact), estimated minutes, the current balance and whether it can start. Spends nothing. ALWAYS call first and show the cost to the human.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "enrich_custom_audience",
          "title": "Enrich a custom audience (SPENDS CREDITS)",
          "description": "SPENDS CREDITS: starts background enrichment (email, phone, LinkedIn, WhatsApp lookups) of the not-yet-enriched contacts — 1 credit per contact actually enriched, charged as it runs. Only call after the user approved `preview_enrich_custom_audience`. Then poll `get_custom_audience_enrichment`; stop with `stop_custom_audience_enrichment`.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_custom_audience_enrichment",
          "title": "Enrichment progress of a custom audience",
          "description": "Status and progress of a running (or finished) enrichment: status, enrichment_total, enrichment_done, enrichment_progress (%), done flag. Poll every 10–30 s. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "stop_custom_audience_enrichment",
          "title": "Stop a running enrichment",
          "description": "Stop an in-progress enrichment after the current contact (stops further spending). Already-enriched contacts stay enriched and charged.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "prepare_campaign_audience_from_custom",
          "title": "Use a custom audience in a campaign",
          "description": "Turn a READY custom audience into a campaign audience and return its id ({ id, name, stats }) — pass it as audienceId to `create_campaign`. Sends nothing, no credits. The \"Launch campaign\" button of My Audiences.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Custom audience id (UUID)"
              },
              "name": {
                "type": "string",
                "maxLength": 255,
                "description": "Campaign audience name (default: the custom audience name)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_audience_set_contact",
          "title": "One contact card of an audience set",
          "description": "Full card of one contact in a marketplace set: person, company, buying signal, channels. Contact details stay masked until the set is bought. Contact ids come from `get_audience_set_contacts`. Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "slug",
              "contact_id"
            ],
            "properties": {
              "slug": {
                "type": "string",
                "description": "Set slug"
              },
              "contact_id": {
                "type": "string",
                "description": "Contact id from get_audience_set_contacts"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_reorder_stages",
          "title": "Reorder pipeline stages",
          "description": "Set the full left-to-right order of one pipeline's stages (every stage id exactly once — get them from crm_list_stages with the same branch). Applies to the whole workspace. Reversible.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "stage_ids"
            ],
            "properties": {
              "branch": {
                "type": "string",
                "description": "\"general\" (default) or a branch id"
              },
              "stage_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "description": "All stage ids of the branch in the new order"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_list_all_branches",
          "title": "List every CRM pipeline (for moves)",
          "description": "Every pipeline of the workspace (id, name, is_default) — wider than crm_list_branches for members; use it to pick a destination for crm_add_lead_to_branch / crm_move_lead_to_branch. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "crm_get_branch",
          "title": "Get one CRM pipeline",
          "description": "One pipeline by id (id, name, is_default). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Branch id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_create_branch",
          "title": "Create a CRM pipeline (branch)",
          "description": "Create an isolated pipeline (team / direction / client) with its own default stages. member_user_ids = who can see it (General stays open to all). Workspace admins/owner only. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "member_user_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "User ids from crm_list_workspace_members"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_update_branch",
          "title": "Rename a pipeline / change its members",
          "description": "Rename a pipeline and/or replace its member list. The General pipeline cannot be changed. Admins/owner only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Branch id (UUID)"
              },
              "name": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              "member_user_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Replaces the member list"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_delete_crm_branch",
          "title": "Preview deleting a pipeline (dry-run)",
          "description": "Dry-run: shows the pipeline and how many leads would fall back to General. Changes nothing. ALWAYS call before delete_crm_branch.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Branch id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "delete_crm_branch",
          "title": "Delete a pipeline",
          "description": "Delete a non-default pipeline; its leads are not deleted but return to General. NOT reversible. Admins/owner only. Only call after the user approved preview_delete_crm_branch.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Branch id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_get_lead_branches",
          "title": "Pipelines a lead is in",
          "description": "Every pipeline a lead currently sits in, with its stage and owner per pipeline. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_add_lead_to_branch",
          "title": "Add a lead to another pipeline",
          "description": "Place the lead in another pipeline too (entry stage); it stays in its current ones. Reversible via crm_move_lead_to_branch.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "branch_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "branch_id": {
                "type": "string",
                "description": "\"general\" or a branch id from crm_list_all_branches"
              },
              "assignee_user_id": {
                "type": "string",
                "description": "Owner in that pipeline (default: current owner)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_move_lead_to_branch",
          "title": "Move a lead between pipelines",
          "description": "Move the lead out of one pipeline into another (entry stage, or to_stage_id of the destination). Reversible.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "from_branch_id",
              "to_branch_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "to_stage_id": {
                "type": "string",
                "description": "A stage of the destination (crm_list_stages branch=<to>)"
              },
              "to_branch_id": {
                "type": "string",
                "description": "\"general\" or the destination branch id"
              },
              "from_branch_id": {
                "type": "string",
                "description": "\"general\" or the branch id it leaves"
              },
              "assignee_user_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_preview_email_to_lead",
          "title": "Preview an email to a lead (dry-run)",
          "description": "Dry-run of crm_send_email_to_lead: shows recipient, subject and body exactly as they would be sent. Sends nothing. ALWAYS call first and show the draft to the human.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "subject",
              "body"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "to": {
                "type": "string",
                "description": "Recipient (default: the lead's email)"
              },
              "body": {
                "type": "string",
                "minLength": 1,
                "description": "Plain-text message"
              },
              "subject": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_send_email_to_lead",
          "title": "Send a REAL email to a lead",
          "description": "Sends a REAL email from the CRM card (\"<your name> via Vendo AI\", replies go to your own address) and logs it on the card. Members need the crm-contact-details permission. Only call after the user approved the exact draft from crm_preview_email_to_lead.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "subject",
              "body"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "to": {
                "type": "string"
              },
              "body": {
                "type": "string",
                "minLength": 1
              },
              "subject": {
                "type": "string",
                "minLength": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_import_leads",
          "title": "Import leads into the CRM",
          "description": "Import up to 1000 parsed rows as leads into the chosen pipelines (entry stage). Dedup by email/phone: an existing lead only gets its blank fields filled (never overwritten) and is added to the pipelines. Returns created / updated / skipped (+ reasons). No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "rows"
            ],
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string"
                    },
                    "phone": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "company": {
                      "type": "string"
                    },
                    "facebook": {
                      "type": "string"
                    },
                    "linkedin": {
                      "type": "string",
                      "description": "LinkedIn URL"
                    },
                    "instagram": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 1000,
                "minItems": 1
              },
              "branch_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "\"general\" and/or branch ids (default General)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_promote_contact_to_lead",
          "title": "Promote a contacted person to a CRM lead",
          "description": "Turn a person from the Communications stream (crm_communication_history row) into a CRM lead in the New stage. Deduplicated: returns { lead_id, already_existed }. Needs at least one of email / linkedin_url / phone. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "email": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "avatar_url": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "contact_name": {
                "type": "string"
              },
              "linkedin_url": {
                "type": "string"
              },
              "assigned_user_id": {
                "type": "string",
                "description": "Owner (default: you)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_list_lead_documents",
          "title": "List documents on a lead",
          "description": "Files attached to a lead card (id, name, type, size, uploader, date). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_upload_lead_document",
          "title": "Attach a document to a lead",
          "description": "Attach one file to a lead card (base64 or https URL). Allowed: pdf, doc(x), xls(x), csv, txt, rtf, odt, ods, ppt(x), png, jpg, gif, webp, heic, zip. Stored privately; adds an activity entry. No credits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "file_url": {
                "type": "string",
                "description": "Public https URL to fetch the file from (≤10 MB). Use this OR content_base64."
              },
              "filename": {
                "type": "string",
                "description": "File name WITH extension (decides the type). Required with content_base64."
              },
              "content_base64": {
                "type": "string",
                "description": "File content, base64 (≤ ~7 MB). Use this OR file_url."
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "crm_get_lead_document",
          "title": "Download a lead document",
          "description": "Returns the file as base64 with its name and mime type (files up to 5 MB; larger ones only via REST). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "document_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "document_id": {
                "type": "string",
                "description": "Document id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_delete_crm_lead_document",
          "title": "Preview deleting a lead document (dry-run)",
          "description": "Dry-run: shows which file would be deleted. Changes nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "document_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "document_id": {
                "type": "string",
                "description": "Document id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "delete_crm_lead_document",
          "title": "Delete a lead document",
          "description": "Permanently delete a file from a lead card. NOT reversible. Only call after the user approved preview_delete_crm_lead_document.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "document_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Lead id (UUID)"
              },
              "document_id": {
                "type": "string",
                "description": "Document id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_app_notifications",
          "title": "List app notifications (bell)",
          "description": "The caller's in-app notifications, newest first (type, subject, preview, isRead, createdAt), with unreadCount and paging. Types include MEETING_TRANSCRIPT, MEETING_NOTIFICATION, SUBSCRIPTION_*, PAYMENT_RECEIPT, LOW_CREDITS, CREDITS_ADDED, INVITATION, CUSTOM. CRM lead notifications are separate (crm_list_notifications). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_app_notifications_unread_count",
          "title": "Unread app notifications count",
          "description": "Number of unread in-app notifications (the bell badge). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "mark_app_notification_read",
          "title": "Mark an app notification read",
          "description": "Mark one in-app notification as read.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Notification id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "mark_all_app_notifications_read",
          "title": "Mark all app notifications read",
          "description": "Mark every in-app notification of the caller as read (clears the badge).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "delete_app_notification",
          "title": "Delete an app notification",
          "description": "Remove one in-app notification from the caller's list.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Notification id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_crm_integrations",
          "title": "List CRM integrations",
          "description": "External CRM connections of the workspace (Kommo, HubSpot): status, account, sync settings and counters. Tokens are never returned. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "get_crm_integration",
          "title": "Get one CRM integration",
          "description": "Status and settings of the Kommo or HubSpot connection ({connected:false} if none). Use it to poll after connect_crm_integration. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "provider": {
                "enum": [
                  "kommo",
                  "hubspot"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_crm_integration_logs",
          "title": "CRM integration sync log",
          "description": "Recent sync events (contact/lead created, errors) of the caller's own Kommo/HubSpot connection. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              },
              "provider": {
                "enum": [
                  "kommo",
                  "hubspot"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "save_kommo_credentials",
          "title": "Save Kommo app credentials",
          "description": "Kommo private integration step 1: store the Integration ID (UUID) and Secret key of the Vendo app the client created in their Kommo account. The secret is never echoed back. Returns the redirect_uri to paste into Kommo. Then connect_crm_integration provider=kommo.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "client_id",
              "client_secret"
            ],
            "properties": {
              "client_id": {
                "type": "string",
                "description": "Kommo Integration ID (UUID)"
              },
              "client_secret": {
                "type": "string",
                "description": "Kommo Secret key"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "connect_crm_integration",
          "title": "Start connecting Kommo / HubSpot (OAuth)",
          "description": "Returns an authorization URL a HUMAN must open in a browser (logged in to Kommo/HubSpot) and approve within 20 minutes; the connection completes server-side. Give the URL to the user, then poll get_crm_integration. Kommo needs save_kommo_credentials first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "provider": {
                "enum": [
                  "kommo",
                  "hubspot"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_crm_integration_settings",
          "title": "Update CRM integration settings",
          "description": "What to sync and where: sync_conversations, sync_contacts, create_leads, auto_sync, pipeline_config (Kommo pipeline_id / stage_id / responsible_user_id from list_kommo_pipelines / list_kommo_users), field_mapping. Affects what is written into the external CRM — confirm with the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "provider": {
                "enum": [
                  "kommo",
                  "hubspot"
                ],
                "type": "string"
              },
              "auto_sync": {
                "type": "boolean"
              },
              "create_leads": {
                "type": "boolean"
              },
              "field_mapping": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "sync_contacts": {
                "type": "boolean"
              },
              "pipeline_config": {
                "type": "object",
                "properties": {
                  "stage_id": {
                    "type": "string"
                  },
                  "pipeline_id": {
                    "type": "string"
                  },
                  "responsible_user_id": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sync_conversations": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "list_kommo_pipelines",
          "title": "List Kommo pipelines",
          "description": "Pipelines and their statuses (stages) in the connected Kommo account — values for pipeline_config. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "list_kommo_users",
          "title": "List Kommo users",
          "description": "Users of the connected Kommo account — values for pipeline_config.responsible_user_id. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "preview_disconnect_crm_integration",
          "title": "Preview disconnecting a CRM (dry-run)",
          "description": "Dry-run: shows which connection would be removed. Changes nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "provider": {
                "enum": [
                  "kommo",
                  "hubspot"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "disconnect_crm_integration",
          "title": "Disconnect a CRM integration",
          "description": "Remove the Kommo/HubSpot connection: syncing stops, tokens and settings are deleted; reconnecting needs OAuth again. Only call after the user approved preview_disconnect_crm_integration.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "provider"
            ],
            "properties": {
              "provider": {
                "enum": [
                  "kommo",
                  "hubspot"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_workspace",
          "title": "Get workspace, members and invitations",
          "description": "Workspace name/owner, members (user_id, email, name, role, feature permissions), pending invitations, and whether the caller is admin/owner. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "preview_invite_workspace_member",
          "title": "Preview inviting a teammate (dry-run)",
          "description": "Dry-run: checks whether the email can be invited (caller is admin, not already a member, no pending invite). Sends nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email"
            ],
            "properties": {
              "email": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "invite_workspace_member",
          "title": "Invite a teammate (sends an email)",
          "description": "Sends a REAL invitation email (link valid 7 days). Admins only. Only call after the user approved preview_invite_workspace_member.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "email"
            ],
            "properties": {
              "email": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "cancel_workspace_invitation",
          "title": "Cancel a pending invitation",
          "description": "Cancel a pending invitation (its link stops working). Admins only. Invitation ids come from get_workspace.pendingInvitations.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Invitation id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_workspace_member_permissions",
          "title": "Set a member's feature access",
          "description": "Restrict what a (non-admin) member sees: an allow-list of features, or null for full access. \"crm-contact-details\" controls whether they see lead emails/phones. Admins only; the owner and admins cannot be restricted.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "user_id",
              "permissions"
            ],
            "properties": {
              "user_id": {
                "type": "string",
                "description": "Member user_id from get_workspace"
              },
              "permissions": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "dashboard",
                        "my-agents",
                        "sales-process",
                        "vendo-sdr",
                        "audiences",
                        "crm",
                        "analytics",
                        "billing",
                        "settings",
                        "crm-contact-details"
                      ],
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Allowed features, or null = full access"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_set_workspace_member_role",
          "title": "Preview promoting/demoting an admin (dry-run)",
          "description": "Dry-run of set_workspace_member_role. Changes nothing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "user_id",
              "admin"
            ],
            "properties": {
              "admin": {
                "type": "boolean"
              },
              "user_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_workspace_member_role",
          "title": "Promote / demote a workspace admin",
          "description": "admin=true makes the member an admin (full access, can manage team and pipelines); false demotes to member. Owner only. Only call after the user approved preview_set_workspace_member_role.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "user_id",
              "admin"
            ],
            "properties": {
              "admin": {
                "type": "boolean"
              },
              "user_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preview_remove_workspace_member",
          "title": "Preview removing a teammate (dry-run)",
          "description": "Dry-run: shows who would lose access. Changes nothing. ALWAYS call before remove_workspace_member.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "user_id"
            ],
            "properties": {
              "user_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "remove_workspace_member",
          "title": "Remove a teammate",
          "description": "Remove a member: they immediately lose access to this workspace (their account gets its own empty workspace). Re-adding needs a new invitation. Admins only. Only call after the user approved preview_remove_workspace_member.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "user_id"
            ],
            "properties": {
              "user_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_profile",
          "title": "Get my profile",
          "description": "The API key owner's profile: name, email, company, position, avatar. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "update_profile",
          "title": "Update my profile",
          "description": "Change first_name, last_name, company_name, position of the API key owner. (Email, password and 2FA are UI-only.)",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "position": {
                "type": "string",
                "maxLength": 200
              },
              "last_name": {
                "type": "string",
                "maxLength": 100
              },
              "first_name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              "company_name": {
                "type": "string",
                "maxLength": 200
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "set_profile_avatar",
          "title": "Set my profile photo",
          "description": "Upload a JPG/PNG/GIF (≤5 MB) as the profile photo, from an https URL or base64.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "filename": {
                "type": "string",
                "description": "e.g. me.png (required with content_base64)"
              },
              "image_url": {
                "type": "string",
                "description": "Public https image URL"
              },
              "content_base64": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_notification_preferences",
          "title": "Get my notification preferences",
          "description": "Personal email/in-app preferences: email_notifications, in_app_notifications, meeting_reminders, credit_alerts, analytics_emails_enabled. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "update_notification_preferences",
          "title": "Update my notification preferences",
          "description": "Turn personal notifications on/off. Turning them off means the human stops being alerted (e.g. low credits, meetings) — confirm with the user first.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "credit_alerts": {
                "type": "boolean"
              },
              "meeting_reminders": {
                "type": "boolean"
              },
              "email_notifications": {
                "type": "boolean"
              },
              "in_app_notifications": {
                "type": "boolean"
              },
              "analytics_emails_enabled": {
                "type": "boolean",
                "description": "Periodic analytics report emails"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_referral_overview",
          "title": "Referral program overview",
          "description": "Commission %, minimum payout, totals (visits, signups, paying customers, revenue, earned, paid out, available), every referral link with its stats, and payout request statuses. Payout requests themselves can only be made in the app. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "list_referred_users",
          "title": "List referred users",
          "description": "People who signed up through the caller's referral links (masked email, link, signup date, free/paying, revenue and commission). Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "create_referral_link",
          "title": "Create a referral link",
          "description": "Create a new tracked referral link (max 20 active). Returns code and url.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "label": {
                "type": "string",
                "maxLength": 80,
                "description": "Where you will share it, e.g. \"LinkedIn post\""
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "update_referral_link",
          "title": "Rename / archive a referral link",
          "description": "Change a link label or archive it (archived links stop attributing new signups; archived=false restores).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Referral link id (UUID)"
              },
              "label": {
                "type": "string",
                "maxLength": 80
              },
              "archived": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_referral_share_card",
          "title": "Referral share card data",
          "description": "Everything needed to render the share card / QR for a link: url (QR payload), short url, headline and description texts. Render the QR image yourself. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "Referral link id (UUID)"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_analytics_agents",
          "title": "Agents analytics (page /analytics/agents)",
          "description": "All metrics of the workspace's agents for a UTC date range (default: the page default), optionally one agent: totals, rates, daily series, funnel (widget loads → opens → conversations → contacts → leads), by agent / channel, leads by source, recent leads, credits by type, languages, pages, traffic sources, hours, durations, previous-period comparison. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "to": {
                "type": "string",
                "description": "YYYY-MM-DD"
              },
              "from": {
                "type": "string",
                "description": "YYYY-MM-DD"
              },
              "agent_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_analytics_sdr",
          "title": "SDR & outreach analytics (page /analytics/sdr)",
          "description": "Outreach analytics for a UTC date range across Vendo SDR and classic campaigns, or narrowed to one SDR search (search_id) or one campaign (campaign_id) — never both: totals, rates, daily series, delivery (sent/delivered/bounced/inbox placement), by product / source / type, contacts by source, enrichment, funnel, per-process rows. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "to": {
                "type": "string",
                "description": "YYYY-MM-DD"
              },
              "from": {
                "type": "string",
                "description": "YYYY-MM-DD"
              },
              "search_id": {
                "type": "string"
              },
              "campaign_id": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_planner_events",
          "title": "Planner: sending windows per day",
          "description": "The planner layer of the calendar page: campaign and SDR sending windows per day and channel (paused flag, planned today, sent today) with campaign/search info, for an ISO date range (wide ranges are capped; `range` says what was materialised). CRM events: crm_list_calendar_events. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "from",
              "to"
            ],
            "properties": {
              "to": {
                "type": "string",
                "description": "ISO date"
              },
              "from": {
                "type": "string",
                "description": "ISO date"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_supported_currencies",
          "title": "Supported billing currencies",
          "description": "Currencies Vendo bills in (code, symbol, name) and the account's own billing currency. Read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "sdr_list_hunters",
          "title": "List all SDR hunters (sources)",
          "description": "Read-only. The 24 hunter sources a search can run, with UI name, what each looks at, opt-in/paid-engine/LinkedIn-budget flags, whether it can be run by hand, and which search fields it reads. Use to map a hunter the user names (\"Competitor Switching\") to its id (g2_reviews) before sdr_set_hunters / sdr_configure_hunter / sdr_run_now. Hunters are not billed per run; each buying signal that fits the ICP costs 1 credit and each usable contact 5 credits (2 and 10 from hunters on paid data).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "sdr_find_cities",
          "title": "Find cities for an SDR search",
          "description": "Read-only. Main cities of the given countries (no q), or a name search (q ≥ 2 Latin letters). Use the returned objects as target_cities in sdr_create_search / sdr_update_search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "countries"
            ],
            "properties": {
              "q": {
                "type": "string"
              },
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Per country without q (max 30); total with q (max 50)"
              },
              "countries": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 40,
                "minItems": 1,
                "description": "ISO-2 or CC:SUB codes, e.g. ['GB','US:FL']"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_overview",
          "title": "SDR processes overview",
          "description": "Read-only. Every SDR search of the workspace with signals (7/30 days), contacts, hot companies, hunter health (running/cooling/paused) and outreach, plus workspace totals and a daily series — the /vendo-sdr list page.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 60,
                "minimum": 7,
                "description": "Daily series length, default 14"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_start_research",
          "title": "Preview: research a company website for a new SDR",
          "description": "Dry run of the New SDR wizard's first steps. Tells whether a company profile for this website already exists (reused, 0 credits) or must be built (deep website scan 15 + outreach playbook 1 = 16 credits), and whether a recent ICP research (< 24 h) would be reused. Nothing is created. Always call before sdr_start_research and show the cost.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "company_name",
              "website"
            ],
            "properties": {
              "force": {
                "type": "boolean",
                "description": "Run a fresh research even if a recent one exists"
              },
              "website": {
                "type": "string",
                "description": "Domain or URL, e.g. acme.com"
              },
              "company_name": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_start_research",
          "title": "Research a company website (New SDR wizard)",
          "description": "Starts the New SDR wizard for a company + website, exactly like the web app: reuses the company profile for the same domain or builds a hidden one (website deep scan, playbook; 16 credits), then runs the ICP research (1–3 min, not billed). Returns agent_id and either the research job or a setup state. Poll sdr_get_research until the job status is done, then call sdr_create_search with research_job_id. Only call after the user approved sdr_preview_start_research.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "company_name",
              "website"
            ],
            "properties": {
              "force": {
                "type": "boolean"
              },
              "website": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_get_research",
          "title": "Poll an SDR ICP research",
          "description": "Read-only. Pass job_id (from sdr_start_research / a previous poll) or agent_id (while the company profile is still being built, or to get the latest research of a company). Returns status (queued/running/done/error), stages, events and, when done, the result: company dossier and the editable profile (search name, offer, ICP, decision roles, regions, keywords, LinkedIn queries, competitor pages, hunter plan). Poll every 5–10 s.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "job_id": {
                "type": "string",
                "format": "uuid"
              },
              "agent_id": {
                "$ref": "#/properties/job_id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_get_research_audience",
          "title": "First buyers found by an ICP research",
          "description": "Read-only. The instant audience of a finished research: up to ~20 matching people from the Vendo database with company, position, country, LinkedIn, email and why they fit — the wizard's \"buyers already found\" cards. refresh=true rebuilds it (slower).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "job_id"
            ],
            "properties": {
              "job_id": {
                "type": "string",
                "format": "uuid"
              },
              "refresh": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_materialize_research",
          "title": "Copy a research's instant audience into a search",
          "description": "Copies the instant audience of a finished research into a search as contacts (background, idempotent, filtered by the search's regions/cities). sdr_create_search with research_job_id already does this after activation; use this only to repeat it. Contacts are billed (5 credits each, 10 from hunters on paid data) like any other contact when used.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "job_id",
              "search_id"
            ],
            "properties": {
              "job_id": {
                "type": "string",
                "format": "uuid"
              },
              "search_id": {
                "$ref": "#/properties/job_id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_create_search",
          "title": "Create an SDR search (Create & Start)",
          "description": "Creates an SDR search like the wizard's \"Create & Start\". Preferred: research_job_id from a finished sdr_get_research — every field defaults to the research profile, regions to its regions (or HQ country), all 24 hunters on, competitor pages saved, then the search is activated and the research's first buyers are copied in. Legacy: agent_id + name + target_regions (profile generated from the company profile if offer/ICP omitted). start=false creates a draft without hunting. Hunting is not billed per run; each buying signal that fits the ICP costs 1 credit and each usable contact 5 credits (2 and 10 from hunters on paid data). Errors with 409 if an identical search was just created.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "start": {
                "type": "boolean",
                "description": "Activate hunters right away (default true)"
              },
              "agent_id": {
                "$ref": "#/properties/research_job_id",
                "description": "Company profile id (legacy path, or must match the research's)"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Outreach languages; written into icp_summary"
              },
              "icp_summary": {
                "type": "string",
                "description": "\"Who buys\". The decision-makers sentence and company-size line are added automatically."
              },
              "company_size": {
                "type": "string",
                "description": "e.g. \"11–50 employees\"; written into icp_summary as \"Preferred company size: …\""
              },
              "offer_summary": {
                "type": "string",
                "description": "\"What you sell\""
              },
              "target_cities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "country",
                    "name"
                  ],
                  "properties": {
                    "lat": {
                      "type": "number"
                    },
                    "lng": {
                      "type": "number"
                    },
                    "name": {
                      "type": "string"
                    },
                    "admin1": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string",
                      "maxLength": 2,
                      "minLength": 2,
                      "description": "ISO-2 country code; must be one of target_regions"
                    },
                    "admin1_code": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "description": "Optional cities inside target_regions (use sdr_find_cities). Empty = whole countries."
              },
              "decision_roles": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20,
                "description": "Decision-maker job titles; used by Decision-maker matching and Website profile hunters"
              },
              "signal_weights": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "target_regions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "ISO-2 countries or US states as CC:SUB, e.g. ['GB','US:FL']. At least one."
              },
              "enabled_sources": {
                "type": "array",
                "items": {
                  "enum": [
                    "linkedin_jobs",
                    "linkedin_company",
                    "linkedin_activity",
                    "ai_web_hunter",
                    "social_signal_hunter",
                    "crunchbase_rss",
                    "hn_hiring",
                    "g2_reviews",
                    "tech_stack",
                    "connected_people",
                    "email_enricher",
                    "linkedin_engagement",
                    "linkedin_job_change",
                    "linkedin_competitor_followers",
                    "cross_pool",
                    "people_pool",
                    "github_issues",
                    "adzuna_jobs",
                    "corporate_registries",
                    "web_news_radar",
                    "web_pulse_hunter",
                    "google_places",
                    "web_profile",
                    "local_listings"
                  ],
                  "type": "string",
                  "description": "Hunter source id (see sdr_list_hunters)"
                },
                "description": "Hunters to run. Omitted on create = all 24, exactly like the web wizard (includes paid engines and opt-in hunters)."
              },
              "relevant_topics": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "research_job_id": {
                "type": "string",
                "format": "uuid"
              },
              "competitor_pages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 30,
                "description": "Competitor LinkedIn page URLs (Competitor Engagement and Competitor Switching hunters)"
              },
              "exclude_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "generation_model": {
                "type": "string"
              },
              "industry_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "generation_reasoning": {
                "type": "string"
              },
              "linkedin_search_queries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "query"
                  ],
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "rationale": {
                      "type": "string"
                    },
                    "location_hint": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_update_search",
          "title": "Edit an SDR search",
          "description": "The wizard's Edit → \"Save changes\": name, hunters, regions, cities, offer, ICP, decision-makers, company size, keywords, exclusions, LinkedIn queries, competitor pages, hot threshold. Partial updates; status is not touched (an active search keeps hunting with the new profile). Status changes only via sdr_activate_search / sdr_pause_search / sdr_resume_search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "icp_summary": {
                "type": "string",
                "description": "\"Who buys\". The decision-makers sentence and company-size line are added automatically."
              },
              "company_size": {
                "type": "string",
                "description": "e.g. \"11–50 employees\"; written into icp_summary as \"Preferred company size: …\""
              },
              "hot_threshold": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              "offer_summary": {
                "type": "string",
                "description": "\"What you sell\""
              },
              "target_cities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "country",
                    "name"
                  ],
                  "properties": {
                    "lat": {
                      "type": "number"
                    },
                    "lng": {
                      "type": "number"
                    },
                    "name": {
                      "type": "string"
                    },
                    "admin1": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string",
                      "maxLength": 2,
                      "minLength": 2,
                      "description": "ISO-2 country code; must be one of target_regions"
                    },
                    "admin1_code": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "description": "Optional cities inside target_regions (use sdr_find_cities). Empty = whole countries."
              },
              "decision_roles": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 20,
                "description": "Decision-maker job titles; used by Decision-maker matching and Website profile hunters"
              },
              "signal_weights": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "target_regions": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "ISO-2 countries or US states as CC:SUB, e.g. ['GB','US:FL']. At least one."
              },
              "enabled_sources": {
                "type": "array",
                "items": {
                  "enum": [
                    "linkedin_jobs",
                    "linkedin_company",
                    "linkedin_activity",
                    "ai_web_hunter",
                    "social_signal_hunter",
                    "crunchbase_rss",
                    "hn_hiring",
                    "g2_reviews",
                    "tech_stack",
                    "connected_people",
                    "email_enricher",
                    "linkedin_engagement",
                    "linkedin_job_change",
                    "linkedin_competitor_followers",
                    "cross_pool",
                    "people_pool",
                    "github_issues",
                    "adzuna_jobs",
                    "corporate_registries",
                    "web_news_radar",
                    "web_pulse_hunter",
                    "google_places",
                    "web_profile",
                    "local_listings"
                  ],
                  "type": "string",
                  "description": "Hunter source id (see sdr_list_hunters)"
                },
                "description": "Hunters to run. Omitted on create = all 24, exactly like the web wizard (includes paid engines and opt-in hunters)."
              },
              "relevant_topics": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "competitor_pages": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 30,
                "description": "Competitor LinkedIn page URLs (Competitor Engagement and Competitor Switching hunters)"
              },
              "exclude_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "industry_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "linkedin_search_queries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "query"
                  ],
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "rationale": {
                      "type": "string"
                    },
                    "location_hint": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_pause_search",
          "title": "Pause an SDR process",
          "description": "Pauses the whole SDR process: every hunter AND all outreach sending (email and LinkedIn). Data is kept. Reversible with sdr_resume_search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_resume_search",
          "title": "Resume an SDR process",
          "description": "Resumes a paused SDR process: hunters restart and outreach that was paused together with the search resumes (outreach you paused separately stays paused).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_delete_search",
          "title": "Preview deleting an SDR process",
          "description": "Dry run. Shows the process, how many contacts and signals would be lost and the outreach campaign status. Nothing is deleted. Call before sdr_delete_search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_delete_search",
          "title": "Delete an SDR process (irreversible)",
          "description": "Deletes the SDR process and ALL its data: hunters stop, the outreach campaign is stopped and deleted, signals, contacts, hunter state, QA runs and learning weights are removed. Not reversible, no refund. Only after the user approved sdr_preview_delete_search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_search_hunters",
          "title": "Hunters of one SDR search",
          "description": "Read-only. Every hunter for a search: enabled or not, live run state, signals in 30 days, 7-day sparkline, and the current values of the settings it reads. The search page's hunter stations.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_set_hunters",
          "title": "Switch hunters on/off for a search",
          "description": "Enables/disables hunters (the wizard's Hunters step). Pass enable/disable lists, or enabled_sources as the full list. On an active search new hunters start within ~10 min (budget-throttled ones ~30); disabled ones stop at their next cycle. To stop one immediately without disabling it use sdr_pause_hunter.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "enable": {
                "type": "array",
                "items": {
                  "enum": [
                    "linkedin_jobs",
                    "linkedin_company",
                    "linkedin_activity",
                    "ai_web_hunter",
                    "social_signal_hunter",
                    "crunchbase_rss",
                    "hn_hiring",
                    "g2_reviews",
                    "tech_stack",
                    "connected_people",
                    "email_enricher",
                    "linkedin_engagement",
                    "linkedin_job_change",
                    "linkedin_competitor_followers",
                    "cross_pool",
                    "people_pool",
                    "github_issues",
                    "adzuna_jobs",
                    "corporate_registries",
                    "web_news_radar",
                    "web_pulse_hunter",
                    "google_places",
                    "web_profile",
                    "local_listings"
                  ],
                  "type": "string",
                  "description": "Hunter source id (see sdr_list_hunters)"
                }
              },
              "disable": {
                "type": "array",
                "items": {
                  "$ref": "#/properties/enable/items"
                }
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "enabled_sources": {
                "type": "array",
                "items": {
                  "$ref": "#/properties/enable/items"
                }
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_hunter_detail",
          "title": "Hunter detail page",
          "description": "Read-only. One hunter of a search: run state, signals in 30 days, signals & contacts per day (days 2–60, default 14), the contacts it found (incl. pending/phone-only), and its settings.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "source"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 60,
                "minimum": 2
              },
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "cross_pool",
                  "people_pool",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id (see sdr_list_hunters)"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "contacts_limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_configure_hunter",
          "title": "Configure one hunter",
          "description": "Turns one hunter on/off and/or sets the search fields it reads (only those listed in its inputs): competitor_pages (Competitor Engagement/Switching), target_cities (local business hunters, email discovery), decision_roles (Decision-maker matching, Website profile), linkedin_search_queries (LinkedIn hiring), industry_keywords / exclude_keywords / relevant_topics. Settings are search-wide.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "source"
            ],
            "properties": {
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "cross_pool",
                  "people_pool",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id (see sdr_list_hunters)"
              },
              "enabled": {
                "type": "boolean"
              },
              "settings": {
                "type": "object",
                "properties": {
                  "target_cities": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "country",
                        "name"
                      ],
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        },
                        "name": {
                          "type": "string"
                        },
                        "admin1": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string",
                          "maxLength": 2,
                          "minLength": 2,
                          "description": "ISO-2 country code; must be one of target_regions"
                        },
                        "admin1_code": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100,
                    "description": "Optional cities inside target_regions (use sdr_find_cities). Empty = whole countries."
                  },
                  "decision_roles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 20,
                    "description": "Decision-maker job titles; used by Decision-maker matching and Website profile hunters"
                  },
                  "relevant_topics": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "competitor_pages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 30,
                    "description": "Competitor LinkedIn page URLs (Competitor Engagement and Competitor Switching hunters)"
                  },
                  "exclude_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "industry_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "linkedin_search_queries": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "query"
                      ],
                      "properties": {
                        "query": {
                          "type": "string"
                        },
                        "rationale": {
                          "type": "string"
                        },
                        "location_hint": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  }
                },
                "additionalProperties": false
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_hunter_daily",
          "title": "Signals & contacts per day for one hunter",
          "description": "Read-only. The hunter page chart: signals and contacts per day for one hunter (days 2–60, default 14).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "source"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 60,
                "minimum": 2
              },
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "cross_pool",
                  "people_pool",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id (see sdr_list_hunters)"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_daily_by_hunter",
          "title": "Signals per day per hunter",
          "description": "Read-only. Station sparklines: signals per day for every hunter of a search (days 2–60, default 14).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 60,
                "minimum": 2
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_pause_hunter",
          "title": "Pause ONE hunter",
          "description": "Pauses one hunter of a search; the others keep running. Reversible with sdr_resume_hunter.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "source"
            ],
            "properties": {
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "cross_pool",
                  "people_pool",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id (see sdr_list_hunters)"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_resume_hunter",
          "title": "Resume ONE hunter",
          "description": "Resumes one paused hunter of a search.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "source"
            ],
            "properties": {
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "cross_pool",
                  "people_pool",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id (see sdr_list_hunters)"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_run_now",
          "title": "Preview running hunters now",
          "description": "Dry run of the hunter \"Run\" button. Lists which hunters would run (one source, or every enabled runnable hunter when omitted), flags paid engines and LinkedIn-budget hunters. Nothing runs.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id; cross_pool and people_pool run automatically and cannot be started by hand"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_run_now",
          "title": "Run hunters now",
          "description": "Starts (or wakes, if already running) one hunter or every enabled runnable hunter of a search. Paid engines use Vendo's provider budget, LinkedIn hunters the LinkedIn budget; signals that fit cost 1 credit and contacts found 5 credits each (2 and 10 from hunters on paid data). Call after sdr_preview_run_now.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id; cross_pool and people_pool run automatically and cannot be started by hand"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_run_state",
          "title": "Primary run state of a search",
          "description": "Read-only. Overall run state of a search (running / paused / idle) with the current action.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_signal_stats",
          "title": "Signal stats by hunter",
          "description": "Read-only. KPI cards: fresh signals, signals and contacts by source over the last N days (1–90, default 30).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "days": {
                "type": "integer",
                "maximum": 90,
                "minimum": 1
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_events",
          "title": "Live hunter events (polling)",
          "description": "Read-only. What the hunters are doing right now (queries, companies resolved, signals saved, contacts found). Pass since = next_since of the previous call to get only new events. Best effort: last 150 events per search, lost on restart.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              },
              "since": {
                "type": "string",
                "description": "ISO timestamp"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_recent_signals",
          "title": "Recent signals",
          "description": "Read-only. Latest signals of one search (search_id) or merged across all searches of the workspace.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_company_heat",
          "title": "Hot companies",
          "description": "Read-only. Companies ranked by live signal heat, with ICP fit, signal types and contact status. One search (search_id, pages via offset up to any depth) or all searches merged (first 500 rows, offset + limit ≤ 500).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_company_detail",
          "title": "Hot company popup",
          "description": "Read-only. One company of a search: company card (website, size, location, links), decision-makers found with fit, other known people at the company and its live signals. part=card returns only the card and people pool (slower source, up to 20 s).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "company_id"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "part": {
                "enum": [
                  "full",
                  "card"
                ],
                "type": "string"
              },
              "domain": {
                "type": "string"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "company_id": {
                "type": "string",
                "format": "uuid",
                "description": "company_id from sdr_company_heat"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_export_companies_csv",
          "title": "Export companies CSV",
          "description": "Read-only. CSV of every company the search found: Company, Domain, Heat, ICP fit, Signal count, Signal types, Contact status, Contacts found.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_learning_insights",
          "title": "Signal Learning insights",
          "description": "Read-only. Learned weight per signal type and conversion from real outreach outcomes, for one search or per search across the workspace.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_icp_qa_run",
          "title": "ICP check now",
          "description": "People page \"Check now\": classifies unchecked contacts of a search as Fit / Uncertain / Not a fit (AI, not billed) and may suggest keyword changes. Returns the run, or null when nothing is unchecked.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_icp_qa_history",
          "title": "ICP check history",
          "description": "Read-only. Past ICP-QA runs (checked, fits, uncertain, unfit, quality %, keyword changes) and whether keyword auto-correction is on.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_icp_qa_rollback",
          "title": "Roll keywords back to a QA run",
          "description": "Restores the search's industry_keywords to the snapshot taken before the given ICP-QA run (undo an auto-correction).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "run_id"
            ],
            "properties": {
              "run_id": {
                "$ref": "#/properties/search_id"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_icp_qa_autocorrect",
          "title": "Keyword auto-correction on/off",
          "description": "Lets the ICP check rewrite the search's industry keywords automatically (default off).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "enabled"
            ],
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_icp_review",
          "title": "ICP Review panel",
          "description": "Read-only. Uncertain contacts waiting for re-check, last run results, totals and next scheduled run.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_icp_review_run",
          "title": "Re-check Uncertain contacts now",
          "description": "ICP Review \"Re-check now\": re-judges this search's Uncertain contacts (bounded per run, one run at a time). Contacts moved to Fit become billable (5 credits, 10 from hunters on paid data) when used.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_list_personas",
          "title": "List SDR contacts",
          "description": "Read-only. Contacts of a search, newest first. Filters: group (fits/uncertain/unfit/unchecked), source (contacts of one hunter, incl. pending/phone-only), company, role, min_relevance; paging up to 200.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "role": {
                "type": "string"
              },
              "group": {
                "enum": [
                  "fits",
                  "uncertain",
                  "unfit",
                  "unchecked"
                ],
                "type": "string"
              },
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "source": {
                "enum": [
                  "linkedin_jobs",
                  "linkedin_company",
                  "linkedin_activity",
                  "ai_web_hunter",
                  "social_signal_hunter",
                  "crunchbase_rss",
                  "hn_hiring",
                  "g2_reviews",
                  "tech_stack",
                  "connected_people",
                  "email_enricher",
                  "linkedin_engagement",
                  "linkedin_job_change",
                  "linkedin_competitor_followers",
                  "cross_pool",
                  "people_pool",
                  "github_issues",
                  "adzuna_jobs",
                  "corporate_registries",
                  "web_news_radar",
                  "web_pulse_hunter",
                  "google_places",
                  "web_profile",
                  "local_listings"
                ],
                "type": "string",
                "description": "Hunter source id (see sdr_list_hunters)"
              },
              "company": {
                "type": "string"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "min_relevance": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_persona_stats",
          "title": "SDR contact stats",
          "description": "Read-only. Contact totals, by role, top companies, daily series (7, 14 or 28 days), credits spent.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "days": {
                "enum": [
                  7,
                  14,
                  28
                ],
                "type": "number"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_people_group_counts",
          "title": "Fit / Uncertain / Not a fit counts",
          "description": "Read-only. How many contacts are Fit, Uncertain, Not a fit and unchecked. only_with_email=false counts email-or-LinkedIn reachable contacts (what outreach \"Who to contact\" uses). Use before choosing icp_segment.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "only_with_email": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_get_person_detail",
          "title": "Why was this person picked?",
          "description": "Read-only. Provenance of one contact: hunter, query, triggering signal, scores and the reasoning chain. Needs the search_id the contact belongs to.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "search_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "description": "Contact id"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_set_person_group",
          "title": "Preview moving a contact between groups",
          "description": "Dry run. Shows the move and whether it costs credits: moving a contact the ICP check left free to Fit charges 5 credits (10 from hunters on paid data).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "search_id",
              "group"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "group": {
                "enum": [
                  "fits",
                  "uncertain",
                  "unfit"
                ],
                "type": "string"
              },
              "search_id": {
                "$ref": "#/properties/id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_set_person_group",
          "title": "Move a contact to Fit / Uncertain / Not a fit",
          "description": "Overrides the ICP verdict for one contact. Moving a free (precheck-skipped) contact to Fit charges 5 credits, 10 from hunters on paid data (402 if the balance is too low). Call sdr_preview_set_person_group first when moving to fits.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "search_id",
              "group"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "group": {
                "enum": [
                  "fits",
                  "uncertain",
                  "unfit"
                ],
                "type": "string"
              },
              "search_id": {
                "$ref": "#/properties/id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_delete_person",
          "title": "Preview removing a contact",
          "description": "Dry run. Shows the contact that would be removed. Nothing changes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "search_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "search_id": {
                "$ref": "#/properties/id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_delete_person",
          "title": "Remove a contact (no restore)",
          "description": "Removes one contact from the search: hidden from lists, counts, exports and outreach. No restore, no refund. Only after sdr_preview_delete_person was approved.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "search_id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "search_id": {
                "$ref": "#/properties/id"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_bulk_delete_people",
          "title": "Preview removing several contacts",
          "description": "Dry run of multi-select delete: checks every id belongs to the search and counts them by group.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "ids"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "items": {
                  "$ref": "#/properties/search_id"
                },
                "maxItems": 500,
                "minItems": 1
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_bulk_delete_people",
          "title": "Remove several contacts (no restore)",
          "description": "Removes up to 500 contacts of one search. No restore. Only after sdr_preview_bulk_delete_people was approved.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "ids"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "items": {
                  "$ref": "#/properties/search_id"
                },
                "maxItems": 500,
                "minItems": 1
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_export_personas_to_audience",
          "title": "Export SDR contacts to an audience",
          "description": "Creates a custom audience from a search's contacts with an email (segment fit by default, optional roles or explicit ids). No credits. The audience can then be used in any campaign.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "name"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "items": {
                  "$ref": "#/properties/search_id"
                }
              },
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Name of the new audience"
              },
              "roles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "fit_segment": {
                "enum": [
                  "fit",
                  "fit_uncertain",
                  "all",
                  "uncertain",
                  "unfit",
                  "unchecked"
                ],
                "type": "string"
              },
              "only_with_email": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_save_outreach_settings",
          "title": "Save SDR outreach settings (no launch)",
          "description": "Outreach window 1 \"Save\": Who to contact (icp_segment), channels, email sender mode/provider, LinkedIn accounts, time zone, working hours, weekends, daily limits, CRM branch. Partial: missing fields keep their saved values. Never launches: a new process stays a draft; a running one keeps its status and applies the change at once (widening Who to contact on a running process queues more contacts at 5 credits each, 10 from hunters on paid data). Set dry_run=true to preview.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "dry_run": {
                "type": "boolean"
              },
              "channels": {
                "type": "array",
                "items": {
                  "enum": [
                    "email",
                    "linkedin"
                  ],
                  "type": "string"
                }
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone, e.g. Europe/London"
              },
              "branch_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "CRM branch for replies: a branch id from crm_list_branches, or null/'general' for General"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "icp_segment": {
                "enum": [
                  "fit",
                  "fit_uncertain",
                  "all",
                  "uncertain",
                  "unfit",
                  "unchecked"
                ],
                "type": "string",
                "description": "Who to contact: fit (Fit + unchecked, default), fit_uncertain, all; legacy: uncertain, unfit, unchecked"
              },
              "work_end_hour": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "work_start_hour": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "exclude_weekends": {
                "type": "boolean"
              },
              "daily_email_limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              },
              "email_sender_mode": {
                "enum": [
                  "managed",
                  "client_owned"
                ],
                "type": "string",
                "description": "managed = Vendo sender pool (paid plans only); client_owned = the workspace's own connected mailboxes"
              },
              "daily_linkedin_limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              },
              "client_email_provider": {
                "anyOf": [
                  {
                    "enum": [
                      "google",
                      "microsoft"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "selected_linkedin_account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Ids from sdr_get_outreach → linkedin_accounts; empty = every connected account in status OK"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_update_outreach_content",
          "title": "Edit SDR outreach messages",
          "description": "Outreach windows 2–3: email (mode ai/fixed/html, prompt, tone, ≤5 fixed variants with {{placeholders}}, per-step follow-ups, own-HTML steps, signature, auto-reply) and LinkedIn (invite on/off, ai/exact texts, follow-up, delay after accept, conversation rules, auto-reply delays, signature, Calendly). Partial; takes effect on new sends. Follow-up changes are blocked while an email sequence is already sending.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "email": {
                "type": "object",
                "properties": {
                  "mode": {
                    "enum": [
                      "ai",
                      "fixed",
                      "html"
                    ],
                    "type": "string",
                    "description": "ai = model writes each email from prompt; fixed = variants; html = html_steps"
                  },
                  "tone": {
                    "enum": [
                      "formal",
                      "casual",
                      "friendly"
                    ],
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "variants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "subject",
                        "body"
                      ],
                      "properties": {
                        "body": {
                          "type": "string"
                        },
                        "subject": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 5,
                    "description": "Fixed texts, rotated per recipient. Placeholders: {{first_name}} {{last_name}} {{full_name}} {{company_name}} {{position}} {{city}} {{country}}"
                  },
                  "followups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "delay_days"
                      ],
                      "properties": {
                        "body": {
                          "type": "string"
                        },
                        "prompt": {
                          "type": "string"
                        },
                        "subject": {
                          "type": "string"
                        },
                        "delay_days": {
                          "type": "integer",
                          "maximum": 90,
                          "minimum": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 7,
                    "description": "Per-step follow-ups; delay counts from the previous email"
                  },
                  "html_steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "subject",
                        "html"
                      ],
                      "properties": {
                        "html": {
                          "type": "string"
                        },
                        "subject": {
                          "type": "string"
                        },
                        "delay_days": {
                          "type": "integer"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20
                  },
                  "max_followups": {
                    "type": "integer",
                    "maximum": 7,
                    "minimum": 0
                  },
                  "signature_mode": {
                    "enum": [
                      "fixed",
                      "sender"
                    ],
                    "type": "string",
                    "description": "fixed (default) = signature_text baked into the body; sender = the sending mailbox's own Smartlead signature is appended at send time"
                  },
                  "signature_text": {
                    "type": "string"
                  },
                  "followups_enabled": {
                    "type": "boolean"
                  },
                  "signature_enabled": {
                    "type": "boolean"
                  },
                  "auto_reply_enabled": {
                    "type": "boolean"
                  },
                  "followup_interval_days": {
                    "type": "integer",
                    "maximum": 90,
                    "minimum": 1
                  },
                  "validation_note_enabled": {
                    "type": "boolean"
                  },
                  "auto_reply_delay_minutes": {
                    "type": "integer",
                    "maximum": 120,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "linkedin": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Explicit communication language of the campaign (e.g. 'Ukrainian'); unset = auto-detected from the agent script. Replies still follow the contact's language."
                  },
                  "invite_mode": {
                    "enum": [
                      "ai",
                      "exact"
                    ],
                    "type": "string"
                  },
                  "invite_tone": {
                    "enum": [
                      "formal",
                      "casual",
                      "friendly"
                    ],
                    "type": "string"
                  },
                  "calendly_url": {
                    "type": "string"
                  },
                  "followup_cta": {
                    "type": "string"
                  },
                  "followup_mode": {
                    "enum": [
                      "ai",
                      "exact"
                    ],
                    "type": "string"
                  },
                  "followup_tone": {
                    "enum": [
                      "formal",
                      "casual",
                      "friendly"
                    ],
                    "type": "string",
                    "description": "Tone of the AI first message after connect; unset = invite_tone"
                  },
                  "invite_prompt": {
                    "type": "string"
                  },
                  "invite_enabled": {
                    "type": "boolean"
                  },
                  "signature_mode": {
                    "enum": [
                      "first_message",
                      "every_message"
                    ],
                    "type": "string"
                  },
                  "signature_text": {
                    "type": "string"
                  },
                  "followup_prompt": {
                    "type": "string"
                  },
                  "followup_enabled": {
                    "type": "boolean"
                  },
                  "invite_exact_text": {
                    "type": "string"
                  },
                  "signature_enabled": {
                    "type": "boolean"
                  },
                  "auto_reply_enabled": {
                    "type": "boolean"
                  },
                  "conversation_rules": {
                    "type": "string",
                    "maxLength": 3000,
                    "description": "What we want from these conversations: goal, CTA, links. Applied to AI invites, follow-ups and smart replies."
                  },
                  "followup_exact_text": {
                    "type": "string"
                  },
                  "followup_delay_minutes": {
                    "type": "integer",
                    "maximum": 20160,
                    "minimum": 0,
                    "description": "Minutes between accepted invite and first message"
                  },
                  "reply_delay_max_minutes": {
                    "type": "integer",
                    "maximum": 120,
                    "minimum": 1
                  },
                  "reply_delay_min_minutes": {
                    "type": "integer",
                    "maximum": 60,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_preview_launch_outreach",
          "title": "Preview launching SDR outreach",
          "description": "Dry run of \"Save and Launch\". Shows the effective settings (request + saved + defaults), contacts in the chosen segment, ready email/LinkedIn contacts, predicted blockers (no LinkedIn account, no own mailbox), the paid-plan rule for managed senders and the delivery window. Nothing is sent. Always call first and show it to the user.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "channels": {
                "type": "array",
                "items": {
                  "enum": [
                    "email",
                    "linkedin"
                  ],
                  "type": "string"
                }
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone, e.g. Europe/London"
              },
              "branch_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "CRM branch for replies: a branch id from crm_list_branches, or null/'general' for General"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "icp_segment": {
                "enum": [
                  "fit",
                  "fit_uncertain",
                  "all",
                  "uncertain",
                  "unfit",
                  "unchecked"
                ],
                "type": "string",
                "description": "Who to contact: fit (Fit + unchecked, default), fit_uncertain, all; legacy: uncertain, unfit, unchecked"
              },
              "work_end_hour": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "work_start_hour": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "exclude_weekends": {
                "type": "boolean"
              },
              "daily_email_limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              },
              "email_sender_mode": {
                "enum": [
                  "managed",
                  "client_owned"
                ],
                "type": "string",
                "description": "managed = Vendo sender pool (paid plans only); client_owned = the workspace's own connected mailboxes"
              },
              "daily_linkedin_limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              },
              "client_email_provider": {
                "anyOf": [
                  {
                    "enum": [
                      "google",
                      "microsoft"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "selected_linkedin_account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Ids from sdr_get_outreach → linkedin_accounts; empty = every connected account in status OK"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_launch_outreach",
          "title": "Launch SDR outreach (sends real messages)",
          "description": "Launches outreach: real emails and/or LinkedIn invites start in the working window and new contacts keep being picked up. Each newly queued contact costs 5 credits (10 from hunters on paid data). Managed senders need a paid plan; client_owned needs a connected mailbox. Only after the user approved sdr_preview_launch_outreach.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "channels": {
                "type": "array",
                "items": {
                  "enum": [
                    "email",
                    "linkedin"
                  ],
                  "type": "string"
                }
              },
              "timezone": {
                "type": "string",
                "description": "IANA time zone, e.g. Europe/London"
              },
              "branch_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "CRM branch for replies: a branch id from crm_list_branches, or null/'general' for General"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              },
              "icp_segment": {
                "enum": [
                  "fit",
                  "fit_uncertain",
                  "all",
                  "uncertain",
                  "unfit",
                  "unchecked"
                ],
                "type": "string",
                "description": "Who to contact: fit (Fit + unchecked, default), fit_uncertain, all; legacy: uncertain, unfit, unchecked"
              },
              "work_end_hour": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "work_start_hour": {
                "type": "integer",
                "maximum": 23,
                "minimum": 0
              },
              "exclude_weekends": {
                "type": "boolean"
              },
              "daily_email_limit": {
                "type": "integer",
                "maximum": 500,
                "minimum": 1
              },
              "email_sender_mode": {
                "enum": [
                  "managed",
                  "client_owned"
                ],
                "type": "string",
                "description": "managed = Vendo sender pool (paid plans only); client_owned = the workspace's own connected mailboxes"
              },
              "daily_linkedin_limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1
              },
              "client_email_provider": {
                "anyOf": [
                  {
                    "enum": [
                      "google",
                      "microsoft"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "selected_linkedin_account_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Ids from sdr_get_outreach → linkedin_accounts; empty = every connected account in status OK"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_linkedin_connect_link",
          "title": "Get a LinkedIn connect link for SDR outreach",
          "description": "Returns a hosted link where the user connects a LinkedIn account for this SDR's outreach. A human must open it; then pick the account in selected_linkedin_account_ids.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_list_outreach_processes",
          "title": "SDR processes on the Sales Process page",
          "description": "Read-only. SDR outreach processes of the workspace as listed on the Sales Process page (status, channels, counters).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          }
        },
        {
          "name": "sdr_get_autopilot",
          "title": "SDR Autopilot status",
          "description": "Autopilot of one SDR process: on/off, queue gap vs target, and the journal of recent runs with the levers each run pulled (revive sleeping hunters, re-judge uncertain contacts, open a second decision-maker, top up LinkedIn). ON by default for every launched process. Read-only, free.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_set_autopilot",
          "title": "Switch SDR Autopilot on/off",
          "description": "Turn the Autopilot of one SDR process on or off. Off = the queue is topped up only by the hunters' normal flow; nothing else changes.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id",
              "enabled"
            ],
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "sdr_run_autopilot",
          "title": "Run SDR Autopilot now",
          "description": "Trigger one Autopilot pass immediately instead of waiting for the daily schedule. The pass only tops up the queue towards its target (re-judge, revive, second decision-maker); it never launches outreach by itself and charges only the usual per-contact pricing for contacts it adds.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "additionalProperties": false
          }
        }
      ],
      "tools_omitted": 105,
      "resources": [],
      "prompts": []
    },
    "instructions": null
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "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."
}