crm-mcp

v1.6.0
@humanagencyp/crm-mcp Checked 3 days ago Published 1 month ago

CRM MCP server for the Human Agency Protocol — contacts, activities, deals, tasks

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

create_contact

Create a new contact in the CRM. The result's `revision` is always 1.

ParameterTypeDescription
name *stringContact's full name
type *stringContact type (default: customer)
companystringCompany or organisation name
emailstringEmail address
notesstringFree-form notes
phonestringPhone number
rolestringJob title or role
stagestringLifecycle stage (default: new)
tagsarrayList of tags
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

find_contacts

Search for contacts by name, email, company, type, or stage. Archived contacts are excluded by default — pass include_archived to see them too. Each result includes its current revision.

ParameterTypeDescription
include_archivedbooleanInclude archived contacts (default: false)
limitnumberMaximum results to return (default: 50)
querystringText search across name, email, and company
stagestringFilter by lifecycle stage
typestringFilter by contact type

get_contact

Get a single contact, including its current revision. Pass `revision` to get an earlier revision's content instead (archived status and timestamps still reflect the contact as it is now).

ParameterTypeDescription
id *stringContact ID
revisionnumberOptional — return this past revision's content instead of the current one

update_contact

Update fields on an existing contact. Requires the contact's current `revision` — refused, naming both revisions, if the contact was changed since that revision was read; refused if the contact is archived (restore it first). The `type` field cannot be changed here — use convert_contact. Every successful update produces the next revision.

ParameterTypeDescription
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
id *stringContact ID
revision *numberThe contact's current revision — refused if the contact has moved on to a later one since this number was read.
companystring
emailstring
namestring
notesstring
phonestring
rolestring
stagestring
tagsarray
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

delete_contact

Archive a contact (does not delete it or its activities/deals/tasks, and does not cascade). Requires the contact's current `revision` — refused, naming both revisions, if the contact was changed since that revision was read; refused if the contact is already archived. An archived contact is excluded from find_contacts and get_pipeline by default, and can be brought back with restore_contact.

ParameterTypeDescription
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
id *stringContact ID
revision *numberThe contact's current revision — refused if the contact has moved on to a later one since this number was read.
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

restore_contact

Bring an archived contact back (the opposite of delete_contact). Requires the contact's current `revision` — refused, naming both revisions, if it changed since that revision was read; refused if the contact is not archived.

ParameterTypeDescription
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
id *stringContact ID
revision *numberThe contact's current revision — refused if the contact has moved on to a later one since this number was read.
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

convert_contact

Change a contact's type (e.g. lead to customer) as its own, logged action — the only way to change type once a contact exists (update_contact refuses it). Requires the contact's current `revision` — refused, naming both revisions, if it changed since that revision was read; refused if the contact is already that type, or is archived.

ParameterTypeDescription
contact_type *stringRequired — both types, the current and the new one, as "<current>,<new>" (e.g. "lead,customer"). The current type is checked against the contact's stored type, the new one must equal to_type.
id *stringContact ID
revision *numberThe contact's current revision — refused if the contact has moved on to a later one since this number was read.
to_type *stringThe type to convert this contact to
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

log_activity

Log an activity (email, call, meeting, note, or purchase) for a contact. Append-only: there is no tool to edit or delete a logged activity — a correction is a new activity.

ParameterTypeDescription
contact_id *stringContact ID
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
summary *stringShort summary of the activity
type *stringActivity type
created_bystringName or identifier of who logged this
datestringISO 8601 date/time (default: now)
detailstringAdditional detail or body text
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

get_activity

Get a single activity by id, including the linked contact's id, name, and ticket_id. Returned regardless of whether the contact is archived (a direct by-id read, like get_contact).

ParameterTypeDescription
id *stringActivity ID

get_timeline

Get an activity timeline. Exactly one of contact_id, email, or email_domain is required — email and email_domain match contacts.email exactly, case-insensitively (email_domain matches everything after the @, and can match more than one contact). Optional `since` (ISO 8601) keeps only activities at or after that time. Each result includes the contact's id, name, and ticket_id. Archived contacts are excluded from email/email_domain matching by default (include_archived to see them); contact_id is a direct lookup and is never filtered by archived status.

ParameterTypeDescription
contact_idstringContact ID
emailstringExact contact email to match (case-insensitive)
email_domainstringContact email domain to match, e.g. "example.com" (case-insensitive; can match several contacts)
include_archivedbooleanInclude archived contacts when matching by email/email_domain (default: false)
limitnumberMaximum activities to return (default: 20)
sincestringOptional — ISO 8601 timestamp; only activities at or after this time

create_deal

Create a new deal linked to a contact. The result's `revision` is always 1.

ParameterTypeDescription
contact_id *stringContact ID
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
title *stringDeal title
currencystringCurrency code (default: USD)
expected_closestringExpected close date (ISO 8601)
notesstringNotes about the deal
stagestringPipeline stage (default: lead)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.
valuenumberDeal value

update_deal

Update fields on an existing deal. Requires the deal's current `revision` — refused, naming both revisions, if the deal was changed since that revision was read. Every successful update produces the next revision.

ParameterTypeDescription
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
id *stringDeal ID
revision *numberThe deal's current revision — refused if the deal has moved on to a later one since this number was read.
currencystring
expected_closestring
notesstring
stagestring
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.
titlestring
valuenumber

get_deal

Get a single deal, including its current revision. Pass `revision` to get an earlier revision's content instead (timestamps still reflect the deal as it is now).

ParameterTypeDescription
id *stringDeal ID
revisionnumberOptional — return this past revision's content instead of the current one

get_pipeline

Get deals in the pipeline, optionally filtered by stage. Deals whose contact is archived are excluded by default — pass include_archived to see them too.

ParameterTypeDescription
include_archivedbooleanInclude deals whose contact is archived (default: false)
sort_bystringField to sort by (default: expected_close)
stagestringFilter to a specific pipeline stage

create_task

Create a task, optionally linked to a contact and/or deal. The result's `revision` is always 1.

ParameterTypeDescription
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
title *stringTask title
assigned_tostringName or identifier of assignee
contact_idstringContact ID (optional)
deal_idstringDeal ID (optional)
due_datestringDue date (ISO 8601)
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

list_tasks

List tasks, optionally filtered by status, contact, deal, or assignee

ParameterTypeDescription
assigned_tostringFilter by assignee
contact_idstringFilter by contact ID
deal_idstringFilter by deal ID
statusstringFilter by status (default: open)

get_task

Get a single task, including its current revision. Pass `revision` to get an earlier revision's content instead (created_at still reflects the task as it is now).

ParameterTypeDescription
id *stringTask ID
revisionnumberOptional — return this past revision's content instead of the current one

complete_task

Mark a task as done. Requires the task's current `revision` — refused, naming both revisions, if the task was changed since that revision was read.

ParameterTypeDescription
contact_type *stringRequired — the contact type this call acts on (for a task without a contact: the type it is for). Checked against the contact's actual stored type; refused if missing or on mismatch.
id *stringTask ID
revision *numberThe task's current revision — refused if the task has moved on to a later one since this number was read.
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

export_crm

Export all CRM data (contacts, activities, deals, tasks) as JSON

load_simulation

Simulation mode only: load a simulation package (name, currency, customers, optional contacts) into this connector's simulated CRM. Create only — refused if test data was already loaded, or if any contact, deal, task, or activity already exists; clear_simulation empties it first. Not available in live mode. How to build a good package: start from real cases the company's people actually handled (an email, or a short written note of a phone call) together with the reply they sent. Ask the people for what a case does not show — stock, price, credit and open balance at the time, and why somet…

ParameterTypeDescription
package *objectSimulation package: one company's test world for the email, CRM and ERP simulators — each loads its part and ignores the rest. A simulator can be loaded once; a second load is refused. This connecto…
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.

clear_simulation

Simulation mode only: delete all test data from this connector's simulated CRM — contacts, activities, deals, tasks, and the record of changes and refusals — so a new package can be loaded with load_simulation. Cannot be undone. Not available in live mode.

ParameterTypeDescription
ticket_idstringAuthorization reference for this call, set by the governing gateway — agents do not set this.