MCPDirectory
Search contacts
distru-search-contactsReadSearches the contacts of the caller's company — the people it deals with at its customers, vendors and its own company.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Default: 10 |
| cursor | string | No | nextCursor of the previous call; keep the other arguments unchanged. |
| companyIds | string[] | No | Resolve via distru-search-companies. |
| customFields | object[] | No | Set one of contains, anyOf or onOrAfter/onOrBefore per entry. Records with no value for the field never match. |
| customFields[]. | string | Yes | Resolve via distru-search-custom-fields. |
| customFields[]. | string | No | TEXT: case-insensitive substring. |
| customFields[]. | string[] | No | DROPDOWN, CHECKBOX: any of these options, case-sensitive. |
| customFields[]. | string | No | DATE: YYYY-MM-DD, company timezone. |
| customFields[]. | string | No | DATE: YYYY-MM-DD, company timezone. |
| ids | string[] | No | |
| search | string | No | Case-insensitive substring of full name, company name or email. Unranked; sortBy applies. |
| sortBy | object | No | Default UPDATED_AT DESC. |
| sortBy. | enumASCDESC | Yes | |
| sortBy. | enumFULL_NAMEINSERTED_ATUPDATED_AT | Yes |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence | Description |
|---|---|---|---|
| hasMore | boolean | Always | |
| nextCursor | string | Can be absent | |
| totalCount | integer | Can be absent | |
| items | object[] | Always | |
| items[]. | string | Always | |
| items[]. | string | Always | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | object | Null or absent | |
| items[]. | string | Always | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | string | Null or absent | |
| items[]. | object[] | Always | |
| items[]. | object | Always | |
| items[]. | string | Always | |
| items[]. | string | Always | |
| items[]. | enumCHECKBOXDATEDROPDOWNTEXT | Always | |
| items[]. | string | Can be null | Null when unset. DATE values are days (YYYY-MM-DD) in the company timezone; CHECKBOX values are the selected option names, separated by commas. |
| items[]. | object | Null or absent | |
| items[]. | string | Always | |
| items[]. | string | Null or absent | |
| items[]. | string | Always | |
| items[]. | string | Always |
What the AI reads
Searches the contacts of the caller's company — the people it deals with at its customers, vendors and its own company. Use it to find a person's email or phone, or who the contacts at a company are. owner is the Distru user responsible for the contact, not someone at the contact's company.