crm-mcp
v1.6.0CRM 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Contact's full name |
type * | string | Contact type (default: customer) |
company | string | Company or organisation name |
email | string | Email address |
notes | string | Free-form notes |
phone | string | Phone number |
role | string | Job title or role |
stage | string | Lifecycle stage (default: new) |
tags | array | List of tags |
ticket_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
include_archived | boolean | Include archived contacts (default: false) |
limit | number | Maximum results to return (default: 50) |
query | string | Text search across name, email, and company |
stage | string | Filter by lifecycle stage |
type | string | Filter 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Contact ID |
revision | number | Optional — 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Contact ID |
revision * | number | The contact's current revision — refused if the contact has moved on to a later one since this number was read. |
company | string | |
email | string | |
name | string | |
notes | string | |
phone | string | |
role | string | |
stage | string | |
tags | array | |
ticket_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Contact ID |
revision * | number | The contact's current revision — refused if the contact has moved on to a later one since this number was read. |
ticket_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Contact ID |
revision * | number | The contact's current revision — refused if the contact has moved on to a later one since this number was read. |
ticket_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Contact ID |
revision * | number | The contact's current revision — refused if the contact has moved on to a later one since this number was read. |
to_type * | string | The type to convert this contact to |
ticket_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | Contact ID |
contact_type * | string | Required — 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 * | string | Short summary of the activity |
type * | string | Activity type |
created_by | string | Name or identifier of who logged this |
date | string | ISO 8601 date/time (default: now) |
detail | string | Additional detail or body text |
ticket_id | string | Authorization 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Activity 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.
| Parameter | Type | Description |
|---|---|---|
contact_id | string | Contact ID |
email | string | Exact contact email to match (case-insensitive) |
email_domain | string | Contact email domain to match, e.g. "example.com" (case-insensitive; can match several contacts) |
include_archived | boolean | Include archived contacts when matching by email/email_domain (default: false) |
limit | number | Maximum activities to return (default: 20) |
since | string | Optional — 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | Contact ID |
contact_type * | string | Required — 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 * | string | Deal title |
currency | string | Currency code (default: USD) |
expected_close | string | Expected close date (ISO 8601) |
notes | string | Notes about the deal |
stage | string | Pipeline stage (default: lead) |
ticket_id | string | Authorization reference for this call, set by the governing gateway — agents do not set this. |
value | number | Deal 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Deal ID |
revision * | number | The deal's current revision — refused if the deal has moved on to a later one since this number was read. |
currency | string | |
expected_close | string | |
notes | string | |
stage | string | |
ticket_id | string | Authorization reference for this call, set by the governing gateway — agents do not set this. |
title | string | |
value | number |
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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Deal ID |
revision | number | Optional — 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.
| Parameter | Type | Description |
|---|---|---|
include_archived | boolean | Include deals whose contact is archived (default: false) |
sort_by | string | Field to sort by (default: expected_close) |
stage | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Task title |
assigned_to | string | Name or identifier of assignee |
contact_id | string | Contact ID (optional) |
deal_id | string | Deal ID (optional) |
due_date | string | Due date (ISO 8601) |
ticket_id | string | Authorization 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
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Filter by assignee |
contact_id | string | Filter by contact ID |
deal_id | string | Filter by deal ID |
status | string | Filter 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Task ID |
revision | number | Optional — 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.
| Parameter | Type | Description |
|---|---|---|
contact_type * | string | Required — 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 * | string | Task ID |
revision * | number | The task's current revision — refused if the task has moved on to a later one since this number was read. |
ticket_id | string | Authorization 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…
| Parameter | Type | Description |
|---|---|---|
package * | object | Simulation 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_id | string | Authorization 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.
| Parameter | Type | Description |
|---|---|---|
ticket_id | string | Authorization reference for this call, set by the governing gateway — agents do not set this. |