{
  "tools": [
    "search",
    "enrich",
    "campaign_read",
    "campaign_write",
    "crm_write",
    "inbox_read",
    "inbox_write",
    "send"
  ],
  "methods": [
    {
      "tool": "campaign_read",
      "method": "workspace",
      "action": "workspace",
      "apiKey": true,
      "readOnly": true,
      "example": {},
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "type": ["string", "null"]
          },
          "name": {
            "type": ["string", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "list_campaigns",
      "action": "list",
      "apiKey": true,
      "readOnly": true,
      "example": {},
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "after": {
            "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)$"
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "campaigns": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "name": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": ["string", "null"]
                    },
                    "mode": {
                      "type": ["string", "null"]
                    },
                    "timezone": {
                      "type": ["string", "null"]
                    },
                    "delivery_provider": {
                      "type": ["string", "null"]
                    },
                    "current_revision": {
                      "type": ["number", "null"]
                    },
                    "daily_limit": {
                      "type": ["number", "null"]
                    },
                    "total_send_limit": {
                      "type": ["number", "null"]
                    },
                    "can_manage": {
                      "type": ["boolean", "null"]
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "leads": {
                          "type": ["number", "null"]
                        },
                        "replied": {
                          "type": ["number", "null"]
                        },
                        "needs_review": {
                          "type": ["number", "null"]
                        },
                        "scheduled": {
                          "type": ["number", "null"]
                        },
                        "sent": {
                          "type": ["number", "null"]
                        },
                        "bounced": {
                          "type": ["number", "null"]
                        },
                        "unsubscribed": {
                          "type": ["number", "null"]
                        },
                        "blocked": {
                          "type": ["number", "null"]
                        },
                        "failed": {
                          "type": ["number", "null"]
                        },
                        "delivered": {
                          "type": ["number", "null"]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "mailboxes": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "mailbox_email": {
                      "type": ["string", "null"]
                    },
                    "provider": {
                      "type": ["string", "null"]
                    },
                    "connected": {
                      "type": ["boolean", "null"]
                    },
                    "paused": {
                      "type": ["boolean", "null"]
                    },
                    "daily_limit": {
                      "type": ["number", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "accounts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "provider": {
                      "type": ["string", "null"]
                    },
                    "email": {
                      "type": ["string", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "instantlyConnections": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "alias": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": ["string", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "icps": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "name": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": ["string", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "type": "object",
            "properties": {
              "page": {
                "type": ["number", "null"]
              },
              "size": {
                "type": ["number", "null"]
              },
              "total": {
                "type": ["number", "null"]
              },
              "next": {
                "type": ["string", "null"]
              },
              "nextCursor": {
                "type": ["string", "null"]
              },
              "after": {
                "type": ["string", "null"]
              },
              "hasMore": {
                "type": ["boolean", "null"]
              },
              "has_more": {
                "type": ["boolean", "null"]
              }
            },
            "additionalProperties": false
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "nextAfter": {
            "type": ["string", "null"]
          },
          "hasMore": {
            "type": ["boolean", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "read_campaign",
      "action": "detail",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "page": 1,
        "status": "needs_review"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          },
          "status": {
            "type": "string",
            "enum": ["all", "needs_review", "scheduled", "sent"]
          }
        },
        "required": ["campaignId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "campaign": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "name": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "mode": {
                "type": ["string", "null"]
              },
              "timezone": {
                "type": ["string", "null"]
              },
              "delivery_provider": {
                "type": ["string", "null"]
              },
              "current_revision": {
                "type": ["number", "null"]
              },
              "daily_limit": {
                "type": ["number", "null"]
              },
              "total_send_limit": {
                "type": ["number", "null"]
              },
              "can_manage": {
                "type": ["boolean", "null"]
              },
              "stats": {
                "type": "object",
                "properties": {
                  "leads": {
                    "type": ["number", "null"]
                  },
                  "replied": {
                    "type": ["number", "null"]
                  },
                  "needs_review": {
                    "type": ["number", "null"]
                  },
                  "scheduled": {
                    "type": ["number", "null"]
                  },
                  "sent": {
                    "type": ["number", "null"]
                  },
                  "bounced": {
                    "type": ["number", "null"]
                  },
                  "unsubscribed": {
                    "type": ["number", "null"]
                  },
                  "blocked": {
                    "type": ["number", "null"]
                  },
                  "failed": {
                    "type": ["number", "null"]
                  },
                  "delivered": {
                    "type": ["number", "null"]
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "version": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": ["string", "null"]
                  },
                  "timezone": {
                    "type": ["string", "null"]
                  },
                  "delivery_provider": {
                    "type": ["string", "null"]
                  },
                  "instantly_connection_id": {
                    "type": ["string", "null"]
                  },
                  "icp_id": {
                    "type": ["string", "null"]
                  },
                  "signature_mode": {
                    "type": ["string", "null"]
                  },
                  "revision": {
                    "type": ["number", "null"]
                  },
                  "start_minute": {
                    "type": ["number", "null"]
                  },
                  "end_minute": {
                    "type": ["number", "null"]
                  },
                  "daily_limit": {
                    "type": ["number", "null"]
                  },
                  "cooldown_days": {
                    "type": ["number", "null"]
                  },
                  "total_send_limit": {
                    "type": ["number", "null"]
                  },
                  "weekdays": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sender_ids": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sequence": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "subject": {
                              "type": ["string", "null"]
                            },
                            "body": {
                              "type": ["string", "null"]
                            },
                            "agentDraftSource": {
                              "type": ["string", "null"]
                            },
                            "agent_draft_source": {
                              "type": ["string", "null"]
                            },
                            "delayHours": {
                              "type": ["number", "null"]
                            },
                            "attachmentIds": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "writingGuide": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": ["string", "null"]
                                },
                                "name": {
                                  "type": ["string", "null"]
                                },
                                "subject": {
                                  "type": ["string", "null"]
                                },
                                "content": {
                                  "type": ["string", "null"]
                                },
                                "mode": {
                                  "type": ["string", "null"]
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "exclude_previous_outreach": {
                    "type": ["boolean", "null"]
                  },
                  "exclude_customers": {
                    "type": ["boolean", "null"]
                  },
                  "exclude_active_opportunities": {
                    "type": ["boolean", "null"]
                  },
                  "stop_on_reply": {
                    "type": ["boolean", "null"]
                  },
                  "stop_company_on_reply": {
                    "type": ["boolean", "null"]
                  },
                  "include_mailing_address": {
                    "type": ["boolean", "null"]
                  },
                  "open_tracking_enabled": {
                    "type": ["boolean", "null"]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "enrollments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "recipient_email": {
                      "type": ["string", "null"]
                    },
                    "person_record_id": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": ["string", "null"]
                    },
                    "verification": {
                      "type": ["string", "null"]
                    },
                    "last_reply_at": {
                      "type": ["string", "null"]
                    },
                    "last_sent_at": {
                      "type": ["string", "null"]
                    },
                    "pause_until": {
                      "type": ["string", "null"]
                    },
                    "campaign_revision": {
                      "type": ["number", "null"]
                    },
                    "person": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "full_name": {
                              "type": ["string", "null"]
                            },
                            "job_title": {
                              "type": ["string", "null"]
                            },
                            "company_name": {
                              "type": ["string", "null"]
                            },
                            "company_domain": {
                              "type": ["string", "null"]
                            },
                            "linkedin_url": {
                              "type": ["string", "null"]
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recipient_verification": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "verdict": {
                              "type": ["string", "null"]
                            },
                            "reason": {
                              "type": ["string", "null"]
                            },
                            "checkedAt": {
                              "type": ["string", "null"]
                            },
                            "expiresAt": {
                              "type": ["string", "null"]
                            },
                            "isFresh": {
                              "type": ["boolean", "null"]
                            },
                            "role": {
                              "type": ["boolean", "null"]
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "messages": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": ["string", "null"]
                              },
                              "draft_id": {
                                "type": ["string", "null"]
                              },
                              "status": {
                                "type": ["string", "null"]
                              },
                              "block_reason": {
                                "type": ["string", "null"]
                              },
                              "due_at": {
                                "type": ["string", "null"]
                              },
                              "sent_at": {
                                "type": ["string", "null"]
                              },
                              "step": {
                                "type": ["number", "null"]
                              },
                              "draft_revision": {
                                "type": ["number", "null"]
                              },
                              "requires_admin_approval": {
                                "type": ["boolean", "null"]
                              },
                              "delivery_failure": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "failedAt": {
                                        "type": ["string", "null"]
                                      },
                                      "reason": {
                                        "type": ["string", "null"]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "senders": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "mailbox_email": {
                      "type": ["string", "null"]
                    },
                    "provider": {
                      "type": ["string", "null"]
                    },
                    "connected": {
                      "type": ["boolean", "null"]
                    },
                    "paused": {
                      "type": ["boolean", "null"]
                    },
                    "daily_limit": {
                      "type": ["number", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "type": "object",
            "properties": {
              "leads": {
                "type": ["number", "null"]
              },
              "replied": {
                "type": ["number", "null"]
              },
              "needs_review": {
                "type": ["number", "null"]
              },
              "scheduled": {
                "type": ["number", "null"]
              },
              "sent": {
                "type": ["number", "null"]
              },
              "bounced": {
                "type": ["number", "null"]
              },
              "unsubscribed": {
                "type": ["number", "null"]
              },
              "blocked": {
                "type": ["number", "null"]
              },
              "failed": {
                "type": ["number", "null"]
              },
              "delivered": {
                "type": ["number", "null"]
              }
            },
            "additionalProperties": false
          },
          "counts": {
            "type": "object",
            "properties": {
              "active": {
                "type": ["number", "null"]
              },
              "paused": {
                "type": ["number", "null"]
              },
              "replied": {
                "type": ["number", "null"]
              },
              "completed": {
                "type": ["number", "null"]
              },
              "cancelled": {
                "type": ["number", "null"]
              },
              "suppressed": {
                "type": ["number", "null"]
              },
              "failed": {
                "type": ["number", "null"]
              }
            },
            "additionalProperties": false
          },
          "page": {
            "type": "object",
            "properties": {
              "page": {
                "type": ["number", "null"]
              },
              "size": {
                "type": ["number", "null"]
              },
              "total": {
                "type": ["number", "null"]
              },
              "next": {
                "type": ["string", "null"]
              },
              "nextCursor": {
                "type": ["string", "null"]
              },
              "after": {
                "type": ["string", "null"]
              },
              "hasMore": {
                "type": ["boolean", "null"]
              },
              "has_more": {
                "type": ["boolean", "null"]
              }
            },
            "additionalProperties": false
          },
          "manualCopyRequired": {
            "type": ["boolean", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "get_run",
      "action": "run",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "runId": "11111111-1111-4111-8111-111111111111"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "runId": {
            "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)$"
          },
          "campaignId": {
            "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)$"
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "run": {
            "type": "object",
            "properties": {
              "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)$"
              },
              "campaignId": {
                "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)$"
              },
              "campaignRevision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "status": {
                "type": "string",
                "enum": [
                  "finding_prospects",
                  "verifying_contacts",
                  "preparing_emails",
                  "adding_prospects",
                  "completed",
                  "added_to_campaign",
                  "saved_to_crm",
                  "failed"
                ]
              },
              "terminal": {
                "type": "boolean"
              },
              "progress": {
                "type": "object",
                "properties": {
                  "target": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "prospectsFound": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "prospectsQualified": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "contactsVerified": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "emailsPrepared": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "emailsHeld": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addedToCampaign": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "target",
                  "prospectsFound",
                  "prospectsQualified",
                  "contactsVerified",
                  "emailsPrepared",
                  "emailsHeld",
                  "addedToCampaign"
                ],
                "additionalProperties": false
              },
              "skipped": {
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "reason": {
                      "type": "string",
                      "enum": [
                        "not_a_fit",
                        "no_verified_email",
                        "already_contacted",
                        "not_eligible",
                        "details_unverified",
                        "email_not_written",
                        "lead_limit_reached",
                        "other"
                      ]
                    },
                    "count": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": ["reason", "count", "label"],
                  "additionalProperties": false
                }
              },
              "failure": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "enum": [
                          "workspace_details_missing",
                          "no_matching_accounts",
                          "no_verified_emails",
                          "allowance_reached",
                          "temporarily_unavailable",
                          "emails_not_prepared",
                          "prospects_not_added",
                          "could_not_complete"
                        ]
                      },
                      "stoppedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "finding_prospects",
                              "verifying_contacts",
                              "preparing_emails",
                              "adding_prospects"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": ["reason", "stoppedAt", "message"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "completedAt": {
                "type": ["string", "null"]
              },
              "reviewUrl": {
                "type": "string",
                "format": "uri"
              },
              "next": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "campaignId",
              "campaignRevision",
              "status",
              "terminal",
              "progress",
              "skipped",
              "failure",
              "createdAt",
              "updatedAt",
              "completedAt",
              "reviewUrl",
              "next"
            ],
            "additionalProperties": false
          }
        },
        "required": ["run"],
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "list_replies",
      "action": "replies",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "page": 1
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
          }
        },
        "required": ["campaignId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "replies": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": ["string", "null"]
                    },
                    "occurred_at": {
                      "type": ["string", "null"]
                    },
                    "recipient_email": {
                      "type": ["string", "null"]
                    },
                    "enrollment_id": {
                      "type": ["string", "null"]
                    },
                    "enrollment_status": {
                      "type": ["string", "null"]
                    },
                    "intent": {
                      "type": ["string", "null"]
                    },
                    "from_email": {
                      "type": ["string", "null"]
                    },
                    "review": {
                      "type": ["boolean", "null"]
                    },
                    "person": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "full_name": {
                              "type": ["string", "null"]
                            },
                            "job_title": {
                              "type": ["string", "null"]
                            },
                            "company_name": {
                              "type": ["string", "null"]
                            },
                            "company_domain": {
                              "type": ["string", "null"]
                            },
                            "linkedin_url": {
                              "type": ["string", "null"]
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "thread": {
                      "default": null,
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "account_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 500
                            },
                            "thread_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 500
                            },
                            "provider": {
                              "type": "string",
                              "enum": ["gmail", "outlook", "instantly"]
                            }
                          },
                          "required": ["account_id", "thread_id", "provider"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "type": "object",
            "properties": {
              "page": {
                "type": ["number", "null"]
              },
              "size": {
                "type": ["number", "null"]
              },
              "total": {
                "type": ["number", "null"]
              },
              "next": {
                "type": ["string", "null"]
              },
              "nextCursor": {
                "type": ["string", "null"]
              },
              "after": {
                "type": ["string", "null"]
              },
              "hasMore": {
                "type": ["boolean", "null"]
              },
              "has_more": {
                "type": ["boolean", "null"]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "list_drafts",
      "action": "drafts",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "recipientEmails": ["jordan@example.com"]
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "after": {
            "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)$"
          },
          "personRecordIds": {
            "minItems": 1,
            "maxItems": 100,
            "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)$"
            }
          },
          "recipientEmails": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 254,
              "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,}$"
            }
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "drafts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "recipient_email": {
                      "type": ["string", "null"]
                    },
                    "subject": {
                      "type": ["string", "null"]
                    },
                    "person_record_id": {
                      "type": ["string", "null"]
                    },
                    "revision": {
                      "type": ["number", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "get_message",
      "action": "message",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "messageId": "11111111-1111-4111-8111-111111111111"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "messageId": {
            "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)$"
          }
        },
        "required": ["messageId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "message": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "draft_id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "block_reason": {
                "type": ["string", "null"]
              },
              "due_at": {
                "type": ["string", "null"]
              },
              "sent_at": {
                "type": ["string", "null"]
              },
              "step": {
                "type": ["number", "null"]
              },
              "draft_revision": {
                "type": ["number", "null"]
              },
              "requires_admin_approval": {
                "type": ["boolean", "null"]
              },
              "delivery_failure": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "failedAt": {
                        "type": ["string", "null"]
                      },
                      "reason": {
                        "type": ["string", "null"]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "draft": {
            "type": "object",
            "properties": {
              "draft_id": {
                "type": ["string", "null"]
              },
              "id": {
                "type": ["string", "null"]
              },
              "subject": {
                "type": ["string", "null"]
              },
              "body": {
                "type": ["string", "null"]
              },
              "to": {
                "type": ["string", "null"]
              },
              "cc": {
                "type": ["string", "null"]
              },
              "bcc": {
                "type": ["string", "null"]
              },
              "recipient_email": {
                "type": ["string", "null"]
              },
              "enrollment_id": {
                "type": ["string", "null"]
              },
              "revision": {
                "type": ["number", "null"]
              },
              "step": {
                "type": ["number", "null"]
              },
              "attachment_ids": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "enrollmentId": {
            "type": ["string", "null"]
          },
          "campaignId": {
            "type": ["string", "null"]
          },
          "campaignRevision": {
            "type": ["number", "null"]
          },
          "recipientVerification": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "verdict": {
                    "type": ["string", "null"]
                  },
                  "reason": {
                    "type": ["string", "null"]
                  },
                  "checkedAt": {
                    "type": ["string", "null"]
                  },
                  "expiresAt": {
                    "type": ["string", "null"]
                  },
                  "isFresh": {
                    "type": ["boolean", "null"]
                  },
                  "role": {
                    "type": ["boolean", "null"]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "deliveryHold": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": ["string", "null"]
                  },
                  "receivedAt": {
                    "type": ["string", "null"]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "events": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": ["string", "null"]
                    },
                    "occurred_at": {
                      "type": ["string", "null"]
                    },
                    "delivery_status": {
                      "type": ["string", "null"]
                    },
                    "delivery_category": {
                      "type": ["string", "null"]
                    },
                    "reply_intent": {
                      "type": ["string", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "list_submissions",
      "action": "submissions",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          }
        },
        "required": ["campaignId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "submissions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": ["string", "null"]
                    },
                    "campaign_id": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": ["string", "null"]
                    },
                    "feedback": {
                      "type": ["string", "null"]
                    },
                    "submitted_at": {
                      "type": ["string", "null"]
                    },
                    "reviewed_at": {
                      "type": ["string", "null"]
                    },
                    "campaign_revision": {
                      "type": ["number", "null"]
                    },
                    "message_count": {
                      "type": ["number", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_read",
      "method": "get_submission",
      "action": "submission",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "submissionId": "11111111-1111-4111-8111-111111111111"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "submissionId": {
            "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)$"
          }
        },
        "required": ["submissionId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "submission": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "campaign_id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "feedback": {
                "type": ["string", "null"]
              },
              "submitted_at": {
                "type": ["string", "null"]
              },
              "reviewed_at": {
                "type": ["string", "null"]
              },
              "campaign_revision": {
                "type": ["number", "null"]
              },
              "message_count": {
                "type": ["number", "null"]
              },
              "items": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "draftId": {
                          "type": ["string", "null"]
                        },
                        "messageId": {
                          "type": ["string", "null"]
                        },
                        "revision": {
                          "type": ["number", "null"]
                        },
                        "step": {
                          "type": ["number", "null"]
                        },
                        "snapshot": {
                          "type": "object",
                          "properties": {
                            "draft_id": {
                              "type": ["string", "null"]
                            },
                            "id": {
                              "type": ["string", "null"]
                            },
                            "subject": {
                              "type": ["string", "null"]
                            },
                            "body": {
                              "type": ["string", "null"]
                            },
                            "to": {
                              "type": ["string", "null"]
                            },
                            "cc": {
                              "type": ["string", "null"]
                            },
                            "bcc": {
                              "type": ["string", "null"]
                            },
                            "recipient_email": {
                              "type": ["string", "null"]
                            },
                            "enrollment_id": {
                              "type": ["string", "null"]
                            },
                            "revision": {
                              "type": ["number", "null"]
                            },
                            "step": {
                              "type": ["number", "null"]
                            },
                            "attachment_ids": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "save_campaign",
      "action": "save",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "expectedRevision": 0,
        "name": "Selected prospects",
        "status": "draft",
        "config": {
          "deliveryProvider": "native",
          "mode": "review",
          "timezone": "America/Los_Angeles",
          "weekdays": [1, 2, 3, 4, 5],
          "startMinute": 540,
          "endMinute": 1020,
          "dailyLimit": 10,
          "senderIds": ["11111111-1111-4111-8111-111111111111"],
          "sequence": [
            {
              "delayHours": 0,
              "subject": "A question about your expansion",
              "body": "Write and review the recipient-specific message before approving it."
            }
          ],
          "excludePreviousOutreach": true,
          "excludeCustomers": true,
          "excludeActiveOpportunities": true,
          "cooldownDays": 90,
          "stopOnReply": true,
          "stopCompanyOnReply": true
        }
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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"
              }
            ]
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "status": {
            "type": "string",
            "enum": ["draft", "paused"]
          },
          "config": {
            "type": "object",
            "properties": {
              "deliveryProvider": {
                "default": "native",
                "type": "string",
                "enum": ["native", "instantly"]
              },
              "instantlyConnectionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mode": {
                "type": "string",
                "const": "review"
              },
              "timezone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "weekdays": {
                "minItems": 1,
                "maxItems": 7,
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 7
                }
              },
              "startMinute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1439
              },
              "endMinute": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1440
              },
              "dailyLimit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000
              },
              "totalSendLimit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "senderIds": {
                "maxItems": 200,
                "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)$"
                }
              },
              "sequence": {
                "minItems": 1,
                "maxItems": 5,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "delayHours": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2160
                    },
                    "subject": {
                      "type": "string",
                      "maxLength": 998
                    },
                    "body": {
                      "type": "string",
                      "maxLength": 100000
                    },
                    "agentDraftSource": {
                      "type": "string",
                      "enum": ["draft", "template"]
                    },
                    "attachmentIds": {
                      "maxItems": 5,
                      "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)$"
                      }
                    },
                    "writingGuide": {
                      "type": "object",
                      "properties": {
                        "researchMode": {
                          "type": "string",
                          "const": "customer_account"
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "subject": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "content": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 12000
                        }
                      },
                      "required": ["id", "name", "subject", "content"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["delayHours", "subject", "body"],
                  "additionalProperties": false
                }
              },
              "excludePreviousOutreach": {
                "type": "boolean"
              },
              "excludeCustomers": {
                "default": true,
                "type": "boolean"
              },
              "excludeActiveOpportunities": {
                "default": true,
                "type": "boolean"
              },
              "cooldownDays": {
                "type": "integer",
                "minimum": 0,
                "maximum": 3650
              },
              "stopOnReply": {
                "type": "boolean"
              },
              "stopCompanyOnReply": {
                "type": "boolean"
              },
              "includeMailingAddress": {
                "default": false,
                "type": "boolean"
              },
              "icpId": {
                "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"
                  }
                ]
              },
              "signatureMode": {
                "default": "first_touch",
                "type": "string",
                "enum": ["first_touch", "full", "none"]
              },
              "openTrackingEnabled": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "mode",
              "timezone",
              "weekdays",
              "startMinute",
              "endMinute",
              "dailyLimit",
              "senderIds",
              "sequence",
              "excludePreviousOutreach",
              "cooldownDays",
              "stopOnReply",
              "stopCompanyOnReply"
            ],
            "additionalProperties": false
          }
        },
        "required": ["expectedRevision", "name", "status", "config"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "campaign": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "name": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "mode": {
                "type": ["string", "null"]
              },
              "timezone": {
                "type": ["string", "null"]
              },
              "delivery_provider": {
                "type": ["string", "null"]
              },
              "current_revision": {
                "type": ["number", "null"]
              },
              "daily_limit": {
                "type": ["number", "null"]
              },
              "total_send_limit": {
                "type": ["number", "null"]
              },
              "can_manage": {
                "type": ["boolean", "null"]
              },
              "stats": {
                "type": "object",
                "properties": {
                  "leads": {
                    "type": ["number", "null"]
                  },
                  "replied": {
                    "type": ["number", "null"]
                  },
                  "needs_review": {
                    "type": ["number", "null"]
                  },
                  "scheduled": {
                    "type": ["number", "null"]
                  },
                  "sent": {
                    "type": ["number", "null"]
                  },
                  "bounced": {
                    "type": ["number", "null"]
                  },
                  "unsubscribed": {
                    "type": ["number", "null"]
                  },
                  "blocked": {
                    "type": ["number", "null"]
                  },
                  "failed": {
                    "type": ["number", "null"]
                  },
                  "delivered": {
                    "type": ["number", "null"]
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "version": {
            "type": "object",
            "properties": {
              "mode": {
                "type": ["string", "null"]
              },
              "timezone": {
                "type": ["string", "null"]
              },
              "delivery_provider": {
                "type": ["string", "null"]
              },
              "instantly_connection_id": {
                "type": ["string", "null"]
              },
              "icp_id": {
                "type": ["string", "null"]
              },
              "signature_mode": {
                "type": ["string", "null"]
              },
              "revision": {
                "type": ["number", "null"]
              },
              "start_minute": {
                "type": ["number", "null"]
              },
              "end_minute": {
                "type": ["number", "null"]
              },
              "daily_limit": {
                "type": ["number", "null"]
              },
              "cooldown_days": {
                "type": ["number", "null"]
              },
              "total_send_limit": {
                "type": ["number", "null"]
              },
              "weekdays": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sender_ids": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sequence": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "subject": {
                          "type": ["string", "null"]
                        },
                        "body": {
                          "type": ["string", "null"]
                        },
                        "agentDraftSource": {
                          "type": ["string", "null"]
                        },
                        "agent_draft_source": {
                          "type": ["string", "null"]
                        },
                        "delayHours": {
                          "type": ["number", "null"]
                        },
                        "attachmentIds": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "writingGuide": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": ["string", "null"]
                            },
                            "name": {
                              "type": ["string", "null"]
                            },
                            "subject": {
                              "type": ["string", "null"]
                            },
                            "content": {
                              "type": ["string", "null"]
                            },
                            "mode": {
                              "type": ["string", "null"]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "exclude_previous_outreach": {
                "type": ["boolean", "null"]
              },
              "exclude_customers": {
                "type": ["boolean", "null"]
              },
              "exclude_active_opportunities": {
                "type": ["boolean", "null"]
              },
              "stop_on_reply": {
                "type": ["boolean", "null"]
              },
              "stop_company_on_reply": {
                "type": ["boolean", "null"]
              },
              "include_mailing_address": {
                "type": ["boolean", "null"]
              },
              "open_tracking_enabled": {
                "type": ["boolean", "null"]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "create_drafts_from_contacts",
      "action": "draftsFromContacts",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "personRecordIds": ["11111111-1111-4111-8111-111111111111"]
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "personRecordIds": {
            "minItems": 1,
            "maxItems": 100,
            "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)$"
            }
          }
        },
        "required": ["personRecordIds"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "created": {
            "type": ["number", "null"]
          },
          "skipped": {
            "type": ["number", "null"]
          },
          "drafts": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "personRecordId": {
                      "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)$"
                    },
                    "status": {
                      "type": "string",
                      "enum": ["created", "skipped"]
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "draft_exists",
                            "no_email",
                            "contact_unavailable"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "draftId": {
                      "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"
                        }
                      ]
                    },
                    "revision": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recipientEmail": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": [
                    "personRecordId",
                    "status",
                    "reason",
                    "draftId",
                    "revision",
                    "recipientEmail"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "enroll_drafts",
      "action": "enrollMany",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "campaignRevision": 3,
        "drafts": [
          {
            "draftId": "11111111-1111-4111-8111-111111111111",
            "draftRevision": 1
          }
        ]
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "campaignRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "drafts": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "draftId": {
                  "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)$"
                },
                "draftRevision": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                }
              },
              "required": ["draftId", "draftRevision"],
              "additionalProperties": false
            }
          }
        },
        "required": ["campaignId", "campaignRevision", "drafts"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "enrolled": {
            "type": ["number", "null"]
          },
          "results": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "draftId": {
                      "type": ["string", "null"]
                    },
                    "enrollmentId": {
                      "type": ["string", "null"]
                    },
                    "status": {
                      "type": ["string", "null"]
                    },
                    "code": {
                      "type": ["string", "null"]
                    },
                    "enrollment": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": ["string", "null"]
                        },
                        "recipient_email": {
                          "type": ["string", "null"]
                        },
                        "person_record_id": {
                          "type": ["string", "null"]
                        },
                        "status": {
                          "type": ["string", "null"]
                        },
                        "verification": {
                          "type": ["string", "null"]
                        },
                        "last_reply_at": {
                          "type": ["string", "null"]
                        },
                        "last_sent_at": {
                          "type": ["string", "null"]
                        },
                        "pause_until": {
                          "type": ["string", "null"]
                        },
                        "campaign_revision": {
                          "type": ["number", "null"]
                        },
                        "person": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "full_name": {
                                  "type": ["string", "null"]
                                },
                                "job_title": {
                                  "type": ["string", "null"]
                                },
                                "company_name": {
                                  "type": ["string", "null"]
                                },
                                "company_domain": {
                                  "type": ["string", "null"]
                                },
                                "linkedin_url": {
                                  "type": ["string", "null"]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "recipient_verification": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "verdict": {
                                  "type": ["string", "null"]
                                },
                                "reason": {
                                  "type": ["string", "null"]
                                },
                                "checkedAt": {
                                  "type": ["string", "null"]
                                },
                                "expiresAt": {
                                  "type": ["string", "null"]
                                },
                                "isFresh": {
                                  "type": ["boolean", "null"]
                                },
                                "role": {
                                  "type": ["boolean", "null"]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "messages": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": ["string", "null"]
                                  },
                                  "draft_id": {
                                    "type": ["string", "null"]
                                  },
                                  "status": {
                                    "type": ["string", "null"]
                                  },
                                  "block_reason": {
                                    "type": ["string", "null"]
                                  },
                                  "due_at": {
                                    "type": ["string", "null"]
                                  },
                                  "sent_at": {
                                    "type": ["string", "null"]
                                  },
                                  "step": {
                                    "type": ["number", "null"]
                                  },
                                  "draft_revision": {
                                    "type": ["number", "null"]
                                  },
                                  "requires_admin_approval": {
                                    "type": ["boolean", "null"]
                                  },
                                  "delivery_failure": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "failedAt": {
                                            "type": ["string", "null"]
                                          },
                                          "reason": {
                                            "type": ["string", "null"]
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "find_prospects",
      "action": "findProspects",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "campaignRevision": 3,
        "targetCount": 10,
        "addToCampaign": false
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "campaignRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "targetCount": {
            "default": 10,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "addToCampaign": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": ["campaignId", "campaignRevision"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "run": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "campaignId": {
                "type": ["string", "null"]
              },
              "campaignRevision": {
                "type": ["number", "null"]
              }
            },
            "additionalProperties": false
          },
          "next": {
            "type": ["string", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "add_prospects",
      "action": "addProspects",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "campaignRevision": 3,
        "people": [
          {
            "name": "Jordan Lee",
            "email": "jordan@example.com"
          }
        ],
        "addToCampaign": true
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "campaignRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "people": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "email": {
                  "type": "string",
                  "maxLength": 320,
                  "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,}$"
                },
                "firstName": {
                  "type": "string",
                  "maxLength": 100
                },
                "title": {
                  "type": "string",
                  "maxLength": 200
                },
                "company": {
                  "type": "string",
                  "maxLength": 200
                },
                "companyDomain": {
                  "type": "string",
                  "maxLength": 253
                },
                "linkedinUrl": {
                  "type": "string",
                  "maxLength": 500,
                  "format": "uri"
                },
                "summary": {
                  "type": "string",
                  "maxLength": 2000
                },
                "evidence": {
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 180
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      },
                      "observation": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 700
                      },
                      "publishedAt": {
                        "anyOf": [
                          {
                            "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])))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["label", "url", "observation"],
                    "additionalProperties": false
                  }
                }
              },
              "required": ["name", "email"],
              "additionalProperties": false
            }
          },
          "addToCampaign": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": ["campaignId", "campaignRevision", "people"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "run": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "campaignId": {
                "type": ["string", "null"]
              },
              "campaignRevision": {
                "type": ["number", "null"]
              }
            },
            "additionalProperties": false
          },
          "next": {
            "type": ["string", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "prepare_messages",
      "action": "prepareMessages",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "campaignRevision": 3,
        "all": true
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "campaignRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "all": {
            "type": "boolean",
            "const": true
          },
          "enrollmentId": {
            "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)$"
          },
          "sourceRunId": {
            "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)$"
          },
          "candidateKeys": {
            "minItems": 1,
            "maxItems": 15,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        },
        "required": ["campaignId", "campaignRevision"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "run": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "campaignId": {
                "type": ["string", "null"]
              },
              "campaignRevision": {
                "type": ["number", "null"]
              }
            },
            "additionalProperties": false
          },
          "queued": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "edit_message",
      "action": "edit",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "messageId": "11111111-1111-4111-8111-111111111111",
        "draftRevision": 1,
        "subject": "A question about your expansion",
        "body": "Hi Jordan, would it help if I sent the specifications we discussed?"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "messageId": {
            "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)$"
          },
          "draftRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "subject": {
            "type": "string",
            "maxLength": 998
          },
          "body": {
            "type": "string",
            "maxLength": 100000
          },
          "cc": {
            "default": "",
            "type": "string",
            "maxLength": 3000
          },
          "bcc": {
            "default": "",
            "type": "string",
            "maxLength": 3000
          }
        },
        "required": ["messageId", "draftRevision", "subject", "body"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "message": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "draft_id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "block_reason": {
                "type": ["string", "null"]
              },
              "due_at": {
                "type": ["string", "null"]
              },
              "sent_at": {
                "type": ["string", "null"]
              },
              "step": {
                "type": ["number", "null"]
              },
              "draft_revision": {
                "type": ["number", "null"]
              },
              "requires_admin_approval": {
                "type": ["boolean", "null"]
              },
              "delivery_failure": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "failedAt": {
                        "type": ["string", "null"]
                      },
                      "reason": {
                        "type": ["string", "null"]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "draft": {
            "type": "object",
            "properties": {
              "draft_id": {
                "type": ["string", "null"]
              },
              "id": {
                "type": ["string", "null"]
              },
              "subject": {
                "type": ["string", "null"]
              },
              "body": {
                "type": ["string", "null"]
              },
              "to": {
                "type": ["string", "null"]
              },
              "cc": {
                "type": ["string", "null"]
              },
              "bcc": {
                "type": ["string", "null"]
              },
              "recipient_email": {
                "type": ["string", "null"]
              },
              "enrollment_id": {
                "type": ["string", "null"]
              },
              "revision": {
                "type": ["number", "null"]
              },
              "step": {
                "type": ["number", "null"]
              },
              "attachment_ids": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "enrollmentId": {
            "type": ["string", "null"]
          },
          "campaignId": {
            "type": ["string", "null"]
          },
          "campaignRevision": {
            "type": ["number", "null"]
          },
          "recipientVerification": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "verdict": {
                    "type": ["string", "null"]
                  },
                  "reason": {
                    "type": ["string", "null"]
                  },
                  "checkedAt": {
                    "type": ["string", "null"]
                  },
                  "expiresAt": {
                    "type": ["string", "null"]
                  },
                  "isFresh": {
                    "type": ["boolean", "null"]
                  },
                  "role": {
                    "type": ["boolean", "null"]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "deliveryHold": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": ["string", "null"]
                  },
                  "receivedAt": {
                    "type": ["string", "null"]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "events": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": ["string", "null"]
                    },
                    "occurred_at": {
                      "type": ["string", "null"]
                    },
                    "delivery_status": {
                      "type": ["string", "null"]
                    },
                    "delivery_category": {
                      "type": ["string", "null"]
                    },
                    "reply_intent": {
                      "type": ["string", "null"]
                    }
                  },
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "submit_messages",
      "action": "submit",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "campaignRevision": 3,
        "items": [
          {
            "draftId": "11111111-1111-4111-8111-111111111111",
            "revision": 1
          }
        ]
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "campaignRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "items": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "draftId": {
                  "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)$"
                },
                "revision": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                }
              },
              "required": ["draftId", "revision"],
              "additionalProperties": false
            }
          }
        },
        "required": ["campaignId", "campaignRevision", "items"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "submission": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "campaign_id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "feedback": {
                "type": ["string", "null"]
              },
              "submitted_at": {
                "type": ["string", "null"]
              },
              "reviewed_at": {
                "type": ["string", "null"]
              },
              "campaign_revision": {
                "type": ["number", "null"]
              },
              "message_count": {
                "type": ["number", "null"]
              },
              "items": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "draftId": {
                          "type": ["string", "null"]
                        },
                        "messageId": {
                          "type": ["string", "null"]
                        },
                        "revision": {
                          "type": ["number", "null"]
                        },
                        "step": {
                          "type": ["number", "null"]
                        },
                        "snapshot": {
                          "type": "object",
                          "properties": {
                            "draft_id": {
                              "type": ["string", "null"]
                            },
                            "id": {
                              "type": ["string", "null"]
                            },
                            "subject": {
                              "type": ["string", "null"]
                            },
                            "body": {
                              "type": ["string", "null"]
                            },
                            "to": {
                              "type": ["string", "null"]
                            },
                            "cc": {
                              "type": ["string", "null"]
                            },
                            "bcc": {
                              "type": ["string", "null"]
                            },
                            "recipient_email": {
                              "type": ["string", "null"]
                            },
                            "enrollment_id": {
                              "type": ["string", "null"]
                            },
                            "revision": {
                              "type": ["number", "null"]
                            },
                            "step": {
                              "type": ["number", "null"]
                            },
                            "attachment_ids": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "campaign_write",
      "method": "cancel_enrollment",
      "action": "cancel",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "enrollmentId": "11111111-1111-4111-8111-111111111111"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "enrollmentId": {
            "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)$"
          }
        },
        "required": ["enrollmentId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "success": {
            "type": ["boolean", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "crm_write",
      "method": "contacts_import",
      "action": "importContacts",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "people": [
          {
            "name": "Jordan Lee",
            "email": "jordan@example.com",
            "company": "Example Manufacturing"
          }
        ]
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "people": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "email": {
                  "type": "string",
                  "maxLength": 254,
                  "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,}$"
                },
                "title": {
                  "type": "string",
                  "maxLength": 200
                },
                "company": {
                  "type": "string",
                  "maxLength": 200
                },
                "companyDomain": {
                  "type": "string",
                  "maxLength": 253
                },
                "linkedinUrl": {
                  "type": "string",
                  "maxLength": 500,
                  "format": "uri"
                },
                "summary": {
                  "type": "string",
                  "maxLength": 2000
                },
                "evidence": {
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 180
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2000,
                        "format": "uri"
                      },
                      "observation": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 700
                      },
                      "publishedAt": {
                        "anyOf": [
                          {
                            "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])))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["label", "url", "observation"],
                    "additionalProperties": false
                  }
                }
              },
              "required": ["name", "email"],
              "additionalProperties": false
            }
          }
        },
        "required": ["people"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "prospectsUrl": {
            "type": "string",
            "format": "uri"
          },
          "results": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "inputIndex": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "status": {
                  "type": "string",
                  "enum": ["saved", "needs_review"]
                },
                "personId": {
                  "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"
                    }
                  ]
                }
              },
              "required": ["inputIndex", "status", "personId"],
              "additionalProperties": false
            }
          }
        },
        "required": ["organizationId", "prospectsUrl", "results"],
        "additionalProperties": false
      }
    },
    {
      "tool": "crm_write",
      "method": "companies_import",
      "action": "importCompanies",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "requestId": "11111111-1111-4111-8111-111111111111",
        "companies": [
          {
            "name": "Example Manufacturing",
            "domain": "example.com"
          }
        ]
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "requestId": {
            "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": "New UUID for this batch. Keep it unchanged when retrying the same companies."
          },
          "companies": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "domain": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                },
                "website": {
                  "type": "string",
                  "maxLength": 2000,
                  "format": "uri"
                },
                "description": {
                  "type": "string",
                  "maxLength": 2000
                },
                "industry": {
                  "type": "string",
                  "maxLength": 200
                },
                "city": {
                  "type": "string",
                  "maxLength": 200
                },
                "stateCode": {
                  "type": "string",
                  "maxLength": 200
                },
                "country": {
                  "type": "string",
                  "maxLength": 200
                },
                "linkedinUrl": {
                  "type": "string",
                  "maxLength": 500,
                  "format": "uri"
                }
              },
              "required": ["name"],
              "additionalProperties": false
            }
          }
        },
        "required": ["requestId", "companies"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "companiesUrl": {
            "type": "string",
            "format": "uri"
          },
          "results": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "inputIndex": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "status": {
                  "type": "string",
                  "enum": ["created", "existing", "needs_review"]
                },
                "companyId": {
                  "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"
                    }
                  ]
                }
              },
              "required": ["inputIndex", "status", "companyId"],
              "additionalProperties": false
            }
          }
        },
        "required": ["organizationId", "companiesUrl", "results"],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_read",
      "method": "attention",
      "action": "attention",
      "apiKey": true,
      "readOnly": true,
      "example": {},
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "replies": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "thread": {
                      "type": "object",
                      "properties": {
                        "account_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        },
                        "thread_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        },
                        "provider": {
                          "type": "string",
                          "enum": ["gmail", "outlook", "instantly"]
                        }
                      },
                      "required": ["account_id", "thread_id", "provider"],
                      "additionalProperties": false
                    },
                    "subject": {
                      "type": "string"
                    },
                    "lastActivityAt": {
                      "type": "string"
                    },
                    "needsReply": {
                      "type": ["boolean", "null"]
                    },
                    "done": {
                      "type": "boolean"
                    },
                    "replyStatus": {
                      "type": ["string", "null"]
                    },
                    "latestMessage": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "date": {
                              "type": "string"
                            },
                            "direction": {
                              "type": "string",
                              "enum": ["incoming", "outgoing", "unknown"]
                            },
                            "subject": {
                              "type": "string"
                            },
                            "from": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                }
                              },
                              "required": ["name", "email"],
                              "additionalProperties": false
                            },
                            "to": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "email": {
                                    "type": "string"
                                  }
                                },
                                "required": ["name", "email"],
                                "additionalProperties": false
                              }
                            },
                            "labels": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "id",
                            "date",
                            "direction",
                            "subject",
                            "from",
                            "to"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reviewUrl": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "thread",
                    "subject",
                    "lastActivityAt",
                    "needsReply",
                    "done",
                    "replyStatus",
                    "latestMessage",
                    "reviewUrl"
                  ],
                  "additionalProperties": false
                }
              },
              "hasMore": {
                "type": "boolean"
              },
              "syncing": {
                "type": "boolean"
              },
              "incomplete": {
                "type": "boolean"
              }
            },
            "required": ["items", "hasMore", "syncing", "incomplete"],
            "additionalProperties": false
          },
          "campaignReview": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "campaignId": {
                      "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)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "prospects": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "emails": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reviewUrl": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "campaignId",
                    "name",
                    "prospects",
                    "emails",
                    "reviewUrl"
                  ],
                  "additionalProperties": false
                }
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": ["items", "hasMore"],
            "additionalProperties": false
          }
        },
        "required": ["organizationId", "replies", "campaignReview"],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_read",
      "method": "search_threads",
      "action": "searchThreads",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "folder": "needs_reply",
        "query": "expansion"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "folder": {
            "type": "string",
            "enum": ["inbox", "sent", "needs_reply"]
          },
          "accountId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "query": {
            "type": "string",
            "maxLength": 200
          },
          "cursor": {
            "type": "string",
            "maxLength": 22000
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "threads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "thread": {
                  "type": "object",
                  "properties": {
                    "account_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500
                    },
                    "thread_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500
                    },
                    "provider": {
                      "type": "string",
                      "enum": ["gmail", "outlook", "instantly"]
                    }
                  },
                  "required": ["account_id", "thread_id", "provider"],
                  "additionalProperties": false
                },
                "subject": {
                  "type": "string"
                },
                "lastActivityAt": {
                  "type": "string"
                },
                "needsReply": {
                  "type": ["boolean", "null"]
                },
                "done": {
                  "type": "boolean"
                },
                "replyStatus": {
                  "type": ["string", "null"]
                },
                "latestMessage": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "date": {
                          "type": "string"
                        },
                        "direction": {
                          "type": "string",
                          "enum": ["incoming", "outgoing", "unknown"]
                        },
                        "subject": {
                          "type": "string"
                        },
                        "from": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string"
                            }
                          },
                          "required": ["name", "email"],
                          "additionalProperties": false
                        },
                        "to": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              }
                            },
                            "required": ["name", "email"],
                            "additionalProperties": false
                          }
                        },
                        "labels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "date",
                        "direction",
                        "subject",
                        "from",
                        "to"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "thread",
                "subject",
                "lastActivityAt",
                "needsReply",
                "done",
                "replyStatus",
                "latestMessage"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "syncing": {
            "type": "boolean"
          },
          "incomplete": {
            "type": "boolean"
          }
        },
        "required": ["threads", "nextCursor", "syncing", "incomplete"],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_read",
      "method": "get_thread",
      "action": "getThread",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "thread": {
          "account_id": "mailbox-id",
          "thread_id": "thread-id",
          "provider": "gmail"
        },
        "format": "metadata"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "format": {
            "type": "string",
            "enum": ["metadata", "full"]
          },
          "before": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": ["thread"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "subject": {
            "type": "string"
          },
          "lastActivityAt": {
            "type": "string"
          },
          "needsReply": {
            "type": ["boolean", "null"]
          },
          "done": {
            "type": "boolean"
          },
          "replyStatus": {
            "type": ["string", "null"]
          },
          "messageCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "latestReceivedAt": {
            "type": ["string", "null"]
          },
          "latestSentAt": {
            "type": ["string", "null"]
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": ["incoming", "outgoing", "unknown"]
                },
                "subject": {
                  "type": "string"
                },
                "from": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    }
                  },
                  "required": ["name", "email"],
                  "additionalProperties": false
                },
                "to": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      }
                    },
                    "required": ["name", "email"],
                    "additionalProperties": false
                  }
                },
                "labels": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "text": {
                  "type": "string"
                },
                "textIncomplete": {
                  "type": "boolean"
                },
                "attachments": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "mimeType": {
                        "type": "string"
                      },
                      "size": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["id", "name", "mimeType", "size"],
                    "additionalProperties": false
                  }
                }
              },
              "required": ["id", "date", "direction", "subject", "from", "to"],
              "additionalProperties": false
            }
          },
          "nextBefore": {
            "type": ["string", "null"]
          }
        },
        "required": [
          "thread",
          "subject",
          "lastActivityAt",
          "needsReply",
          "done",
          "replyStatus",
          "messageCount",
          "latestReceivedAt",
          "latestSentAt",
          "messages",
          "nextBefore"
        ],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_read",
      "method": "get_email",
      "action": "getEmail",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "thread": {
          "account_id": "mailbox-id",
          "thread_id": "thread-id",
          "provider": "gmail"
        },
        "messageId": "incoming-message-id",
        "format": "full"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "format": {
            "type": "string",
            "enum": ["metadata", "full"]
          },
          "messageId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": ["thread", "messageId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "message": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "date": {
                "type": "string"
              },
              "direction": {
                "type": "string",
                "enum": ["incoming", "outgoing", "unknown"]
              },
              "subject": {
                "type": "string"
              },
              "from": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": ["name", "email"],
                "additionalProperties": false
              },
              "to": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    }
                  },
                  "required": ["name", "email"],
                  "additionalProperties": false
                }
              },
              "labels": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "text": {
                "type": "string"
              },
              "textIncomplete": {
                "type": "boolean"
              },
              "attachments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "mimeType": {
                      "type": "string"
                    },
                    "size": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["id", "name", "mimeType", "size"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["id", "date", "direction", "subject", "from", "to"],
            "additionalProperties": false
          }
        },
        "required": ["thread", "message"],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_read",
      "method": "get_attachment",
      "action": "getAttachment",
      "apiKey": true,
      "readOnly": true,
      "example": {
        "thread": {
          "account_id": "mailbox-id",
          "thread_id": "thread-id",
          "provider": "gmail"
        },
        "messageId": "incoming-message-id",
        "attachmentId": "attachment-id"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "messageId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "attachmentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000
          }
        },
        "required": ["thread", "messageId", "attachmentId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "messageId": {
            "type": "string"
          },
          "attachment": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "mimeType": {
                "type": "string"
              },
              "size": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": ["id", "name", "mimeType", "size"],
            "additionalProperties": false
          },
          "content": {
            "type": "string",
            "enum": ["text", "image"]
          },
          "text": {
            "type": "string"
          },
          "textIncomplete": {
            "type": "boolean"
          },
          "pages": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": ["thread", "messageId", "attachment", "content"],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_read",
      "method": "scheduled_replies",
      "action": "scheduledReplies",
      "apiKey": true,
      "readOnly": true,
      "example": {},
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          }
        },
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "replies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "thread": {
                  "type": "object",
                  "properties": {
                    "account_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500
                    },
                    "thread_id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500
                    },
                    "provider": {
                      "type": "string",
                      "enum": ["gmail", "outlook", "instantly"]
                    }
                  },
                  "required": ["account_id", "thread_id", "provider"],
                  "additionalProperties": false
                },
                "mailbox": {
                  "type": ["string", "null"]
                },
                "subject": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "status": {
                  "type": "string",
                  "enum": ["scheduled", "sending", "uncertain", "failed"]
                },
                "sendAt": {
                  "type": "string"
                },
                "failedAt": {
                  "type": ["string", "null"]
                },
                "snippet": {
                  "type": "string"
                },
                "reviewUrl": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "thread",
                "mailbox",
                "subject",
                "to",
                "revision",
                "status",
                "sendAt",
                "failedAt",
                "reviewUrl"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": ["organizationId", "replies"],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_write",
      "method": "replies_draft",
      "action": "draftReply",
      "apiKey": false,
      "readOnly": false,
      "example": {
        "thread": {
          "account_id": "mailbox-id",
          "thread_id": "thread-id",
          "provider": "gmail"
        },
        "messageId": "incoming-message-id",
        "body": "Thanks, Jordan. I can send those specifications today.",
        "requestId": "11111111-1111-4111-8111-111111111111"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "messageId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30000
          },
          "requestId": {
            "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)$"
          }
        },
        "required": ["thread", "messageId", "body", "requestId"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "messageId": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "reviewUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "organizationId",
          "thread",
          "messageId",
          "revision",
          "reviewUrl"
        ],
        "additionalProperties": false
      }
    },
    {
      "tool": "inbox_write",
      "method": "cancel_scheduled_reply",
      "action": "cancelScheduledReply",
      "apiKey": false,
      "readOnly": false,
      "example": {
        "thread": {
          "account_id": "mailbox-id",
          "thread_id": "thread-id",
          "provider": "gmail"
        },
        "revision": 1
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": ["thread", "revision"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string"
          },
          "reviewUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "organizationId",
          "thread",
          "revision",
          "status",
          "reviewUrl"
        ],
        "additionalProperties": false
      }
    },
    {
      "tool": "send",
      "method": "set_campaign_status",
      "action": "status",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "expectedRevision": 3,
        "status": "paused"
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "status": {
            "type": "string",
            "enum": ["active", "paused", "stopped"]
          },
          "confirmSend": {
            "type": "boolean"
          }
        },
        "required": ["campaignId", "expectedRevision", "status"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "success": {
            "type": ["boolean", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "send",
      "method": "approve_messages",
      "action": "review",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "campaignId": "11111111-1111-4111-8111-111111111111",
        "campaignRevision": 3,
        "items": [
          {
            "draftId": "11111111-1111-4111-8111-111111111111",
            "revision": 1
          }
        ],
        "confirmSend": true
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "campaignId": {
            "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)$"
          },
          "campaignRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "items": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "draftId": {
                  "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)$"
                },
                "revision": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                }
              },
              "required": ["draftId", "revision"],
              "additionalProperties": false
            }
          },
          "confirmSend": {
            "type": "boolean",
            "const": true
          }
        },
        "required": ["campaignId", "campaignRevision", "items", "confirmSend"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "reviewId": {
            "type": ["string", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "send",
      "method": "decide_submission",
      "action": "decideSubmission",
      "apiKey": true,
      "readOnly": false,
      "example": {
        "submissionId": "11111111-1111-4111-8111-111111111111",
        "approve": false,
        "feedback": "Please review the recipient and message."
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "submissionId": {
            "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)$"
          },
          "approve": {
            "type": "boolean"
          },
          "feedback": {
            "type": "string",
            "maxLength": 2000
          },
          "confirmSend": {
            "type": "boolean"
          }
        },
        "required": ["submissionId", "approve"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "submission": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string", "null"]
              },
              "campaign_id": {
                "type": ["string", "null"]
              },
              "status": {
                "type": ["string", "null"]
              },
              "feedback": {
                "type": ["string", "null"]
              },
              "submitted_at": {
                "type": ["string", "null"]
              },
              "reviewed_at": {
                "type": ["string", "null"]
              },
              "campaign_revision": {
                "type": ["number", "null"]
              },
              "message_count": {
                "type": ["number", "null"]
              },
              "items": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "draftId": {
                          "type": ["string", "null"]
                        },
                        "messageId": {
                          "type": ["string", "null"]
                        },
                        "revision": {
                          "type": ["number", "null"]
                        },
                        "step": {
                          "type": ["number", "null"]
                        },
                        "snapshot": {
                          "type": "object",
                          "properties": {
                            "draft_id": {
                              "type": ["string", "null"]
                            },
                            "id": {
                              "type": ["string", "null"]
                            },
                            "subject": {
                              "type": ["string", "null"]
                            },
                            "body": {
                              "type": ["string", "null"]
                            },
                            "to": {
                              "type": ["string", "null"]
                            },
                            "cc": {
                              "type": ["string", "null"]
                            },
                            "bcc": {
                              "type": ["string", "null"]
                            },
                            "recipient_email": {
                              "type": ["string", "null"]
                            },
                            "enrollment_id": {
                              "type": ["string", "null"]
                            },
                            "revision": {
                              "type": ["number", "null"]
                            },
                            "step": {
                              "type": ["number", "null"]
                            },
                            "attachment_ids": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    {
      "tool": "send",
      "method": "schedule_reply",
      "action": "scheduleReply",
      "apiKey": false,
      "readOnly": false,
      "example": {
        "thread": {
          "account_id": "mailbox-id",
          "thread_id": "thread-id",
          "provider": "gmail"
        },
        "revision": 1,
        "sendAt": "2027-01-15T10:00:00-08:00",
        "confirmSend": true
      },
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "description": "Workspace ID. Omit to use your current workspace.",
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "sendAt": {
            "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": "When to send, with a time zone offset."
          },
          "confirmSend": {
            "type": "boolean",
            "const": true
          }
        },
        "required": ["thread", "revision", "sendAt", "confirmSend"],
        "additionalProperties": false
      },
      "outputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "organizationId": {
            "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)$"
          },
          "thread": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "thread_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "provider": {
                "type": "string",
                "enum": ["gmail", "outlook", "instantly"]
              }
            },
            "required": ["account_id", "thread_id", "provider"],
            "additionalProperties": false
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string"
          },
          "sendAt": {
            "type": "string"
          },
          "reviewUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "organizationId",
          "thread",
          "revision",
          "status",
          "sendAt",
          "reviewUrl"
        ],
        "additionalProperties": false
      }
    }
  ]
}
