Vtiger MCP by usefulapi

v1.18.2
io.usefulapi/vtiger Checked 3 days ago Published 1 day ago

Search, 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>.

ParameterTypeDescription
module *stringModule 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.

ParameterTypeDescription
module *stringModule name, for example Contacts, Accounts, Leads, Potentials (deals), Cases, Calendar (tasks and events). Names come from vtiger_list_modules.
descendingbooleanSort descending (default false).
fieldsarrayFields to return (default all). Example: ["id","firstname","lastname","email"].
filtersarrayConditions combined with AND. Example: [{field:'leadstatus',op:'=',value:'Hot'},{field:'lastname',op:'like',value:'Sm%'}].
limitintegerRecords per page, 1-100 (default 20).
offsetintegerRecords to skip (default 0). Use next_offset from the previous reply.
order_bystringField 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(*).

ParameterTypeDescription
module *stringModule name, for example Contacts, Accounts, Leads, Potentials (deals), Cases, Calendar (tasks and events). Names come from vtiger_list_modules.
filtersarrayConditions 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.

ParameterTypeDescription
query *stringExample: 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>.

ParameterTypeDescription
id *stringRecord 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.

ParameterTypeDescription
type *stringWhat the value is.
value *stringThe email address or phone number.
modulesarrayModules to search (default Contacts, Leads, Accounts).

vtiger_get_tags Get a record's tags

The tags on one record. GET /tags_retrieve?id=<id>.

ParameterTypeDescription
id *stringRecord 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.

ParameterTypeDescription
fields *objectField values keyed by field name (see vtiger_describe_module). Reference fields take a record id like 3x12; picklists take the exact value.
module *stringModule 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.

ParameterTypeDescription
fields *objectField values keyed by field name (see vtiger_describe_module). Reference fields take a record id like 3x12; picklists take the exact value.
id *stringRecord 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.

ParameterTypeDescription
id *stringRecord id of the form <moduleTypeId>x<recordId>, for example 4x2063.
tags *arrayTag names to add.