How to integrate Agencyzoom MCP with Vercel AI SDK v6

This guide walks you through connecting Agencyzoom to Vercel AI SDK v6 using the Composio tool router. By the end, you'll have a working Agencyzoom agent that can add a note to a specific customer profile, batch create five new insurance leads, change the status of a lead to won through natural language commands. This guide will help you understand how to give your Vercel AI SDK agent real control over a Agencyzoom account through Composio's Agencyzoom MCP server. Before we dive in, let's take a quick look at the key ideas and tools involved.

Agencyzoom logoAgencyzoom
Api KeyBasic With Jwt

AgencyZoom is a sales and performance platform built for P&C insurance agencies. It helps agents boost sales, retain clients, and analyze producer results in one place.

99 Tools

Introduction

This guide walks you through connecting Agencyzoom to Vercel AI SDK v6 using the Composio tool router. By the end, you'll have a working Agencyzoom agent that can add a note to a specific customer profile, batch create five new insurance leads, change the status of a lead to won through natural language commands.

This guide will help you understand how to give your Vercel AI SDK agent real control over a Agencyzoom account through Composio's Agencyzoom MCP server.

Before we dive in, let's take a quick look at the key ideas and tools involved.

Also integrate Agencyzoom with

TL;DR

Here's what you'll learn:
  • How to set up and configure a Vercel AI SDK agent with Agencyzoom integration
  • Using Composio's Tool Router to dynamically load and access Agencyzoom tools
  • Creating an MCP client connection using HTTP transport
  • Building an interactive CLI chat interface with conversation history management
  • Handling tool calls and results within the Vercel AI SDK framework

What is Vercel AI SDK?

The Vercel AI SDK is a TypeScript library for building AI-powered applications. It provides tools for creating agents that can use external services and maintain conversation state.

Key features include:

  • streamText: Core function for streaming responses with real-time tool support
  • MCP Client: Built-in support for Model Context Protocol via @ai-sdk/mcp
  • Step Counting: Control multi-step tool execution with stopWhen: stepCountIs()
  • OpenAI Provider: Native integration with OpenAI models

What is the Agencyzoom MCP server, and what's possible with it?

The Agencyzoom MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Agencyzoom account. It provides structured and secure access to your agency's sales and client management data, so your agent can create leads, manage tasks, update opportunities, take notes, and analyze performance automatically on your behalf.

  • Batch contact and lead creation: Quickly add multiple new contacts or leads to your Agencyzoom CRM in a single step to keep your pipeline growing efficiently.
  • Automated task management: Let your agent mark tasks as completed or delete batches of tasks, helping your team stay organized and focused on priorities.
  • Lead status and opportunity updates: Easily update a lead's lifecycle status or add new sales opportunities, enabling your sales process to move forward without manual intervention.
  • Intelligent note-taking: Add detailed notes to customer profiles or leads automatically, ensuring important context is always captured and accessible.
  • Opportunity driver management: Create and associate driver records with opportunities to maintain complete and compliant records for insurance sales workflows.

What is the Composio tool router, and how does it fit here?

What is Composio SDK?

Composio's Composio SDK helps agents find the right tools for a task at runtime. You can plug in multiple toolkits (like Gmail, HubSpot, and GitHub), and the agent will identify the relevant app and action to complete multi-step workflows. This can reduce token usage and improve the reliability of tool calls. Read more here: Getting started with Composio SDK

The tool router generates a secure MCP URL that your agents can access to perform actions.

How the Composio SDK works

The Composio SDK follows a three-phase workflow:

  1. Discovery: Searches for tools matching your task and returns relevant toolkits with their details.
  2. Authentication: Checks for active connections. If missing, creates an auth config and returns a connection URL via Auth Link.
  3. Execution: Executes the action using the authenticated connection.

Step-by-step Guide

Step by step09 STEPS
1

Prerequisites

Before you begin, make sure you have:
  • Node.js and npm installed
  • A Composio account with API key
  • An OpenAI API key
2

Getting API Keys for OpenAI and Composio

OpenAI API Key
  • Go to the OpenAI dashboard and create an API key. You'll need credits to use the models, or you can connect to another model provider.
  • Keep the API key safe.
Composio API Key
  • Log in to the Composio dashboard.
  • Navigate to your API settings and generate a new API key.
  • Store this key securely as you'll need it for authentication.
3

Install required dependencies

bash
npm install @ai-sdk/openai @ai-sdk/mcp @composio/core ai dotenv

First, install the necessary packages for your project.

What you're installing:

  • @ai-sdk/openai: Vercel AI SDK's OpenAI provider
  • @ai-sdk/mcp: MCP client for Vercel AI SDK
  • @composio/core: Composio SDK for tool integration
  • ai: Core Vercel AI SDK
  • dotenv: Environment variable management
4

Set up environment variables

bash
OPENAI_API_KEY=your_openai_api_key_here
COMPOSIO_API_KEY=your_composio_api_key_here
COMPOSIO_USER_ID=your_user_id_here

Create a .env file in your project root.

What's needed:

  • OPENAI_API_KEY: Your OpenAI API key for GPT model access
  • COMPOSIO_API_KEY: Your Composio API key for tool access
  • COMPOSIO_USER_ID: A unique identifier for the user session
5

Import required modules and validate environment

typescript
import "dotenv/config";
import { openai } from "@ai-sdk/openai";
import { Composio } from "@composio/core";
import * as readline from "readline";
import { streamText, type ModelMessage, stepCountIs } from "ai";
import { createMCPClient } from "@ai-sdk/mcp";

const composioAPIKey = process.env.COMPOSIO_API_KEY;
const composioUserID = process.env.COMPOSIO_USER_ID;

if (!process.env.OPENAI_API_KEY) throw new Error("OPENAI_API_KEY is not set");
if (!composioAPIKey) throw new Error("COMPOSIO_API_KEY is not set");
if (!composioUserID) throw new Error("COMPOSIO_USER_ID is not set");

const composio = new Composio({
  apiKey: composioAPIKey,
});
What's happening:
  • We're importing all necessary libraries including Vercel AI SDK's OpenAI provider and Composio
  • The dotenv/config import automatically loads environment variables
  • The MCP client import enables connection to Composio's tool server
6

Create Tool Router session and initialize MCP client

typescript
async function main() {
  // Create a tool router session for the user
  const session = await composio.create(composioUserID!, {
    toolkits: ["agencyzoom"],
  });

  const mcpUrl = session.mcp.url;
What's happening:
  • We're creating a Tool Router session that gives your agent access to Agencyzoom tools
  • The create method takes the user ID and specifies which toolkits should be available
  • The returned mcp object contains the URL and authentication headers needed to connect to the MCP server
  • This session provides access to all Agencyzoom-related tools through the MCP protocol
7

Connect to MCP server and retrieve tools

typescript
const mcpClient = await createMCPClient({
  transport: {
    type: "http",
    url: mcpUrl,
    headers: session.mcp.headers, // Authentication headers for the Composio MCP server
  },
});

const tools = await mcpClient.tools();
What's happening:
  • We're creating an MCP client that connects to our Composio Tool Router session via HTTP
  • The mcp.url provides the endpoint, and mcp.headers contains authentication credentials
  • The type: "http" is important - Composio requires HTTP transport
  • tools() retrieves all available Agencyzoom tools that the agent can use
8

Initialize conversation and CLI interface

typescript
let messages: ModelMessage[] = [];

console.log("Chat started! Type 'exit' or 'quit' to end the conversation.\n");
console.log(
  "Ask any questions related to agencyzoom, like summarize my last 5 emails, send an email, etc... :)))\n",
);

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  prompt: "> ",
});

rl.prompt();
What's happening:
  • We initialize an empty messages array to maintain conversation history
  • A readline interface is created to accept user input from the command line
  • Instructions are displayed to guide the user on how to interact with the agent
9

Handle user input and stream responses with real-time tool feedback

typescript
rl.on("line", async (userInput: string) => {
  const trimmedInput = userInput.trim();

  if (["exit", "quit", "bye"].includes(trimmedInput.toLowerCase())) {
    console.log("\nGoodbye!");
    rl.close();
    process.exit(0);
  }

  if (!trimmedInput) {
    rl.prompt();
    return;
  }

  messages.push({ role: "user", content: trimmedInput });
  console.log("\nAgent is thinking...\n");

  try {
    const stream = streamText({
      model: openai("gpt-5"),
      messages,
      tools,
      toolChoice: "auto",
      stopWhen: stepCountIs(10),
      onStepFinish: (step) => {
        for (const toolCall of step.toolCalls) {
          console.log(`[Using tool: ${toolCall.toolName}]`);
          }
          if (step.toolCalls.length > 0) {
            console.log(""); // Add space after tool calls
          }
        },
      });

      for await (const chunk of stream.textStream) {
        process.stdout.write(chunk);
      }

      console.log("\n\n---\n");

      // Get final result for message history
      const response = await stream.response;
      if (response?.messages?.length) {
        messages.push(...response.messages);
      }
    } catch (error) {
      console.error("\nAn error occurred while talking to the agent:");
      console.error(error);
      console.log(
        "\nYou can try again or restart the app if it keeps happening.\n",
      );
    } finally {
      rl.prompt();
    }
  });

  rl.on("close", async () => {
    await mcpClient.close();
    console.log("\n👋 Session ended.");
    process.exit(0);
  });
}

main().catch((err) => {
  console.error("Fatal error:", err);
  process.exit(1);
});
What's happening:
  • We use streamText instead of generateText to stream responses in real-time
  • toolChoice: "auto" allows the model to decide when to use Agencyzoom tools
  • stopWhen: stepCountIs(10) allows up to 10 steps for complex multi-tool operations
  • onStepFinish callback displays which tools are being used in real-time
  • We iterate through the text stream to create a typewriter effect as the agent responds
  • The complete response is added to conversation history to maintain context
  • Errors are caught and displayed with helpful retry suggestions

Complete Code

Here's the complete code to get you started with Agencyzoom and Vercel AI SDK:

typescript
import "dotenv/config";
import { openai } from "@ai-sdk/openai";
import { Composio } from "@composio/core";
import * as readline from "readline";
import { streamText, type ModelMessage, stepCountIs } from "ai";
import { createMCPClient } from "@ai-sdk/mcp";

const composioAPIKey = process.env.COMPOSIO_API_KEY;
const composioUserID = process.env.COMPOSIO_USER_ID;

if (!process.env.OPENAI_API_KEY) throw new Error("OPENAI_API_KEY is not set");
if (!composioAPIKey) throw new Error("COMPOSIO_API_KEY is not set");
if (!composioUserID) throw new Error("COMPOSIO_USER_ID is not set");

const composio = new Composio({
  apiKey: composioAPIKey,
});

async function main() {
  // Create a tool router session for the user
  const session = await composio.create(composioUserID!, {
    toolkits: ["agencyzoom"],
  });

  const mcpUrl = session.mcp.url;

  const mcpClient = await createMCPClient({
    transport: {
      type: "http",
      url: mcpUrl,
      headers: session.mcp.headers, // Authentication headers for the Composio MCP server
    },
  });

  const tools = await mcpClient.tools();

  let messages: ModelMessage[] = [];

  console.log("Chat started! Type 'exit' or 'quit' to end the conversation.\n");
  console.log(
    "Ask any questions related to agencyzoom, like summarize my last 5 emails, send an email, etc... :)))\n",
  );

  const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
    prompt: "> ",
  });

  rl.prompt();

  rl.on("line", async (userInput: string) => {
    const trimmedInput = userInput.trim();

    if (["exit", "quit", "bye"].includes(trimmedInput.toLowerCase())) {
      console.log("\nGoodbye!");
      rl.close();
      process.exit(0);
    }

    if (!trimmedInput) {
      rl.prompt();
      return;
    }

    messages.push({ role: "user", content: trimmedInput });
    console.log("\nAgent is thinking...\n");

    try {
      const stream = streamText({
        model: openai("gpt-5"),
        messages,
        tools,
        toolChoice: "auto",
        stopWhen: stepCountIs(10),
        onStepFinish: (step) => {
          for (const toolCall of step.toolCalls) {
            console.log(`[Using tool: ${toolCall.toolName}]`);
          }
          if (step.toolCalls.length > 0) {
            console.log(""); // Add space after tool calls
          }
        },
      });

      for await (const chunk of stream.textStream) {
        process.stdout.write(chunk);
      }

      console.log("\n\n---\n");

      // Get final result for message history
      const response = await stream.response;
      if (response?.messages?.length) {
        messages.push(...response.messages);
      }
    } catch (error) {
      console.error("\nAn error occurred while talking to the agent:");
      console.error(error);
      console.log(
        "\nYou can try again or restart the app if it keeps happening.\n",
      );
    } finally {
      rl.prompt();
    }
  });

  rl.on("close", async () => {
    await mcpClient.close();
    console.log("\n👋 Session ended.");
    process.exit(0);
  });
}

main().catch((err) => {
  console.error("Fatal error:", err);
  process.exit(1);
});

Conclusion

You've successfully built a Agencyzoom agent using the Vercel AI SDK with streaming capabilities! This implementation provides a powerful foundation for building AI applications with natural language interfaces and real-time feedback.

Key features of this implementation:

  • Real-time streaming responses for a better user experience with typewriter effect
  • Live tool execution feedback showing which tools are being used as the agent works
  • Dynamic tool loading through Composio's Tool Router with secure authentication
  • Multi-step tool execution with configurable step limits (up to 10 steps)
  • Comprehensive error handling for robust agent execution
  • Conversation history maintenance for context-aware responses

You can extend this further by adding custom error handling, implementing specific business logic, or integrating additional Composio toolkits to create multi-app workflows.
TOOLS

Supported Tools

Every Agencyzoom action and event your agent gets out of the box.

Authenticate for JWT via V4 SSO

Completes AgencyZoom V4 Single Sign-On (SSO) authentication by exchanging an OAuth2 authorization code for a JWT token.

Batch create contacts

Creates 1 to 5 new contacts in AgencyZoom in a single batch API call.

Batch create leads

Creates up to 5 new leads in AgencyZoom; all referenced entity IDs (e.

Batch delete tasks

Deletes multiple AgencyZoom tasks in a batch; task deletion is permanent and the response indicates overall batch success, not individual task status.

Change lead status

Updates a lead's lifecycle status (e.

Mark task as completed

Marks an existing and accessible task in AgencyZoom as 'completed'; this action does not return the full updated task object.

Create a customer note

Adds a new note to an existing customer's profile using their ID; cannot be used to edit or retrieve existing notes.

Create a driver for an opportunity

Creates a new driver record associated with an existing AgencyZoom opportunity using its ID; requires firstName and lastName, with optional fields for additional driver details.

Create a lead note

Adds a new note to an existing lead in AgencyZoom, identified by `leadId`.

Create a lead opportunity

Adds a new sales opportunity to an existing lead in AgencyZoom, requiring a valid `leadId`, `carrierId`, `productLineId`, and that custom field names match existing definitions in AgencyZoom.

Create a lead quote

Creates a new insurance quote for an existing lead in AgencyZoom, using valid carrier and product line IDs, to track a proposal; this action does not bind policies or process payments.

Create an opportunity

Creates a new lead opportunity in AgencyZoom; this action cannot update existing opportunities.

Create a vehicle for an opportunity

Adds a new vehicle record to a specified opportunity; `opportunityId` must refer to a valid, existing opportunity.

Create business lead

Creates or updates a business lead in AgencyZoom using detailed personal and company information, for B2B sales and marketing lead management.

Create lead

Creates a new lead or updates an existing one in AgencyZoom; ensure `pipelineId`, `stageId`, `leadSourceId`, and `assignTo` reference valid, existing entities.

Create task post endpoint

Creates a new task in AgencyZoom; ensure `assigneeId`, `customerId`, or `leadId` are valid existing entities if provided, and use `contactEmail`, `customerId`, or `leadId` to link the task to a contact.

Delete a customer

Irreversibly deletes a customer and all associated data in AgencyZoom using their `customerId`; useful for offboarding or data privacy compliance.

Delete customer file

Permanently deletes a specific file, identified by `fileId`, associated with a customer, identified by `customerId`.

Delete a customer policy

Permanently deletes a specific policy associated with a customer, for instance, if it's cancelled or inactive; this action is irreversible and requires caution.

Delete an opportunity driver by ID

Permanently deletes an existing driver record (a person associated with an insurance opportunity) from AgencyZoom using its unique `driverId`; this action is irreversible.

Delete file from lead

Deletes a specific file (identified by `fileId`) associated with an existing lead (identified by `leadId`); this operation is irreversible.

Delete a lead opportunity

Permanently deletes an existing opportunity (by `opportunityId`) associated with an existing lead (by `leadId`) when it's irrelevant, closed, or erroneous; the lead itself remains.

Delete a lead quote

Deletes a specific quote from a lead, requiring that the lead and quote exist and are associated.

Delete an opportunity

Permanently deletes a specific opportunity by its unique ID; this action is irreversible and requires a valid, existing `opportunityId`.

Delete a task

Permanently and irreversibly deletes an existing task, identified by its `taskId`.

Delete a vehicle

Permanently deletes a vehicle record by its `vehicleId`, which must correspond to an existing vehicle in the AgencyZoom system.

Delete thread message

Deletes a specific message from an email thread within AgencyZoom.

Delete email thread

Permanently deletes a specific email thread from the AgencyZoom system, identified by its `threadId` (expected by the endpoint), provided the thread exists.

Get a list of assign groups

Retrieves all assign groups configured in AgencyZoom, used for categorizing or assigning items to specific teams or units.

Get a list of carriers

Retrieves all insurance carriers from AgencyZoom, typically used for populating selection lists or synchronizing carrier data; does not return detailed policy or coverage information.

Get a list of CSRs

Fetches all Customer Service Representatives (CSRs), including their ID and name, returning an empty list if none are configured.

Get a list of custom fields

Retrieves metadata for all configured custom field definitions, not the specific values entered for individual records.

Get a list of drivers for an opportunity

Retrieves a list of drivers (individuals), including their personal details, licensing information, and relationship status, associated with a specific, existing `opportunityId` in AgencyZoom.

Get a list of employees

Retrieves a complete list of all employees for the authenticated agency; returns an empty list if no employees are configured.

Get lead source categories

Retrieves a comprehensive list of all predefined lead source categories from AgencyZoom, used to classify lead origins.

Get lead sources

Fetches a list of all lead sources configured in AgencyZoom, including their ID, name, sales exclusion status, and category ID.

Get a list of life professionals

Retrieves a list of life insurance professionals, including only their contact and status information (excluding sales or customer data), from the AgencyZoom platform.

Get a list of locations

Retrieves all agency locations or branches from AgencyZoom; filtering options are not available.

Get loss reasons

Retrieves all predefined loss reasons (e.

Get a list of pipelines

Retrieves all pipelines and their stages from AgencyZoom to understand workflow structures; this is a read-only operation and does not return individual items (like leads or tasks) within these pipelines.

Get a list of producers

Retrieves a list of all producers from AgencyZoom, typically related to text thread functionalities.

Get product lines and policy types

Fetches all product lines and policy types from AgencyZoom, each detailed with its ID, name, and product category ID.

Get a list of recycle events

Retrieves the available recycle event types and any existing X-Date information for a specified lead in AgencyZoom.

Retrieve vehicles for opportunity

Retrieves all vehicles associated with an existing opportunity, using its unique opportunityId.

Get AMS policies for a customer

Retrieves a customer's synchronized Agency Management System (AMS) policy data (typically a single policy); requires an active AMS integration, may return empty/default values if data is missing.

Get auth URL for V4 SSO

Retrieves a fresh authentication URL for AgencyZoom's V4 Single Sign-On (SSO) process; call before each SSO attempt as the URL may change and should not be cached.

Get departments groups

Fetches department and group information for an agency, optionally filtered by a specific `agencyNumber`, to analyze its organizational structure.

Get lead files

Retrieves metadata (id, title, MIME type, size, dates, creator info) for files attached to leads in AgencyZoom.

Retrieve notes for specific lead

Fetches the complete history of notes for a specific lead by `leadId` (which must exist), useful for reviewing context for communications or follow-ups; this is a read-only operation.

Get lead quotes

Retrieves all insurance quotes (active and inactive) for a specific lead ID, useful for reviewing or tracking quote history.

Get lead tasks

Retrieves all tasks for a specific lead, identified by its `leadId`, to review its activity history or manage follow-ups.

Get list of end stages

Fetches a list of all defined end stages, representing final steps in processes like lead conversion or policy closure.

Get policies for a customer

Retrieves from AgencyZoom all insurance policies for an existing customer (identified by `customerId`), including policy details like type, carrier, premium, effective dates, and assigned agents.

Get the customer details

Fetches comprehensive details for a specific customer, including personal information, policies, notes, tasks, files, and custom fields, using their unique customer ID.

Get the customer tasks

Fetches all tasks (read-only task data) for a customer by `customerId` to review their activities, follow-ups, and action items; the `customerId` must be valid.

Get the driver details

Retrieves detailed information for a specific, existing driver (by `driverId`) associated with an AgencyZoom opportunity.

Get the lead details

Retrieves comprehensive details for a specific lead in AgencyZoom by its unique `leadId` (which must correspond to an existing lead), including contact information, status, associated opportunities, quotes/policies, custom fields, and interaction history.

Get the opportunities for a lead

Retrieves all sales opportunities and their details for a specified, existing `leadId` in AgencyZoom.

Get the opportunity details

Fetches comprehensive details for an existing opportunity using its unique `opportunityId`.

Get the task details

Retrieves comprehensive details for a specific task using its unique `taskId`, which must correspond to an existing task in AgencyZoom.

Get the vehicle details

Retrieves detailed information for a specific vehicle, often associated with an AgencyZoom opportunity, using its unique vehicleId.

Get thread details

Searches and retrieves detailed information for email threads in AgencyZoom; no explicit search criteria are passed in this request.

Link a driver to opportunity

Assigns or reassigns an existing driver to an existing opportunity.

Link vehicle to opportunity

Links an existing vehicle to an existing sales opportunity in AgencyZoom using their respective IDs, typically for managing auto insurance policies or related services.

List Product Categories

Retrieves a complete, unfiltered list of all product categories (ID and name) from AgencyZoom, useful for understanding product organization or populating UI elements.

Log the user in

Authenticates an existing AgencyZoom user using their email (as username) and password to obtain a JWT for API access; this action does not support new user creation.

Log the user out

Use this action to log the current user out of AgencyZoom by invalidating their active session token.

Mark thread as unread

Marks a text thread in AgencyZoom as read or unread using its `threadId`; this action does not modify message content and the specified `threadId` must refer to an existing thread.

Move lead to sold

Marks an existing lead as sold by its `leadId` and records product details; `productLineId`, `premium`, `effectiveDate`, and `soldDate` are operationally required for each sold product, despite schema flexibility.

Remove text thread

Call this action to permanently delete an SMS/text message thread in AgencyZoom; the target thread is identified by its `threadId`.

Reopen a task

Reopens an existing AgencyZoom task that is currently 'completed' or 'closed', allowing it to be reactivated with optional comments.

Search business classifications

Retrieves a comprehensive list of all available business classifications from AgencyZoom, each including an ID, code, and description.

Search customers

Searches for customers in AgencyZoom using criteria like contact information, policy details, or custom fields, with options for filtering, sorting, and pagination.

Search email threads

Retrieves a list of email thread metadata from AgencyZoom, suitable for an overview when no specific filtering, sorting, or pagination is needed, as results are subject to default server-side limits and ordering.

Search leads

Retrieves AgencyZoom leads, using filters, pagination, and sorting options sent in the POST body, as the request schema itself is empty.

Search leads count

Retrieves a summary of lead counts categorized by workflow stage from AgencyZoom; this action does not support filtering and returns aggregate counts rather than individual lead details.

Search life and health leads

Searches for life and health insurance leads by providing filter criteria (matching AlrLead fields) in the request body; an empty request may retrieve all leads or a default set.

Search SMS threads

Searches and retrieves SMS threads from AgencyZoom, with search parameters, filters, sorting, and pagination typically provided in the request body of this POST operation.

Search and list tasks

Searches and lists tasks, supporting pagination and accepting filter criteria in the POST request body despite an empty request schema.

List service tickets

Retrieves a paginated list of service tickets from AgencyZoom.

Get SMS thread messages

Retrieves detailed messages for a specific SMS/text thread by its thread ID.

Unlink driver from opportunity

Unlinks a currently associated driver from an AgencyZoom opportunity, used when the driver is no longer relevant, for policy or data updates, potentially impacting the opportunity's status or associated policy details.

Unlink vehicle from opportunity

Unlinks a specific, existing vehicle from a specific, existing opportunity using their respective IDs, removing only the association and not the records themselves.

Update email thread read status

Updates the read or unread status of a specific email thread within AgencyZoom.

Update a driver's details

Updates an existing driver's details in AgencyZoom, requiring `driverId` in the path and `firstName` and `lastName` in the request.

Rename lead file

Updates a lead's file name to `newFileName`; requires `fileId` of the target file, which must be associated with both the `leadId` (path parameter) and the provided `customerReferralId`.

Update a lead opportunity

Updates an existing opportunity's details (carrier, product line, premium, items, custom fields) for a specific lead; `leadId`, opportunity `id`, `carrierId`, and `productLineId` must refer to existing entities.

Update lead quote data

Updates an existing quote for a specified lead in AgencyZoom when its details require revision, ensuring the provided `leadId` (path parameter), quote `id` (body parameter), `carrierId`, and `productLineId` are valid and correspond to existing entities.

Update an opportunity

Updates an existing opportunity with the provided details; ensure any custom field names are predefined in AgencyZoom configuration.

Update policy by id

Updates an existing insurance policy for the given `policyId`; monetary values must be in cents and dates in YYYY-MM-DD format.

Update a vehicle's details

Updates details for an existing vehicle within an opportunity; this action cannot be used to create new vehicle records.

Update business lead

Updates an existing business lead in AgencyZoom.

Update customer info using id

Updates an existing customer's information in AgencyZoom using their unique customerId.

Update lead

Updates an existing lead's information in AgencyZoom using the `leadId`; ensure the `leadId` corresponds to an existing lead in AgencyZoom.

Update lead status by id

Updates a lead's status (0=ACTIVE, 2=WON, 3=LOST, 5=XDATED) by `leadId`, optionally setting workflow, stage, date, loss reason, X-date type, source, recycle stage/pipeline, or tags; requires `date` and `xDateType` for status 5 (XDATED), and `lossReasonId` for status 3 (LOST).

Update my profile

Updates the profile information (first name, last name, email, and optional phone) for the currently authenticated user in AgencyZoom; the provided email address must be unique within the system.

Add tags to a policy

Adds new comma-separated `tagNames` to a policy, requiring `tagNames` and identification by either `policyId` or `amsPolicyId`; if `amsPolicyId` is provided, `policyId` is ignored, and existing tags are not affected.

Update task

Modifies an existing AgencyZoom task (which must be valid and identified by `taskId` in the path) with new attributes from the request body, which must also contain `taskId`.

Log user in via SSO

Logs a user into the AgencyZoom platform via Single Sign-On (SSO).

FAQ

Frequently asked questions

With a standalone Agencyzoom MCP server, the agents and LLMs can only access a fixed set of Agencyzoom tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Agencyzoom and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Vercel AI SDK v6 fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Agencyzoom tools.

Yes, absolutely. You can configure which Agencyzoom scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Agencyzoom data and credentials are handled as safely as possible.

Start with Agencyzoom.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Agencyzoom tool your agent needs.Free to start.

Start building