Vtiger MCP by usefulapi
v1.18.2Search, read, create and update Vtiger CRM leads, contacts, deals, cases and more; tag records.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
vtiger_get_me Get the connected user
The Vtiger user the credentials belong to (id, user name, name, email). GET /me.
vtiger_list_modules List modules
The CRM modules this user can access (Leads, Contacts, Accounts, Potentials, Cases, ...) with label and whether each holds records. GET /listtypes.
vtiger_describe_module Describe a module
A module's fields (name, label, type, mandatory, editable, reference targets, picklist values) and whether it can be created, updated or deleted. Read this before creating or filtering. GET /describe?elementType=<module>.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module name, for example Contacts, Accounts, Leads, Potentials (deals), Cases, Calendar (tasks and events). Names come from vtiger_list_modules. |
vtiger_list_records List or search records
Records of one module, optionally filtered (all filters AND-ed), sorted and paged. Builds a SELECT for GET /query. The vendor returns at most 100 records per call; pass next_offset as offset for the next page. Name the fields you need: a full record has 100+ fields.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module name, for example Contacts, Accounts, Leads, Potentials (deals), Cases, Calendar (tasks and events). Names come from vtiger_list_modules. |
descending | boolean | Sort descending (default false). |
fields | array | Fields to return (default all). Example: ["id","firstname","lastname","email"]. |
filters | array | Conditions combined with AND. Example: [{field:'leadstatus',op:'=',value:'Hot'},{field:'lastname',op:'like',value:'Sm%'}]. |
limit | integer | Records per page, 1-100 (default 20). |
offset | integer | Records to skip (default 0). Use next_offset from the previous reply. |
order_by | string | Field to sort by (default id). |
vtiger_count_records Count records
How many records of a module match the filters (same filters as vtiger_list_records). GET /query with count(*).
| Parameter | Type | Description |
|---|---|---|
module * | string | Module name, for example Contacts, Accounts, Leads, Potentials (deals), Cases, Calendar (tasks and events). Names come from vtiger_list_modules. |
filters | array | Conditions combined with AND. |
vtiger_query Run a SELECT query
Run your own read-only query: SELECT <fields|*|count(*)> FROM <Module> [WHERE ...] [ORDER BY ...] [LIMIT offset,count]. One module only, no joins, no grouping brackets; at most 100 records per call. Only SELECT is accepted. GET /query.
| Parameter | Type | Description |
|---|---|---|
query * | string | Example: select id,firstname,lastname from Contacts where mailingcity = 'Boston' or mailingcity = 'Austin' order by createdtime desc limit 0,25 |
vtiger_get_record Get a record
One record with all its fields, by id (for example 4x2063). GET /retrieve?id=<id>.
| Parameter | Type | Description |
|---|---|---|
id * | string | Record id of the form <moduleTypeId>x<recordId>, for example 4x2063. |
vtiger_lookup Find records by email or phone
Find records in one or more modules by an exact email address or phone number. GET /lookup.
| Parameter | Type | Description |
|---|---|---|
type * | string | What the value is. |
value * | string | The email address or phone number. |
modules | array | Modules to search (default Contacts, Leads, Accounts). |
vtiger_get_tags Get a record's tags
The tags on one record. GET /tags_retrieve?id=<id>.
| Parameter | Type | Description |
|---|---|---|
id * | string | Record id of the form <moduleTypeId>x<recordId>, for example 4x2063. |
vtiger_create_record Create a record
WRITE: create one record in a module (a lead, contact, account, deal, case, ...). Send every mandatory field (vtiger_describe_module lists them; assigned_user_id is usually mandatory, use the id from vtiger_get_me). Returns the new record. POST /create. Not retried.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Field values keyed by field name (see vtiger_describe_module). Reference fields take a record id like 3x12; picklists take the exact value. |
module * | string | Module name, for example Contacts, Accounts, Leads, Potentials (deals), Cases, Calendar (tasks and events). Names come from vtiger_list_modules. |
vtiger_update_record Update fields of a record
WRITE: change only the named fields of an existing record (the vendor's revise call; other fields stay as they are). Returns the updated record. POST /revise. Not retried.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Field values keyed by field name (see vtiger_describe_module). Reference fields take a record id like 3x12; picklists take the exact value. |
id * | string | Record id of the form <moduleTypeId>x<recordId>, for example 4x2063. |
vtiger_add_tags Add tags to a record
WRITE: add tags to one record (existing tags stay). POST /tags_add. Not retried.
| Parameter | Type | Description |
|---|---|---|
id * | string | Record id of the form <moduleTypeId>x<recordId>, for example 4x2063. |
tags * | array | Tag names to add. |