{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.revdesk.com",
    "site": "revdesk.com",
    "addresses": [
      {
        "address": "216.150.16.193",
        "endpoints": 671,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.16.0/24",
          "country": "US"
        }
      },
      {
        "address": "216.150.1.193",
        "endpoints": 683,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.1.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "216.150.16.193",
          "216.150.1.193"
        ],
        "first_seen": "2026-11-23T19:31:01.463Z",
        "last_seen": "2026-11-23T19:31:01.463Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.150.1.1",
          "216.150.16.129"
        ],
        "first_seen": "2026-11-22T19:30:05.656Z",
        "last_seen": "2026-11-22T19:30:05.656Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.150.16.1",
          "216.150.16.129"
        ],
        "first_seen": "2026-11-21T15:07:01.956Z",
        "last_seen": "2026-11-21T15:07:01.956Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "Server header \"Vercel\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "RevDesk MCP",
      "version": "1.1.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000; includeSubDomains"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 882,
      "sample": [
        {
          "id": "38",
          "url": "https://www.hood.ag/api/mcp",
          "server_name": "ag.hood/name-service",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:34:01.208Z"
        },
        {
          "id": "182",
          "url": "https://www.ai-portal.ai/mcp",
          "server_name": "ai.ai-portal/ai-portal",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:35:05.639Z"
        },
        {
          "id": "248",
          "url": "https://app.aqta.ai/api/mcp",
          "server_name": "ai.aqta/seal",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:36:01.604Z"
        },
        {
          "id": "300",
          "url": "https://app.augenix.ai/api/mcp/public",
          "server_name": "ai.augenix/build",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:39:00.982Z"
        },
        {
          "id": "368",
          "url": "https://beexcellent.ai/api/mcp/public",
          "server_name": "ai.beexcellent/reference",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:40:17.563Z"
        },
        {
          "id": "416",
          "url": "https://www.bordet.ai/api/mcp/mcp",
          "server_name": "ai.bordet/bordet",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:40:17.537Z"
        },
        {
          "id": "461",
          "url": "https://callmcp.ai/mcp",
          "server_name": "ai.callmcp/server",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:43:02.588Z"
        },
        {
          "id": "868",
          "url": "https://www.flamel.ai/mcp",
          "server_name": "ai.flamel/public-content",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:53:03.722Z"
        },
        {
          "id": "908",
          "url": "https://mcp.fudge.ai/mcp",
          "server_name": "ai.fudge/fudge",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:53:03.879Z"
        },
        {
          "id": "1105",
          "url": "https://guestlogic.ai/mcp",
          "server_name": "ai.guestlogic/guest-logic",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:56:01.272Z"
        },
        {
          "id": "1134",
          "url": "https://www.heycai.ai/mcp",
          "server_name": "ai.heycai/clinic-tools",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T04:57:02.321Z"
        },
        {
          "id": "1300",
          "url": "https://kifly.ai/api/mcp",
          "server_name": "ai.kifly/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T05:01:02.018Z"
        },
        {
          "id": "1330",
          "url": "https://app.kolect.ai/mcp",
          "server_name": "ai.kolect.app/creator-search",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T05:02:00.652Z"
        },
        {
          "id": "1375",
          "url": "https://api.last-price.ai/api/mcp/rpc",
          "server_name": "ai.last-price/pricing",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T05:03:02.501Z"
        },
        {
          "id": "1480",
          "url": "https://makerportal.ai/api/mcp",
          "server_name": "ai.makerportal/compute",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T05:06:01.382Z"
        },
        {
          "id": "1563",
          "url": "https://www.modulos.ai/mcp/",
          "server_name": "ai.modulos/demo-booking",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:45:03.427Z"
        },
        {
          "id": "1571",
          "url": "https://moonlings.ai/api/mcp",
          "server_name": "ai.moonlings/moonlings",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:45:03.637Z"
        },
        {
          "id": "1603",
          "url": "https://www.natalchart.ai/mcp",
          "server_name": "ai.natalchart/astrology",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:45:04.371Z"
        },
        {
          "id": "1648",
          "url": "https://mcp.nullary.ai/mcp",
          "server_name": "ai.nullary/nullary",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:46:03.131Z"
        },
        {
          "id": "1704",
          "url": "https://opensolid.ai/mcp",
          "server_name": "ai.opensolid/opensolid",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T06:47:00.855Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.cell-labs-inc",
      "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": "28239",
    "server_name": "io.github.cell-labs-inc/revdesk-product",
    "url": "https://mcp.revdesk.com/mcp",
    "host": "mcp.revdesk.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T19:31:01.463Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "fb134dbfe81cce446c2b506d2a62443fa4362bda73562690bc31903ed5391cc4",
    "first_listed_at": "2026-11-21T15:07:01.956Z",
    "created_at": "2026-11-21T09:25:06.340Z",
    "resolved_addresses": [
      "216.150.16.193",
      "216.150.1.193"
    ]
  },
  "server": {
    "name": "io.github.cell-labs-inc/revdesk-product",
    "title": "RevDesk Product MCP",
    "description": "Give AI agents secure access to RevDesk calling, SMS, phone numbers, caller IDs, and usage.",
    "version": "1.1.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://www.revdesk.com/developers",
    "published_at": "2026-08-24T20:43:33.410Z",
    "updated_at": "2026-08-24T20:43:33.410Z",
    "first_seen": "2026-11-21T09:25:05.852Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "runs-agents",
      "sends-messages"
    ],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:44:08.280Z"
  },
  "operator": {
    "key": "revdesk.com",
    "name": "revdesk.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1191,
    "first_check_in_window": "2026-11-21T15:07:01.956Z",
    "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": "fb134dbfe81cce446c2b506d2a62443fa4362bda73562690bc31903ed5391cc4",
    "tools": 100,
    "resources": 1,
    "prompts": 0,
    "first_seen": "2026-11-21T15:07:04.284Z",
    "tool_names": [
      "whoami",
      "get_account",
      "list_workspaces",
      "get_workspace",
      "create_workspace",
      "update_workspace",
      "list_phone_numbers",
      "search_available_numbers",
      "get_phone_number",
      "update_phone_number",
      "release_phone_number",
      "get_cnam_status",
      "list_caller_ids",
      "start_caller_id_verification",
      "verify_caller_id",
      "revoke_caller_id",
      "list_number_registrations",
      "get_number_registration",
      "list_agents",
      "get_agent",
      "update_agent",
      "get_sms_settings",
      "update_sms_settings",
      "list_webhooks",
      "create_webhook",
      "delete_webhook",
      "list_contacts",
      "get_contact",
      "create_contact",
      "update_contact",
      "list_conversations",
      "get_conversation",
      "reply_to_conversation",
      "send_sms",
      "list_messages",
      "get_message",
      "place_call",
      "list_calls",
      "get_call",
      "hangup_call",
      "get_call_transcript",
      "list_bookings",
      "list_tasks",
      "get_task",
      "create_task",
      "get_usage",
      "get_number_usage",
      "list_members",
      "list_invitations",
      "invite_member",
      "cancel_invitation",
      "change_member_role",
      "remove_member",
      "get_lead_routing",
      "update_lead_routing",
      "list_lead_sources",
      "get_lead_source",
      "create_lead_source",
      "update_lead_source",
      "remove_lead_source",
      "start_lead_import",
      "get_lead_import",
      "run_lead_import",
      "list_integrations",
      "get_inventory_status",
      "search_vehicles",
      "create_agent",
      "remove_agent",
      "get_agent_knowledge",
      "set_agent_knowledge",
      "list_knowledge",
      "add_knowledge_text",
      "remove_knowledge",
      "list_knowledge_websites",
      "add_knowledge_website",
      "get_knowledge_website",
      "remove_knowledge_website",
      "list_answers",
      "add_answer",
      "remove_answer",
      "list_calendars",
      "set_booking_calendar",
      "list_booking_hours",
      "create_booking_hours",
      "update_booking_hours",
      "delete_booking_hours",
      "list_booking_options",
      "set_booking_option_hours",
      "get_workspace_settings",
      "update_workspace_settings",
      "set_open_hours",
      "set_workspace_features",
      "list_audiences",
      "list_campaigns",
      "get_campaign",
      "create_campaign",
      "start_campaign",
      "pause_campaign",
      "stop_campaign",
      "get_performance_summary"
    ],
    "declared": {
      "tools": [
        {
          "name": "whoami",
          "title": "Who am I",
          "description": "Show who this connection is signed in as: the user, the RevDesk organization, and the permissions (scopes) granted. Use it when the user asks which account is connected, or after a tool is refused for a missing permission. Other tools do not need it called first.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_account",
          "title": "Get account overview",
          "description": "Show the organization's account overview, including its phone line count and caller-ID branding status. Use it for a quick check that the account is set up. Whether calls are being labeled as spam is in list_number_registrations. whoami says who is connected, and get_workspace_settings has the business profile and hours.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_workspaces",
          "title": "List workspaces",
          "description": "List the workspaces (for example store locations or rooftops) managed under this organization, with how many members and phone lines each has. Pass a workspace's id as workspace_id to any other tool to work inside it.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 50)"
              },
              "cursor": {
                "type": "string",
                "description": "Cursor from the previous page to get the next page"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_workspace",
          "title": "Get a workspace",
          "description": "Show one managed workspace: its name, member count, and phone-line count. For its business profile, time zone and open hours, call get_workspace_settings with this workspace_id.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "workspace_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Workspace id from list_workspaces"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_workspace",
          "title": "Create a workspace",
          "description": "Create a new workspace (for example a new store location) managed under this organization. The signed-in user becomes its owner. Returns its id; pass it as workspace_id to other tools to set the new workspace up.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1,
                "description": "Workspace name, for example the store name"
              },
              "slug": {
                "type": "string",
                "pattern": "^[a-z0-9-]{1,64}$",
                "description": "Optional short web name (lowercase letters, numbers, dashes); made from the name if left out"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_workspace",
          "title": "Rename a workspace",
          "description": "Rename a managed workspace. Only the name changes here: the business profile and time zone are changed with update_workspace_settings, and open hours with set_open_hours.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "workspace_id",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1,
                "description": "New workspace name"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Workspace id from list_workspaces"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_phone_numbers",
          "title": "List phone lines",
          "description": "List the phone lines this organization owns, with their ids. Use an active workspace line for calls and texts. If there is no line, ask the workspace admin to configure one in RevDesk under Channels › Phone numbers. Once it is ready, list lines again.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search_available_numbers",
          "title": "Search available numbers",
          "description": "Look up carrier availability by area code or digit pattern. Results are unassigned numbers. For a sending line, use list_phone_numbers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Max results (default 10)"
              },
              "country": {
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "description": "ISO country code (default US)"
              },
              "contains": {
                "type": "string",
                "description": "Digit pattern the number should contain"
              },
              "area_code": {
                "type": "string",
                "pattern": "^\\d{3}$",
                "description": "3-digit US area code"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_phone_number",
          "title": "Get a phone line",
          "description": "Show one phone line: its number, name, which AI agent answers it, and whether it is active. A line that was just bought shows as not active until it finishes setting up.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The line's id from list_phone_numbers (a small number like 42, not the phone number itself)",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_phone_number",
          "title": "Update a phone line",
          "description": "Change a phone line's settings: its name, the caller-ID name people see (up to 15 characters, takes 1 to 3 days to reach carriers), call recording, transcription, or which AI agent answers it. Send only what should change.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 120,
                "description": "Friendly name shown in RevDesk"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "AI agent that answers this line, from list_agents"
              },
              "cnam_enabled": {
                "type": "boolean",
                "description": "Turn the caller-ID name on or off"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The line's id from list_phone_numbers (a small number like 42, not the phone number itself)",
                "exclusiveMinimum": 0
              },
              "cnam_display_name": {
                "type": "string",
                "maxLength": 15,
                "minLength": 1,
                "description": "Caller-ID name shown on outbound calls, up to 15 characters"
              },
              "recording_enabled": {
                "type": "boolean",
                "description": "Record calls on this line"
              },
              "transcription_enabled": {
                "type": "boolean",
                "description": "Transcribe calls on this line"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "release_phone_number",
          "title": "Release a phone line",
          "description": "Permanently give up a phone line. RevDesk releases the number to the carrier, stops billing for it, and deletes its call history and recordings. This cannot be undone and the number may not be recoverable. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The line's id from list_phone_numbers (a small number like 42, not the phone number itself)",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_cnam_status",
          "title": "Check caller-ID name status",
          "description": "Check with the carrier whether a line's caller-ID name (the name people see when it calls) is live yet.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The line's id from list_phone_numbers (a small number like 42, not the phone number itself)",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_caller_ids",
          "title": "List caller IDs",
          "description": "List outside phone numbers (for example a store's main line) verified to show as the caller ID on RevDesk calls, with their status and caller-ID names.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "start_caller_id_verification",
          "title": "Start caller ID verification",
          "description": "Start verifying a phone number the business already owns so RevDesk calls can show it as the caller ID. The carrier immediately calls that number and reads a code aloud; whoever answers gives the code to verify_caller_id. Ask the user to confirm before calling this tool. Make sure someone is ready to answer that phone.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number"
            ],
            "properties": {
              "phone_number": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "description": "The number to verify, E.164 (+14155550123)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "verify_caller_id",
          "title": "Finish caller ID verification",
          "description": "Finish verifying a caller ID with the code that was read aloud on the verification call. Ask the user for the code; never guess it.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "caller_id_id",
              "verification_code"
            ],
            "properties": {
              "caller_id_id": {
                "type": "string",
                "minLength": 1,
                "description": "Caller ID id from start_caller_id_verification"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "verification_code": {
                "type": "string",
                "minLength": 1,
                "description": "The code read aloud on the verification call"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "revoke_caller_id",
          "title": "Revoke a caller ID",
          "description": "Stop using a verified caller ID on outbound calls. Past calls keep their history; the number must be verified again to use it later. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "caller_id_id"
            ],
            "properties": {
              "caller_id_id": {
                "type": "string",
                "minLength": 1,
                "description": "Caller ID id from list_caller_ids"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_number_registrations",
          "title": "List spam-label registrations",
          "description": "Show whether each phone line is registered with the caller registries that keep calls from being labeled as spam. Filter by status or one phone number.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "cursor": {
                "type": "string",
                "description": "Cursor from the previous page to get the next page"
              },
              "status": {
                "enum": [
                  "pending",
                  "submitted",
                  "active",
                  "failed",
                  "cancelled"
                ],
                "type": "string",
                "description": "Only registrations in this status"
              },
              "phone_number": {
                "type": "string",
                "description": "Only this exact phone number, E.164"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_number_registration",
          "title": "Get a spam-label registration",
          "description": "Show one line's caller-registry registration in detail, including which spam-labeling services have accepted it. Registrations usually finish within 1 to 2 days.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "registration_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "registration_id": {
                "type": "string",
                "minLength": 1,
                "description": "Registration id from list_number_registrations"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_agents",
          "title": "List AI agents",
          "description": "List the AI agents that answer calls and handle follow-up, with the phone line each one answers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 50)"
              },
              "cursor": {
                "type": "string",
                "description": "Cursor from the previous page to get the next page"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_agent",
          "title": "Get an AI agent",
          "description": "Show one AI agent's setup, including its greeting, instructions, voice, and language. What it is allowed to look up is in get_agent_knowledge.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Agent id from list_agents"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_agent",
          "title": "Update an AI agent",
          "description": "Change what an AI agent says and how it sounds: its name, first line (greeting), instructions, voice, language, or whether it is on. The next call uses the change. Send only what should change, and show the user new greeting or instruction text before saving it. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "agent_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "Name shown in RevDesk"
              },
              "enabled": {
                "type": "boolean",
                "description": "Turn the agent on or off"
              },
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Agent id from list_agents"
              },
              "greeting": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "First thing the agent says; null resets it"
              },
              "language": {
                "type": "string",
                "maxLength": 10,
                "minLength": 2,
                "description": "Language code, for example \"en\" or \"es\""
              },
              "voice_id": {
                "type": "string",
                "minLength": 1,
                "description": "Voice id"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "system_prompt": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 20000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The agent's instructions; null resets them"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_sms_settings",
          "title": "Get texting settings",
          "description": "Show whether the AI automatically answers incoming texts, how long it waits, and its default texting instructions. Give a phone_number_id to see that line's own setting; otherwise shows the workspace setting.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "A line's id from list_phone_numbers to see that line's setting; leave out for the workspace setting",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_sms_settings",
          "title": "Update texting settings",
          "description": "Turn automatic AI replies to incoming texts on or off, set how long it waits before replying, or change its default texting instructions. Give a phone_number_id to change only that line; otherwise changes the whole workspace. Send only what should change. Needs an admin, or a role allowed to change this. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "default_prompt": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Default texting instructions; null clears them"
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "A line's id from list_phone_numbers to act on that line only; leave out for the workspace setting",
                "exclusiveMinimum": 0
              },
              "auto_reply_enabled": {
                "type": "boolean",
                "description": "false = texts still arrive, but the AI does not reply on its own"
              },
              "reply_delay_seconds": {
                "type": "integer",
                "maximum": 300,
                "minimum": 0,
                "description": "Seconds to wait before replying"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_webhooks",
          "title": "List webhooks",
          "description": "List the web addresses RevDesk notifies when something happens (a call ends, a customer texts back, a booking is made).",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_webhook",
          "title": "Create a webhook",
          "description": "Have RevDesk send an event to an https web address whenever it happens. The reply includes a signing secret shown only this once; give it to the user to store safely and do not repeat it elsewhere.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "webhook_url",
              "event_type"
            ],
            "properties": {
              "event_type": {
                "enum": [
                  "new_call",
                  "call_completed",
                  "contact_replied",
                  "contact_created",
                  "new_appointment",
                  "number_purchased",
                  "number_released",
                  "number_updated",
                  "call_no_answer",
                  "call_voicemail",
                  "call_busy",
                  "call_failed",
                  "sms_sent",
                  "sms_delivered",
                  "sms_failed",
                  "texting_registration_status_changed",
                  "registration_submitted",
                  "registration_confirmed",
                  "registration_failed",
                  "job_started",
                  "job_progressed",
                  "job_outcome_recorded",
                  "job_completed",
                  "optimize.test.created",
                  "optimize.test.started",
                  "optimize.test.completed",
                  "optimize.test.winner",
                  "optimize.test.shipped",
                  "optimize.conversion.created",
                  "optimize.conversion.updated",
                  "optimize.conversion.revoked"
                ],
                "type": "string",
                "description": "Which event to send"
              },
              "webhook_url": {
                "type": "string",
                "format": "starts_with",
                "pattern": "^https:\\/\\/.*",
                "description": "https address that receives the events"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_webhook",
          "title": "Delete a webhook",
          "description": "Stop sending events to a webhook address and cancel any deliveries still waiting. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "webhook_id"
            ],
            "properties": {
              "webhook_id": {
                "type": "string",
                "minLength": 1,
                "description": "Webhook id from list_webhooks"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_contacts",
          "title": "List contacts",
          "description": "Browse the most recently added customers and leads, newest first. This tool cannot search. To find a person by name, phone number or something they said, use list_conversations with search instead.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_contact",
          "title": "Get a contact",
          "description": "Show one customer or lead: name, phone, email, and saved details. To read what was said with them, use get_conversation with the same contact_id.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "contact_id"
            ],
            "properties": {
              "contact_id": {
                "type": "string",
                "minLength": 1,
                "description": "Contact id from list_contacts or list_conversations"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_contact",
          "title": "Add a contact",
          "description": "Add a customer or lead by phone number. If someone with that number already exists, their name, email, and details are updated instead. This does not message them. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Full name"
              },
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "description": "Email address"
              },
              "sms_consent": {
                "type": "boolean",
                "description": "true only if the person agreed to receive texts, for example on a web form"
              },
              "phone_number": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "description": "Contact's phone number, E.164 (+14155550123)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "sms_consent_source": {
                "type": "string",
                "description": "Where they agreed, for example \"website_form\""
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "update_contact",
          "title": "Update a contact",
          "description": "Change a contact's name, email, or company. The phone number cannot change. Send only what should change; null clears email or company. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "contact_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "Full name"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Email address"
              },
              "company": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Company name"
              },
              "contact_id": {
                "type": "string",
                "minLength": 1,
                "description": "Contact id from list_contacts or list_conversations"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_conversations",
          "title": "List conversations",
          "description": "List customer conversations, most recent activity first, with calls and texts combined per customer. Use awaiting_human_reply to find customers waiting on a person.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "view": {
                "enum": [
                  "inbox",
                  "archived"
                ],
                "type": "string",
                "description": "Inbox (default) or archived"
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "cursor": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Cursor from the previous page to get the next page"
              },
              "search": {
                "type": "string",
                "description": "Name, phone, or text to search for"
              },
              "channel": {
                "enum": [
                  "all",
                  "calls",
                  "sms",
                  "email"
                ],
                "type": "string",
                "description": "Only this kind of activity"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "awaiting_human_reply": {
                "type": "boolean",
                "description": "Only customers waiting on a person to reply"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_conversation",
          "title": "Read a conversation",
          "description": "Read one customer's full conversation: texts and calls in one timeline, plus whether a person has taken over from the AI.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "contact_id"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "cursor": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Cursor from the previous page to get older items"
              },
              "contact_id": {
                "type": "string",
                "minLength": 1,
                "description": "Contact id from list_contacts or list_conversations"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "reply_to_conversation",
          "title": "Reply to a conversation",
          "description": "Send a reply to a customer inside their existing conversation, on the line the conversation already uses. Use this for anyone who already appears in list_conversations; use send_sms only for a number with no conversation yet. The customer receives it right away. Ask the user to confirm before calling this tool. Show them the exact text first.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "contact_id",
              "body"
            ],
            "properties": {
              "body": {
                "type": "string",
                "maxLength": 1600,
                "minLength": 1,
                "description": "Message text"
              },
              "channel": {
                "enum": [
                  "SMS",
                  "EMAIL",
                  "IMESSAGE"
                ],
                "type": "string",
                "description": "How to send it (defaults to the thread's channel)"
              },
              "subject": {
                "type": "string",
                "description": "Email subject, for email replies"
              },
              "contact_id": {
                "type": "string",
                "minLength": 1,
                "description": "Contact id from list_contacts or list_conversations"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "from_phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Send from a different line, by id from list_phone_numbers",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "send_sms",
          "title": "Send a text",
          "description": "Send a text message from one of the organization's RevDesk lines. Both numbers must be E.164 (+14155550123). Use list_phone_numbers to find a valid 'from' number. Use this for a number that has no conversation yet; to answer an existing customer use reply_to_conversation, which picks the line for you. The customer receives it right away. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "to",
              "from",
              "message"
            ],
            "properties": {
              "to": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "description": "Destination number in E.164 format"
              },
              "from": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "description": "One of the account's RevDesk numbers, E.164"
              },
              "message": {
                "type": "string",
                "maxLength": 1600,
                "minLength": 1,
                "description": "Message body"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "list_messages",
          "title": "List texts",
          "description": "List recent text messages across every customer, newest first. Filter to texts customers sent in or texts sent out. Use it to review texting as a whole; to read one customer's texts and calls together, use get_conversation.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "direction": {
                "enum": [
                  "inbound",
                  "outbound"
                ],
                "type": "string",
                "description": "inbound = from customers, outbound = sent by you"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_message",
          "title": "Get a text",
          "description": "Show one text message and its delivery status. Use it after send_sms or reply_to_conversation to check that a text was delivered.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "message_id"
            ],
            "properties": {
              "message_id": {
                "type": "string",
                "minLength": 1,
                "description": "Message id from list_messages or send_sms"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "place_call",
          "title": "Place a call",
          "description": "Call a phone number from one of the organization's RevDesk lines. The call starts right away and is connected by RevDesk (no audio flows through the AI). Returns a call id for status checks. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "to_number",
              "from_number"
            ],
            "properties": {
              "record": {
                "type": "boolean",
                "description": "Record the call (default true)"
              },
              "to_number": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "description": "Destination number in E.164 format"
              },
              "from_number": {
                "type": "string",
                "pattern": "^\\+[1-9]\\d{1,14}$",
                "description": "One of the account's RevDesk numbers, E.164"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "list_calls",
          "title": "List call history",
          "description": "List recent calls across every customer with status, length, and cost. Most recent first. Use get_call for one call and get_call_transcript for what was said. One customer's calls and texts together are in get_conversation.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "status": {
                "type": "string",
                "description": "Filter by status, e.g. COMPLETED, FAILED, NO_ANSWER"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_call",
          "title": "Get call details",
          "description": "Show the current status and details of one call: who was called, when, how long it lasted, and how it ended. Use it after place_call to see whether the call connected.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "call_id"
            ],
            "properties": {
              "call_id": {
                "type": "string",
                "description": "Call id from place_call or list_calls"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "hangup_call",
          "title": "Hang up a call",
          "description": "End a call that is still in progress. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "call_id"
            ],
            "properties": {
              "call_id": {
                "type": "string",
                "description": "Call id of an active call"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "get_call_transcript",
          "title": "Get a call transcript",
          "description": "Read what was said on a call, turn by turn. Some organizations keep transcripts private for compliance, and calls that were not transcribed have none.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "call_id"
            ],
            "properties": {
              "call_id": {
                "type": "string",
                "minLength": 1,
                "description": "Call id from list_calls"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_bookings",
          "title": "List bookings",
          "description": "List recent bookings (appointments customers made), newest first, with time, customer, and status. Bookings are made by customers and AI agents: this connection can read them but not create or change them.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_tasks",
          "title": "List tasks",
          "description": "List the outcomes RevDesk is working toward for customers (or has finished), newest first, such as a follow-up started with create_task. Use get_task to see everything that was done for one.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 25)"
              },
              "status": {
                "enum": [
                  "OPEN",
                  "PAUSED",
                  "ACHIEVED",
                  "ABANDONED",
                  "EXPIRED"
                ],
                "type": "string",
                "description": "Only tasks in this status"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_task",
          "title": "Get a task",
          "description": "Show one task: what it is trying to achieve, everything RevDesk did for it so far, and the results.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "task_id"
            ],
            "properties": {
              "task_id": {
                "type": "string",
                "minLength": 1,
                "description": "Task id from list_tasks or create_task"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_task",
          "title": "Create a task",
          "description": "Give RevDesk an outcome to pursue for a customer, for example \"get Maria to book a test drive this week\". RevDesk's AI then calls, texts, or emails the customer on its own until the goal is met, the deadline passes, or the limits stop it. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "type",
              "objective"
            ],
            "properties": {
              "type": {
                "type": "string",
                "minLength": 1,
                "description": "Short label for the kind of task, for example \"follow_up\""
              },
              "deadline": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "Stop by this time, ISO 8601"
              },
              "objective": {
                "type": "string",
                "minLength": 1,
                "description": "The outcome to achieve, in plain words"
              },
              "contact_id": {
                "type": "string",
                "minLength": 1,
                "description": "The customer the task is for, from list_contacts or list_conversations"
              },
              "max_touches": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Most calls, texts, and emails allowed in total",
                "exclusiveMinimum": 0
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "opportunity_id": {
                "type": "string",
                "description": "Deal id, if the task is for a deal"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "get_usage",
          "title": "Get usage",
          "description": "This month's totals for the organization: calls placed, minutes used, active lines, and spend. Use get_number_usage for one phone line, and get_performance_summary for sales and lead results.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_number_usage",
          "title": "Get usage for one line",
          "description": "This month's calls and minutes for one phone line, broken down by call result.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "phone_number_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "phone_number_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "The line's id from list_phone_numbers (a small number like 42, not the phone number itself)",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_members",
          "title": "List members",
          "description": "List the people in this workspace with their user id, email, role, access, teams, and when they joined. Pending invitations come from list_invitations.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 50)"
              },
              "offset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Skip this many people, to get the next page"
              },
              "search": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "Match on name or email"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_invitations",
          "title": "List pending invitations",
          "description": "List invitations that were sent but not accepted yet, with the email, role, who sent it, and when it expires. Use an id here with cancel_invitation.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 200,
                "minimum": 1,
                "description": "Max results (default 100)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "invite_member",
          "title": "Invite a member",
          "description": "Invite someone to this workspace by email with a role (owner and admin run the workspace and see everything; member works leads; sales sees only the customers assigned to them). RevDesk emails them a link to join. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "email"
            ],
            "properties": {
              "role": {
                "enum": [
                  "owner",
                  "admin",
                  "member",
                  "sales"
                ],
                "type": "string",
                "description": "Their role; member if left out"
              },
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "description": "The person's email address"
              },
              "access": {
                "enum": [
                  "full",
                  "teams"
                ],
                "type": "string",
                "description": "For member or sales: full sees the whole workspace, teams sees only the teams in team_ids. Defaults to full for member, teams for sales"
              },
              "team_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "maxItems": 20,
                "description": "Teams to put them on when they join (team ids from get_lead_routing or list_members)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "cancel_invitation",
          "title": "Cancel an invitation",
          "description": "Cancel a pending invitation so its link stops working. The invitation id comes from list_invitations. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "invitation_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "invitation_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Invitation id from list_invitations"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "change_member_role",
          "title": "Change a member's role",
          "description": "Change a workspace member's role (owner and admin run the workspace and see everything; member works leads; sales sees only the customers assigned to them). Only an owner can make someone an owner or change an owner, and the last owner can't be changed. The user id comes from list_members. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "user_id",
              "role"
            ],
            "properties": {
              "role": {
                "enum": [
                  "owner",
                  "admin",
                  "member",
                  "sales"
                ],
                "type": "string",
                "description": "Their new role"
              },
              "user_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "User id from list_members"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "remove_member",
          "title": "Remove a member",
          "description": "Remove someone from this workspace; they lose access right away. Only an owner can remove an owner, and the workspace always keeps an owner or admin. The user id comes from list_members. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "user_id"
            ],
            "properties": {
              "user_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "User id from list_members"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_lead_routing",
          "title": "Get lead routing",
          "description": "Show who picks up new leads and follow-ups: whether work waits in a shared queue or goes round robin, which reps are in it, any team-specific rules, the fallback person, and the teams and people that can be used.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_lead_routing",
          "title": "Change lead routing",
          "description": "Change who picks up new leads and follow-ups. Send only what changes. Add team_id to change one team's rule, or team_id with use_workspace_rule to make that team follow the workspace rule again. Ids come from get_lead_routing. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "mode": {
                "enum": [
                  "shared_queue",
                  "round_robin"
                ],
                "type": "string",
                "description": "shared_queue: any rep can claim new work; round_robin: new work goes to the next rep in turn"
              },
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Change this team's rule instead of the workspace rule"
              },
              "member_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "maxItems": 200,
                "description": "The reps in the rule, replacing the current list (user ids from get_lead_routing)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "fallback_user_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Who takes a new lead nobody else gets; null means the workspace owner"
              },
              "response_minutes": {
                "type": "integer",
                "maximum": 10080,
                "minimum": 1,
                "description": "Minutes a rep has to respond before the work counts as overdue"
              },
              "use_workspace_rule": {
                "type": "boolean",
                "const": true,
                "description": "With team_id: drop the team's own rule so it follows the workspace rule"
              },
              "prefer_existing_owner": {
                "type": "boolean",
                "description": "Send a returning customer back to the rep who already has them"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_lead_sources",
          "title": "List lead sources",
          "description": "List where this workspace's leads come from (lead emails from listing sites and dealer CRMs, HighLevel, Zapier, webhooks, forms), whether each is working, and for admins the lead email address or webhook URL to give the sender.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_lead_source",
          "title": "Get a lead source",
          "description": "Show one lead source: its status, recent lead count, and for admins the address to give the sender.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "lead_source_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "lead_source_id": {
                "type": "string",
                "minLength": 1,
                "description": "Lead source id from list_lead_sources"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_lead_source",
          "title": "Add a lead source",
          "description": "Add a lead source and get the address to paste into the sender: an ADF lead email address for listing sites, OEM portals and dealer CRMs, or a webhook URL and secret for HighLevel, Zapier, Typeform or a developer. HubSpot and RevDesk forms are added in the app.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name",
              "provider"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "What the dealer calls it, for example 'Cars.com leads'"
              },
              "provider": {
                "enum": [
                  "adf",
                  "leadconnector",
                  "zapier",
                  "typeform",
                  "public_webhook"
                ],
                "type": "string",
                "description": "adf for lead emails (Cars.com, AutoTrader, CarGurus, OEM portals, dealer CRMs); leadconnector for HighLevel; zapier; typeform; public_webhook for a developer posting JSON"
              },
              "location_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Store this source belongs to (location.id from list_lead_sources); leave out for every store",
                "exclusiveMinimum": 0
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_lead_source",
          "title": "Rename or pause a lead source",
          "description": "Rename a lead source, or pause it (its address stops accepting leads) and turn it back on. Admins only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "lead_source_id"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "New name"
              },
              "enabled": {
                "type": "boolean",
                "description": "false pauses the source, true turns it back on"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "lead_source_id": {
                "type": "string",
                "minLength": 1,
                "description": "Lead source id from list_lead_sources"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_lead_source",
          "title": "Remove a lead source",
          "description": "Remove a lead source for good: its address stops accepting leads right away, so anything still sending to it is lost. Leads it already brought in are kept. To stop it for now, use update_lead_source with enabled false. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "lead_source_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "lead_source_id": {
                "type": "string",
                "minLength": 1,
                "description": "Lead source id from list_lead_sources"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "start_lead_import",
          "title": "Start a lead import",
          "description": "Begin bringing a lead export (a CSV file of leads) into RevDesk. Do not read or send the file yourself: this returns upload_url, a RevDesk page where the user uploads it in their browser. Give them that link, and once they say it is uploaded call get_lead_import. Nothing is saved yet. Admins only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_lead_import",
          "title": "Check a lead import",
          "description": "See where a lead import stands. Before it runs: whether the user has uploaded the file, and what it would bring in (new leads and people, open leads that go to their salesperson or to nobody, opted-out numbers). Show the user that summary. After run_lead_import, pass run_id to see whether it finished and what it created. Admins only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "import_id"
            ],
            "properties": {
              "run_id": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "run_id from run_lead_import, to follow that import"
              },
              "import_id": {
                "type": "string",
                "minLength": 1,
                "description": "Import id from start_lead_import"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "run_lead_import",
          "title": "Import the uploaded leads",
          "description": "Import the uploaded file after the user has seen the summary from get_lead_import. It runs in the background; follow it with get_lead_import and the returned run_id. Leads already imported from the same file are left alone, opted-out numbers stay opted out, and no messages are sent. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "import_id",
              "sha256"
            ],
            "properties": {
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$",
                "description": "preview.sha256 from get_lead_import, so the file imported is the one the user reviewed"
              },
              "import_id": {
                "type": "string",
                "minLength": 1,
                "description": "Import id from start_lead_import"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_integrations",
          "title": "List apps and CRMs",
          "description": "List the apps RevDesk connects to (calendars, CRMs like HubSpot, Google Sheets, Zapier, Slack and more), which are connected, and a connect_url to the RevDesk page where the user signs in to connect one. Connecting needs the user in their browser.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "status": {
                "enum": [
                  "connected",
                  "needs_reconnect",
                  "available",
                  "coming_soon"
                ],
                "type": "string",
                "description": "Only apps in this state"
              },
              "category": {
                "enum": [
                  "calendar",
                  "conferencing",
                  "crm",
                  "automation",
                  "messaging",
                  "analytics"
                ],
                "type": "string",
                "description": "Only apps of this kind"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_inventory_status",
          "title": "Check inventory feeds",
          "description": "Check that inventory is reaching RevDesk: how many vehicles are available, and for each inventory feed when it last synced, how many units it sent and any error. Admins only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search_vehicles",
          "title": "Search vehicles",
          "description": "Look up vehicles RevDesk can offer callers (available, pending or on order) by year, make, model, VIN or stock number. Returns up to 25.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 25,
                "minimum": 1,
                "description": "Max results (default 10)"
              },
              "query": {
                "type": "string",
                "maxLength": 120,
                "description": "For example '2024 Grand Design' or a stock number"
              },
              "condition": {
                "enum": [
                  "NEW",
                  "USED",
                  "CPO"
                ],
                "type": "string",
                "description": "Only new, used, or certified pre-owned (CPO) vehicles"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_agent",
          "title": "Create an AI agent",
          "description": "Add an AI agent with the recommended voice, greeting, and instructions. It answers no phone line until one is pointed at it with update_phone_number, and any starter playbooks begin as drafts. Returns the new agent's id. Admins only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Agent name; leave out to name it after its first playbook"
              },
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Team (location) the agent works for; leave out for the whole workspace"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "knowledge_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 100,
                "description": "Knowledge it may use, from list_knowledge; leave out to let it use everything"
              },
              "starter_playbooks": {
                "type": "array",
                "items": {
                  "enum": [
                    "answer_and_route",
                    "speed_to_lead_callback_ladder",
                    "sales_assist",
                    "customer_success",
                    "re_engage_winback",
                    "outbound_sdr_outreach",
                    "recall_outreach",
                    "warranty_inspection_reminders"
                  ],
                  "type": "string"
                },
                "description": "Jobs the agent starts with, as drafts"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_agent",
          "title": "Remove an AI agent",
          "description": "Permanently remove an AI agent. It is refused while the agent still answers a phone line or has unfinished tasks, so move its lines to another agent with update_phone_number first. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Agent id from list_agents"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_agent_knowledge",
          "title": "Get an agent's knowledge",
          "description": "Show which knowledge an AI agent uses: everything the workspace knows, or only the listed documents and websites.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "agent_id"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Agent id from list_agents"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "set_agent_knowledge",
          "title": "Set an agent's knowledge",
          "description": "Choose which knowledge an AI agent may use. Send the full list of ids from list_knowledge; an empty list lets it use everything. The next call uses the change. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "agent_id",
              "knowledge_ids"
            ],
            "properties": {
              "agent_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Agent id from list_agents"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "knowledge_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "maximum": 9007199254740991,
                  "exclusiveMinimum": 0
                },
                "maxItems": 100,
                "description": "Every knowledge id the agent should use; empty for everything"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_knowledge",
          "title": "List knowledge",
          "description": "List the documents AI agents look things up in, with a short preview of each. Websites are in list_knowledge_websites and FAQ answers in list_answers.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 30)"
              },
              "cursor": {
                "type": "string",
                "description": "Cursor from the previous page to get the next page"
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Words to find in a title or content"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "add_knowledge_text",
          "title": "Add knowledge from text",
          "description": "Add a document of plain text the AI agents can look up, such as hours, policies, specials, or directions. Agents can find it within a minute or two.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "title",
              "content"
            ],
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Short title"
              },
              "content": {
                "type": "string",
                "maxLength": 200000,
                "minLength": 1,
                "description": "The text agents should know"
              },
              "category": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Optional grouping, such as Service or Sales"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_knowledge",
          "title": "Remove knowledge",
          "description": "Permanently remove one knowledge document so agents stop using it. Use remove_knowledge_website for a whole website. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "knowledge_id"
            ],
            "properties": {
              "knowledge_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Id from list_knowledge",
                "exclusiveMinimum": 0
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_knowledge_websites",
          "title": "List knowledge websites",
          "description": "List the websites the AI agents learned from, with each one's status and how many pages it produced.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 30)"
              },
              "cursor": {
                "type": "string",
                "description": "Cursor from the previous page to get the next page"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "add_knowledge_website",
          "title": "Add knowledge from a website",
          "description": "Start reading a website's pages into knowledge. It runs in the background and returns at once with status pending; check get_knowledge_website until it says completed, usually a few minutes. Only one website can be read at a time.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Page to start from, usually the home page (https)"
              },
              "max_pages": {
                "type": "integer",
                "maximum": 150,
                "minimum": 1,
                "description": "Most pages to read (default 25)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "get_knowledge_website",
          "title": "Check a knowledge website",
          "description": "Show how reading a website is going: its status, pages read, documents made, and any page errors.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "website_id"
            ],
            "properties": {
              "website_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Id from add_knowledge_website or list_knowledge_websites",
                "exclusiveMinimum": 0
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_knowledge_website",
          "title": "Remove a knowledge website",
          "description": "Permanently remove a website and every page read from it, stopping the crawl if it is still running. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "website_id"
            ],
            "properties": {
              "website_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Id from list_knowledge_websites",
                "exclusiveMinimum": 0
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_answers",
          "title": "List FAQ answers",
          "description": "List the frequently asked questions and the answers the AI agents give.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 50)"
              },
              "cursor": {
                "type": "string",
                "description": "Cursor from the previous page to get the next page"
              },
              "search": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Words to find in a question or answer"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "add_answer",
          "title": "Add an FAQ answer",
          "description": "Add a frequently asked question and the answer the AI agents should give, starting with the next call. Show the user the wording before saving.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "question",
              "answer"
            ],
            "properties": {
              "answer": {
                "type": "string",
                "maxLength": 5000,
                "minLength": 1,
                "description": "The answer agents should give"
              },
              "question": {
                "type": "string",
                "maxLength": 500,
                "minLength": 1,
                "description": "The question, as a customer would ask it"
              },
              "always_say": {
                "type": "boolean",
                "description": "True (default): agents always know it. False: they look it up when asked"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "remove_answer",
          "title": "Remove an FAQ answer",
          "description": "Permanently remove a frequently asked question and its answer from every agent. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "answer_id"
            ],
            "properties": {
              "answer_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Id from list_answers",
                "exclusiveMinimum": 0
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_calendars",
          "title": "List connected calendars",
          "description": "Show the calendars the signed-in user has connected (Google, Microsoft 365, Apple and others), which ones are checked for conflicts, and which one new bookings are added to. Connecting a calendar needs a sign-in in the browser, so give the user the connect_url it returns.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "set_booking_calendar",
          "title": "Choose the calendar bookings go to",
          "description": "Choose which of the signed-in user's connected calendars new bookings are added to. Use the integration and external_id from list_calendars; the calendar can't be read-only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "integration",
              "external_id"
            ],
            "properties": {
              "external_id": {
                "type": "string",
                "minLength": 1,
                "description": "The calendar's external_id from list_calendars"
              },
              "integration": {
                "type": "string",
                "minLength": 1,
                "description": "The connection's integration from list_calendars"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_booking_hours",
          "title": "List booking hours",
          "description": "List the workspace's booking-hours schedules: their weekly hours, time zone, closed dates and special hours, and how many booking options use each one.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_booking_hours",
          "title": "Create booking hours",
          "description": "Create a booking-hours schedule with weekly hours and any closed dates. It does nothing until a booking option uses it (set_booking_option_hours). Returns the new schedule with its id. Needs an admin, or a role allowed to change this.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name",
              "time_zone"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "A name the team will recognize, e.g. Test drive hours"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "description": "IANA time zone the hours are in, e.g. America/Chicago"
              },
              "weekly_hours": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "days",
                    "start_time",
                    "end_time"
                  ],
                  "properties": {
                    "days": {
                      "type": "array",
                      "items": {
                        "enum": [
                          "sunday",
                          "monday",
                          "tuesday",
                          "wednesday",
                          "thursday",
                          "friday",
                          "saturday"
                        ],
                        "type": "string"
                      },
                      "minItems": 1,
                      "description": "Weekdays these hours apply to"
                    },
                    "end_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    },
                    "start_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    }
                  }
                },
                "description": "Regular weekly hours; add several entries for different days or split shifts"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "date_overrides": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "date"
                  ],
                  "properties": {
                    "date": {
                      "type": "string",
                      "description": "YYYY-MM-DD"
                    },
                    "end_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    },
                    "start_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    }
                  }
                },
                "description": "Holidays and special days; leave the times out to close that whole day"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_booking_hours",
          "title": "Change booking hours",
          "description": "Replace a booking-hours schedule: send its full weekly hours and date overrides, not just the change. Customers immediately see different times for every booking option that uses it; when any do, set apply_to_booking_options_in_use to true after the user agrees. Needs an admin, or a role allowed to change this. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "booking_hours_id",
              "name",
              "time_zone"
            ],
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "A name the team will recognize, e.g. Test drive hours"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "description": "IANA time zone the hours are in, e.g. America/Chicago"
              },
              "weekly_hours": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "days",
                    "start_time",
                    "end_time"
                  ],
                  "properties": {
                    "days": {
                      "type": "array",
                      "items": {
                        "enum": [
                          "sunday",
                          "monday",
                          "tuesday",
                          "wednesday",
                          "thursday",
                          "friday",
                          "saturday"
                        ],
                        "type": "string"
                      },
                      "minItems": 1,
                      "description": "Weekdays these hours apply to"
                    },
                    "end_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    },
                    "start_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    }
                  }
                },
                "description": "Regular weekly hours; add several entries for different days or split shifts"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "date_overrides": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "date"
                  ],
                  "properties": {
                    "date": {
                      "type": "string",
                      "description": "YYYY-MM-DD"
                    },
                    "end_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    },
                    "start_time": {
                      "type": "string",
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "description": "24-hour time, HH:MM"
                    }
                  }
                },
                "description": "Holidays and special days; leave the times out to close that whole day"
              },
              "booking_hours_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Booking hours id from list_booking_hours"
              },
              "apply_to_booking_options_in_use": {
                "type": "boolean",
                "description": "Must be true to change a schedule booking options already use"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "delete_booking_hours",
          "title": "Delete booking hours",
          "description": "Delete a booking-hours schedule. Cannot be undone. If booking options use it, it fails unless remove_from_booking_options is true, which puts them back on their hosts' own availability. Needs an admin, or a role allowed to change this. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "booking_hours_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "booking_hours_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Booking hours id from list_booking_hours"
              },
              "remove_from_booking_options": {
                "type": "boolean",
                "description": "True to delete it even though booking options use it"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "list_booking_options",
          "title": "List booking options",
          "description": "List the workspace's booking options (such as a test drive or service appointment) with their length and the booking hours each one follows.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "set_booking_option_hours",
          "title": "Set a booking option's hours",
          "description": "Choose which booking hours a booking option follows, or null to use its hosts' own availability. Changes when customers can book it right away. Ids come from list_booking_options and list_booking_hours. Needs an admin, or a role allowed to change this.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "booking_option_id",
              "booking_hours_id"
            ],
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "booking_hours_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "Booking hours id from list_booking_hours"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Booking hours id from list_booking_hours, or null to use the hosts' own availability"
              },
              "booking_option_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "description": "Booking option id from list_booking_options",
                "exclusiveMinimum": 0
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_workspace_settings",
          "title": "Get workspace settings",
          "description": "Show the workspace's business profile (name, website, description, service area, time zone and address), its open hours, and which RevDesk features are on.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_workspace_settings",
          "title": "Update business profile",
          "description": "Change the business name, time zone, week start, website, description or service area. Customers see the name, and AI agents use the website, description and service area on their next call or text. Send only what changes. Needs an admin, or a role allowed to change this. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 128,
                "minLength": 1,
                "description": "Business name"
              },
              "time_zone": {
                "type": "string",
                "description": "IANA time zone, e.g. America/Chicago"
              },
              "week_start": {
                "enum": [
                  "Sunday",
                  "Monday",
                  "Tuesday",
                  "Wednesday",
                  "Thursday",
                  "Friday",
                  "Saturday"
                ],
                "type": "string",
                "description": "The day calendars and weekly reports start on"
              },
              "website_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Business website; null clears it"
              },
              "service_area": {
                "type": "string",
                "maxLength": 500,
                "description": "Where the business serves customers"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "business_description": {
                "type": "string",
                "maxLength": 4000,
                "description": "What the business does"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "set_open_hours",
          "title": "Set open hours",
          "description": "Replace the workspace's weekly open hours, in its time zone. They decide when calls and texts are handled as after hours. Send every open day; a day left out is closed. Admins only. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "friday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "monday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "sunday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "tuesday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "saturday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "thursday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "wednesday": {
                "type": "object",
                "required": [
                  "open"
                ],
                "properties": {
                  "open": {
                    "type": "boolean",
                    "description": "false closes the day"
                  },
                  "end_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  },
                  "start_time": {
                    "type": "string",
                    "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                    "description": "24-hour time, HH:MM"
                  }
                },
                "description": "This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "set_workspace_features",
          "title": "Turn features on or off",
          "description": "Show or hide RevDesk CRM, Outreach, Bookings or Marketing for the whole team, or switch between the full workspace and agents only. Leads, calls and texts keep working either way. Send only what changes. Admins only.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "crm": {
                "type": "boolean",
                "description": "RevDesk CRM: pipeline and deals"
              },
              "bookings": {
                "type": "boolean",
                "description": "Bookings: the team scheduling workspace"
              },
              "outreach": {
                "type": "boolean",
                "description": "Outreach: campaigns and audiences"
              },
              "marketing": {
                "type": "boolean",
                "description": "Marketing: Ads, Website, Reviews and Convert (beta)"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "workspace_experience": {
                "enum": [
                  "full",
                  "agents"
                ],
                "type": "string",
                "description": "full shows every screen; agents keeps it to AI agents and leads"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_audiences",
          "title": "List audiences",
          "description": "List saved audiences (lists of customers) a campaign can reach, with how many people each holds and how many can be called, texted or emailed. Use an audience's id in create_campaign.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 50,
                "minimum": 1,
                "description": "Max results (default 20)"
              },
              "cursor": {
                "type": "string",
                "description": "meta.cursor from the previous page"
              },
              "search": {
                "type": "string",
                "maxLength": 100,
                "description": "Only audiences whose name or description matches"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_campaigns",
          "title": "List campaigns",
          "description": "List campaigns, newest first: outreach an agent runs for a list of people by call, text and email. Each shows whether it is a draft, running, paused or finished and how many people it reaches. get_campaign gives one campaign's steps and results.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Max results (default 50)"
              },
              "state": {
                "enum": [
                  "draft",
                  "scheduled",
                  "running",
                  "paused",
                  "finished"
                ],
                "type": "string",
                "description": "Only campaigns in this state"
              },
              "cursor": {
                "type": "string",
                "description": "meta.cursor from the previous page"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_campaign",
          "title": "Get a campaign",
          "description": "Show one campaign: its steps and messages, how many people it reaches, how far they have got, and its results so far (touchpoints sent, calls connected, replies, qualified leads, bookings).",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "campaign_id"
            ],
            "properties": {
              "campaign_id": {
                "type": "string",
                "minLength": 1,
                "description": "Campaign id from list_campaigns or create_campaign"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_campaign",
          "title": "Create a campaign draft",
          "description": "Save a campaign as a draft for a saved audience from list_audiences, with the agent from list_agents and the steps to send. Nobody is contacted until start_campaign; the result's people is how many it will reach.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "name",
              "audience_id",
              "steps"
            ],
            "properties": {
              "goal": {
                "type": "string",
                "maxLength": 2000,
                "description": "What the campaign is for, in plain words"
              },
              "name": {
                "type": "string",
                "maxLength": 200,
                "minLength": 1,
                "description": "Campaign name the team will recognize"
              },
              "steps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "channel"
                  ],
                  "properties": {
                    "channel": {
                      "enum": [
                        "CALL",
                        "SMS",
                        "EMAIL"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 5000,
                      "description": "Text or email to send as written, or what a call should cover"
                    },
                    "subject": {
                      "type": "string",
                      "maxLength": 300,
                      "description": "Email subject, for EMAIL steps"
                    },
                    "delay_hours": {
                      "type": "number",
                      "minimum": 0,
                      "description": "Hours after the previous step; 0 for the first"
                    }
                  }
                },
                "maxItems": 20,
                "minItems": 1,
                "description": "What goes out, in order: each step is a call, text or email and how long after the previous one"
              },
              "team_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Team that owns the campaign, if you only work in teams"
              },
              "agent_id": {
                "type": "string",
                "description": "Agent id from list_agents; omit to let RevDesk pick"
              },
              "audience_id": {
                "type": "string",
                "minLength": 1,
                "description": "Audience id from list_audiences"
              },
              "review_mode": {
                "enum": [
                  "review_each",
                  "review_first",
                  "auto_send"
                ],
                "type": "string",
                "description": "review_each (default): a person approves every message. review_first: only each first message. auto_send: nothing waits"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              },
              "follow_audience": {
                "type": "boolean",
                "description": "Also reach people who join the audience after the campaign starts"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "start_campaign",
          "title": "Start a campaign",
          "description": "Start a draft or paused campaign: it begins calling, texting and emailing its people, which uses minutes and message credits. First show the audience size, agent, review mode, channels, timing and messages from get_campaign. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "campaign_id"
            ],
            "properties": {
              "campaign_id": {
                "type": "string",
                "minLength": 1,
                "description": "Campaign id from list_campaigns or create_campaign"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "pause_campaign",
          "title": "Pause a campaign",
          "description": "Pause a running campaign. Nothing new goes out until start_campaign is called again; nobody mid-conversation is cut off.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "campaign_id"
            ],
            "properties": {
              "campaign_id": {
                "type": "string",
                "minLength": 1,
                "description": "Campaign id from list_campaigns or create_campaign"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "stop_campaign",
          "title": "Stop a campaign",
          "description": "End a campaign for good. It contacts nobody else and cannot be restarted. Ask the user to confirm before calling this tool.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "campaign_id"
            ],
            "properties": {
              "campaign_id": {
                "type": "string",
                "minLength": 1,
                "description": "Campaign id from list_campaigns or create_campaign"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "get_performance_summary",
          "title": "Get a performance summary",
          "description": "How the store did over a date range compared with the days before: sales, new opportunities, appointments and visits, how fast new leads were answered, and calls, texts, emails and results. Defaults to this month to date.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "to": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "description": "Last day, YYYY-MM-DD, inclusive; defaults to today"
              },
              "from": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "description": "First day, YYYY-MM-DD"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "revdesk-usage-summary",
          "uri": "ui://revdesk/usage-summary.html",
          "mimeType": "text/html;profile=mcp-app",
          "description": "A compact MCP App surface accompanying the get_usage tool result."
        }
      ],
      "prompts": []
    },
    "instructions": "Use RevDesk to set up and run a business's customer conversations: workspaces and settings, team members and lead routing, lead sources and connected apps, phone lines and caller ID, AI agents and what they know, calendars and booking hours, campaigns, texting settings, webhooks, contacts, conversations, texts, calls, bookings, tasks, reports, and usage. Connecting a calendar, CRM or other app needs the user to sign in on that app's site: give them the connect_url the tools return. Go straight to the tool that does what the user asked; every tool already acts in the connected organization. Call whoami only when the user asks which account is connected or a tool is refused for a missing permission. Leave workspace_id out: tools then act in the connected organization, which is what the user means unless they name another store or location. Only then look that store up with list_workspaces and pass its id as workspace_id. Tool discovery is public; organization data and every tool call require a least-privilege OAuth grant or RevDesk API key. A field missing from a result is empty or not set. Tools only a workspace admin can use are not listed for other members. Before a tool marked destructive, an action that spends money, or an action that contacts someone, describe exactly what will happen and get the user's confirmation."
  },
  "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."
}