NextAgency MCP by usefulapi

v1.3.1
io.usefulapi/nextagency Checked 2 days ago Published 1 day ago

Read cases, contacts, tasks, notes and benefits; add cases, notes and tasks in NextAgency.

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

nextagency_get_profile Get my profile

The NextAgency user the token acts as: id, name, email and role. Use it to check the connection.

nextagency_list_users List users

The agency's users (brokers and staff): id, name, email, role. Use the id as assigned_to in nextagency_create_case_task.

ParameterTypeDescription
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_list_cases List cases

The cases the token can see, one page at a time: id, case number, name, sales status, stage, owner, market segment. Filter by sales status (for example Prospect or Client) or by case number. Use the id with the other case tools.

ParameterTypeDescription
case_numberintegerOnly the case with this number (the number the portal shows).
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.
sales_statusstringOnly cases with this sales status, for example Client.

nextagency_search_cases Search cases

Cases whose name, number or contact details match the query, one page at a time.

ParameterTypeDescription
query *stringThe search text, for example a surname or a case name.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_get_case Get a case

One case by id: its details, status, stage, owner and addresses.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.

nextagency_list_case_contacts List a case's contacts

The contacts linked to one case, with the primary flag. Use nextagency_get_contact for one contact.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.

nextagency_list_case_employees List a case's employees

The employees of one case (group business): name, employment type, start and termination dates, pay cycle.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_list_case_custom_fields List a case's custom fields

The custom fields of one case, with their names and values.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_list_case_benefits List a case's benefits

The insurance benefits (policies) of one case: type, carrier and features.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_list_case_tasks List a case's tasks

The tasks of one case: title, stage, type, priority, due date and assignees.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_get_case_task Get a case task

One task of a case by id.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
task_id *stringThe task id (UUID), from nextagency_list_case_tasks.

nextagency_list_case_notes List a case's notes

The notes of one case: title, body, pinned flag, author and assignees. Use nextagency_get_case_note for one note.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_get_case_note Get a case note

One note of a case by id, with its full body.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
note_id *stringThe note id (UUID), from nextagency_list_case_notes.

nextagency_list_contacts List contacts

The agency's contacts, one page at a time: name, emails, phone numbers and addresses.

ParameterTypeDescription
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_search_contacts Search contacts

Contacts whose name, email or details match the query, one page at a time.

ParameterTypeDescription
query *stringThe search text, for example a full name.
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_find_contacts_by_phone Find contacts by phone number

The contacts that have this phone number. Enter the digits only, for example 5551234567.

ParameterTypeDescription
phone_number *stringThe phone number, digits only.

nextagency_get_contact Get a contact

One contact by id: name, emails, phone numbers and addresses.

ParameterTypeDescription
contact_id *stringThe contact id (UUID), from nextagency_list_contacts or nextagency_search_contacts.

nextagency_list_carriers List carriers

The insurance carriers in the agency's list: name, states and contact details.

ParameterTypeDescription
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_list_sub_agents List sub-agents

The sub-agents (vendors and individual agents) of the agency.

ParameterTypeDescription
limitintegerRecords per page, 1 to 50 (default 10).
offsetintegerRecords to skip (default 0). Use next_offset from the last page.

nextagency_create_case Create a case

WRITE: create a new case. Give a name, or a first name for an individual (market_segment individual). The API checks the whole request first: an invalid request stores nothing. Returns the new case.

ParameterTypeDescription
emailstring
first_namestringFirst name (required for an individual).
last_namestring
market_segmentstring
namestringThe case name (required unless market_segment is individual).
phone_numberstring
sales_statusstringFor example Prospect or Client.

nextagency_create_case_note Add a case note

WRITE: add a note to one case. Use the title for a short label and the body for the text. Returns the new note.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
title *stringThe note title.
bodystringThe note text.
pinnedbooleanPin the note to the case summary.

nextagency_create_case_task Add a case task

WRITE: add a task to one case. The due date uses the format of the vendor example: DD-MM-YYYY HH:MM AM UTC. assigned_to takes user ids from nextagency_list_users. Returns the new task.

ParameterTypeDescription
case_id *stringThe case id (UUID), from nextagency_list_cases.
title *stringThe task title.
assigned_toarrayUser ids to assign.
bodystringThe task text (HTML allowed).
duestringThe due date, DD-MM-YYYY HH:MM AM UTC.
priorityinteger
stagestringThe task stage, for example To Do.
typestringThe task type, for example Other.