AgencyZoom MCP by usefulapi

v1.14.1
io.usefulapi/agencyzoom Checked 2 days ago Published 23 hours ago

Read leads, customers, policies and tasks; add notes, tasks and leads in AgencyZoom.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

agencyzoom_search_leads Search leads

Search sales leads in AgencyZoom with filters; returns name, contact details, status, pipeline stage, source, assigned producer, quoted and sold premium (in cents) and dates, paged. Names, e-mail and phone match by prefix. Use agencyzoom_list_pipelines for workflow/stage ids and agencyzoom_list_employees for producer ids. POST /v1/api/leads/list.

ParameterTypeDescription
assigned_tointegerProducer/agent id the lead is assigned to.
created_fromstringLead created on or after this date, yyyy-mm-dd.
created_tostringLead created on or before this date, yyyy-mm-dd.
customer_emailstringE-mail prefix.
customer_namestringName prefix.
customer_phonestringPhone number prefix, e.g. (123) 456-7890.
last_activity_fromstringLast activity on or after this date, yyyy-mm-dd.
last_activity_tostringLast activity on or before this date, yyyy-mm-dd.
lead_source_idintegerLead source id.
orderstringSort direction.
pageintegerPage number, starting at 0 (default 0). Pass the previous reply's next_page.
page_sizeintegerResults per page, 1-100 (default 25).
sold_periodstringOnly leads sold in this period.
sortstringSort field (default lastEnterStageDate).
statusintegerLead status: 0 new, 1 quoted, 2 won, 3 lost, 4 contacted, 5 expired.
workflow_idintegerPipeline (workflow) id.
workflow_stage_idstringStage id; several stage ids can be separated by '/'.

agencyzoom_get_lead Get lead

One lead by id with full details: contact data, address, status, stage, source, assigned producer and CSR, premiums (cents), dates and custom fields. GET /v1/api/leads/{leadId}.

ParameterTypeDescription
lead_id *integerAgencyZoom lead id.

agencyzoom_get_lead_notes Get lead notes

The activity notes of a lead: type (note, e-mail, creation...), date, author, title and body. GET /v1/api/leads/{leadId}/notes.

ParameterTypeDescription
lead_id *integerAgencyZoom lead id.

agencyzoom_get_lead_tasks Get lead tasks

The tasks linked to a lead (open, done, cancelled) with due date, assignees and notes. GET /v1/api/leads/{leadId}/tasks.

ParameterTypeDescription
lead_id *integerAgencyZoom lead id.

agencyzoom_get_lead_opportunities Get lead opportunities

The opportunities (quoted lines of business) of a lead: carrier, product line, premium, items, status and property address. GET /v1/api/leads/{leadId}/opportunities.

ParameterTypeDescription
lead_id *integerAgencyZoom lead id.

agencyzoom_search_customers Search customers

Search customers (clients with at least one written policy) with filters; returns contact details, address, source, agent and a policy summary, paged. First/last name match partially. POST /v1/api/customers.

ParameterTypeDescription
agent_idintegerAgent id assigned to the policy.
citystringCity.
created_fromstringCustomer created on or after this date, yyyy-mm-dd.
created_tostringCustomer created on or before this date, yyyy-mm-dd.
emailstringE-mail address.
firstnamestringFirst name (partial match).
full_namestringFull name.
lastnamestringLast name (partial match).
lead_source_idintegerLead source id.
pageintegerPage number, starting at 0 (default 0). Pass the previous reply's next_page.
page_sizeintegerResults per page, 1-100 (default 25).
phonestringPhone number.
policy_numberstringPolicy number (written and AMS-synced policies).
policy_typeintegerPolicy type (product line) id; see agencyzoom_list_product_lines.
statestringTwo-letter US state code.
statusinteger1 active customers, 0 inactive, -1 all (default).

agencyzoom_get_customer Get customer

One customer by id with full details: contact data, address, source, agent, CSR, custom fields and policy summary. GET /v1/api/customers/{customerId}.

ParameterTypeDescription
customer_id *integerAgencyZoom customer id.

agencyzoom_get_customer_policies Get customer policies

The policies written through AgencyZoom for a customer: type, carrier, policy number, premium (cents), items, sold/effective/expiry dates, agent, CSR and status (0 cancelled, 1 active, 3 upcoming, 4 renewed, 10-13 active variants). GET /v1/api/customers/{customerId}/policies.

ParameterTypeDescription
customer_id *integerAgencyZoom customer id.

agencyzoom_get_customer_tasks Get customer tasks

The tasks linked to a customer (open, done, cancelled) with due date, assignees and notes. GET /v1/api/customers/{customerId}/tasks.

ParameterTypeDescription
customer_id *integerAgencyZoom customer id.

agencyzoom_search_tasks Search tasks

Search tasks across the agency: by status (open/completed), assignee, period (today, past due, next week...), type and creation date; returns title, due date, assignees, linked customer or lead and notes, paged. POST /v1/api/tasks/list.

ParameterTypeDescription
assignee_idintegerAssignee (employee) id; see agencyzoom_list_employees.
created_fromstringCreated on or after this date, yyyy-mm-dd.
created_tostringCreated on or before this date, yyyy-mm-dd.
lead_source_idintegerLead source id.
pageintegerPage number, starting at 0 (default 0). Pass the previous reply's next_page.
page_sizeintegerResults per page, 1-200 (default 25).
periodstringPredefined due period.
statusinteger0 open, 1 completed.
typestringTask type.

agencyzoom_get_task Get task

One task by id: title, status, due date, assignees, notes and the customer or lead it belongs to. GET /v1/api/tasks/{taskId}.

ParameterTypeDescription
task_id *integerAgencyZoom task id.

agencyzoom_search_service_tickets Search service tickets

Search service tickets (client service requests) by household name, status, category, priority, policy number and created/completed dates, paged. POST /v1/api/serviceTicket/service-tickets/list.

ParameterTypeDescription
categoryintegerCategory id; see agencyzoom_list_service_ticket_options.
completed_fromstringCompleted on or after this date, yyyy-mm-dd.
completed_tostringCompleted on or before this date, yyyy-mm-dd.
created_fromstringCreated on or after this date, yyyy-mm-dd.
created_tostringCreated on or before this date, yyyy-mm-dd.
full_namestringHousehold name.
pageintegerPage number, starting at 0 (default 0). Pass the previous reply's next_page.
page_sizeintegerResults per page, 1-100 (default 25).
policy_numberstringPolicy number.
priorityintegerPriority id; see agencyzoom_list_service_ticket_options.
statusintegerService ticket status code.
workflow_idintegerService pipeline id; see agencyzoom_list_pipelines with type 'service'.
workflow_stage_idintegerStage id.

agencyzoom_get_sales_summary Get sales summary

The dashboard sales summary for the agency or one producer: goals, month-to-date and today's sales, trending, and daily premium/revenue/items/policies for the period. Amounts are in cents. Read-only (a POST in AgencyZoom). POST /v1/api/dashboard-data/sales-data.

ParameterTypeDescription
carrier_idintegerOnly this carrier id.
end_datestringCustom period end, yyyy-mm-dd.
locationstringAgency location code.
periodstringPredefined period (default: the dashboard's default).
producer_idintegerOnly this producer (employee id).
start_datestringCustom period start, yyyy-mm-dd (use with end_date instead of period).

agencyzoom_list_pipelines List pipelines and stages

The sales (lead) or service pipelines with their stages and ids. Needed to create leads or service tickets and to move a lead between stages. GET /v1/api/pipelines-and-stages.

ParameterTypeDescription
typestringPipeline type (default: all).

agencyzoom_list_employees List employees

The agency's employees: id, name, e-mail, phone, whether producer, active or owner. Use the ids to assign leads and tasks. Pages with limit + offset (default 25 per page); total is the full count, next_offset the offset of the next page (null when done). GET /v1/api/employees (the whole list is fetched, then sliced).

ParameterTypeDescription
limitintegerEmployees per page, 1-100 (default 25).
offsetintegerEmployees to skip (default 0).

agencyzoom_list_lead_sources List lead sources

The lead sources (id, name, category, whether sales from it count as sales). GET /v1/api/lead-sources.

agencyzoom_list_carriers List carriers

The insurance carriers configured in the agency (id, name, standard carrier code). GET /v1/api/carriers.

agencyzoom_list_product_lines List product lines

The policy types / product lines (id, name, category, standard product line code), for policy filters. GET /v1/api/product-lines.

agencyzoom_list_tags List tags

The tags defined in the agency (id, name). GET /v1/api/tags.

agencyzoom_list_service_ticket_options List service ticket categories and priorities

The service ticket categories and priorities (id, name), needed to create a service ticket. GET /v1/api/service-categories and GET /v1/api/service-priorities.

agencyzoom_create_lead Create lead

WRITE: create a new sales lead in a pipeline stage. AgencyZoom requires the pipeline and stage (agencyzoom_list_pipelines), first name, e-mail, lead source, assigned producer and country. Creating a lead can trigger the agency's own automations (assignment, tasks, e-mails) in AgencyZoom. Not idempotent: calling twice creates two leads, so search first (agencyzoom_search_leads by e-mail or phone). POST /v1/api/leads/create.

ParameterTypeDescription
assign_to *integerProducer/agent (employee) id to assign the lead to; see agencyzoom_list_employees.
country *stringCountry of the lead, e.g. USA.
email *stringE-mail address.
firstname *stringFirst name.
lead_source_id *integerLead source id; see agencyzoom_list_lead_sources.
pipeline_id *integerLead pipeline (workflow) id.
stage_id *integerStage id inside that pipeline.
citystringCity.
csr_idintegerCSR id.
lastnamestringLast name.
notesstringNote stored with the lead.
phonestringPhone number.
statestringState.
street_addressstringStreet address.
tag_namesstringTag names separated by ';'.
zipstringPostal code.

agencyzoom_add_lead_note Add lead note

WRITE: add a note to a lead's activity feed (visible to the agency's users; AgencyZoom does not send it to the customer). Not idempotent: calling twice adds two notes. POST /v1/api/leads/{leadId}/notes.

ParameterTypeDescription
lead_id *integerAgencyZoom lead id.
note *stringThe note text.

agencyzoom_add_customer_note Add customer note

WRITE: add a note to a customer's activity feed (visible to the agency's users; AgencyZoom does not send it to the customer). Not idempotent: calling twice adds two notes. POST /v1/api/customers/{customerId}/notes.

ParameterTypeDescription
customer_id *integerAgencyZoom customer id.
note *stringThe note text.

agencyzoom_create_task Create task

WRITE: create a task (to-do, call, e-mail or meeting) linked to a lead or customer, optionally assigned to an employee. The assignee may be notified by AgencyZoom. Link it with lead_id or customer_id (or contact_email, which AgencyZoom matches to a lead or customer). Not idempotent: calling twice creates two tasks. POST /v1/api/tasks.

ParameterTypeDescription
due *stringDue date (yyyy-mm-dd) or date and time (yyyy-mm-dd hh:mm), in the agency's local time.
title *stringTask title.
assignee_idintegerEmployee id to assign the task to; see agencyzoom_list_employees.
commentsstringTask notes.
contact_emailstringE-mail of the lead/customer, used to find the match when no id is given.
customer_idintegerCustomer the task belongs to.
duration_minutesintegerDuration in minutes.
lead_idintegerLead the task belongs to.
time_specificbooleanTrue when the time part of `due` matters (default: the whole day).
typestringTask type (default todo).

agencyzoom_complete_task Complete task

WRITE: mark a task as completed. Repeated calls may repeat notifications or automations; undo with agencyzoom_reopen_task. PUT /v1/api/tasks/{taskId}/completed.

ParameterTypeDescription
task_id *integerAgencyZoom task id.

agencyzoom_reopen_task Reopen task

WRITE: reopen a completed task, optionally with a comment. Repeated calls may repeat notifications or automations. PUT /v1/api/tasks/{taskId}/reopened.

ParameterTypeDescription
task_id *integerAgencyZoom task id.
commentsstringWhy it was reopened.

agencyzoom_move_lead_stage Move lead to a stage

WRITE: move an active lead (a status check refuses leads already won, lost or x-dated) to another stage of a lead pipeline (workflow_id and workflow_stage_id from agencyzoom_list_pipelines). The lead stays active: it does not mark the lead won, lost or x-dated. Moving into a stage can trigger the agency's automations. The read and update are not atomic: a concurrent status change can be overwritten and reactivate a lead. Do not use while another process changes the same lead. Automations may repeat on repeated calls. PUT /v1/api/leads/{leadId}/stage.

ParameterTypeDescription
lead_id *integerAgencyZoom lead id.
workflow_id *integerPipeline (workflow) id.
workflow_stage_id *integerTarget stage id.

agencyzoom_create_service_ticket Create service ticket

WRITE: open a service ticket for a customer in a service pipeline stage. Needs the pipeline and stage (agencyzoom_list_pipelines with type 'service'), a priority and a category (agencyzoom_list_service_ticket_options). The assigned CSR may be notified, and the agency's service automations can run. Not idempotent: calling twice opens two tickets. POST /v1/api/serviceTicket/service-tickets/create.

ParameterTypeDescription
category_id *integerCategory id.
customer_id *integerAgencyZoom customer id.
priority_id *integerPriority id.
subject *stringTicket summary.
workflow_id *integerService pipeline id.
workflow_stage_id *integerStage id inside that pipeline.
csr_idintegerCSR (employee) id to assign.
descriptionstringTicket description.
due_datestringDue date, yyyy-mm-dd.
policy_idsarrayPolicy ids (from agencyzoom_get_customer_policies) the ticket is about.