Skip to main content
Glama
byndcloud

Unofficial Dex CRM MCP Server

by byndcloud

dex_search

Search across Dex CRM entities including contacts, groups, tags, reminders, notes, and views using keywords and filters to find specific data.

Instructions

Search across Dex entities by keyword. Set 'entity' to choose what to search: 'contacts' (name, email, company), 'groups', 'tags', 'reminders', 'notes' (timeline entries), or 'views'. For reminders you can also filter by startDate, endDate, and isComplete. For contacts you can filter by archived status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYes
searchQueryNo
takeNo
cursorNo
archivedNo
enhancedNo
startDateNo
endDateNo
isCompleteNo

Implementation Reference

  • The handler function for dex_search, which executes the search logic using the dex client.
    async (args) => {
      try {
        const endpoint = entityEndpoints[args.entity];
        const query: Record<string, string | number | boolean | undefined> = {};
    
        if (args.searchQuery !== undefined) query.searchQuery = args.searchQuery;
        if (args.take !== undefined) query.take = args.take;
        if (args.cursor !== undefined) query.cursor = args.cursor;
    
        if (args.entity === "contacts") {
          if (args.archived !== undefined) query.archived = args.archived;
          if (args.enhanced !== undefined) query.enhanced = args.enhanced;
        }
    
        if (args.entity === "reminders") {
          if (args.startDate !== undefined) query.startDate = args.startDate;
          if (args.endDate !== undefined) query.endDate = args.endDate;
          if (args.isComplete !== undefined) query.isComplete = args.isComplete;
        }
    
        if (args.entity === "notes") {
          if (args.startDate !== undefined) query.startDate = args.startDate;
          if (args.endDate !== undefined) query.endDate = args.endDate;
        }
    
        const result = await dex.get(
          endpoint,
          Object.keys(query).length ? query : undefined
        );
        return toResult(result);
      } catch (error) {
        return toError(error);
      }
    }
  • The zod schema defining input parameters for the dex_search tool.
    {
      entity: z.enum(["contacts", "groups", "tags", "reminders", "notes", "views"]),
      searchQuery: z.string().optional(),
      take: z.number().optional(),
      cursor: z.string().optional(),
      archived: z.boolean().optional(),
      enhanced: z.boolean().optional(),
      startDate: z.string().optional(),
      endDate: z.string().optional(),
      isComplete: z.boolean().optional(),
    },
  • Registration logic for the dex_search tool on the MCP server.
    export function registerSearchTools(server: McpServer): void {
      server.tool(
        "dex_search",
        "Search across Dex entities by keyword. Set 'entity' to choose what to search: 'contacts' (name, email, company), 'groups', 'tags', 'reminders', 'notes' (timeline entries), or 'views'. For reminders you can also filter by startDate, endDate, and isComplete. For contacts you can filter by archived status.",
        {
          entity: z.enum(["contacts", "groups", "tags", "reminders", "notes", "views"]),
          searchQuery: z.string().optional(),
          take: z.number().optional(),
          cursor: z.string().optional(),
          archived: z.boolean().optional(),
          enhanced: z.boolean().optional(),
          startDate: z.string().optional(),
          endDate: z.string().optional(),
          isComplete: z.boolean().optional(),
        },
        async (args) => {
          try {
            const endpoint = entityEndpoints[args.entity];
            const query: Record<string, string | number | boolean | undefined> = {};
    
            if (args.searchQuery !== undefined) query.searchQuery = args.searchQuery;
            if (args.take !== undefined) query.take = args.take;
            if (args.cursor !== undefined) query.cursor = args.cursor;
    
            if (args.entity === "contacts") {
              if (args.archived !== undefined) query.archived = args.archived;
              if (args.enhanced !== undefined) query.enhanced = args.enhanced;
            }
    
            if (args.entity === "reminders") {
              if (args.startDate !== undefined) query.startDate = args.startDate;
              if (args.endDate !== undefined) query.endDate = args.endDate;
              if (args.isComplete !== undefined) query.isComplete = args.isComplete;
            }
    
            if (args.entity === "notes") {
              if (args.startDate !== undefined) query.startDate = args.startDate;
              if (args.endDate !== undefined) query.endDate = args.endDate;
            }
    
            const result = await dex.get(
              endpoint,
              Object.keys(query).length ? query : undefined
            );
            return toResult(result);
          } catch (error) {
            return toError(error);
          }
        }
      );
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions filtering capabilities for reminders and contacts (e.g., startDate, endDate, archived status), which adds some context beyond basic search. However, it doesn't cover critical behaviors like pagination (implied by 'take' and 'cursor' parameters but not explained), rate limits, authentication needs, or what the search returns. For a 9-parameter tool with no annotations, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, starting with the core purpose. Both sentences add value: the first defines the search scope, and the second provides entity-specific filtering details. There's no wasted text, but it could be slightly more structured (e.g., bullet points for entity types).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (9 parameters, no annotations, no output schema), the description is moderately complete. It covers the tool's purpose and some parameter semantics, but lacks details on behavioral traits (e.g., pagination, errors) and return values. For a search tool with many parameters and no structured support, this leaves gaps that could hinder effective use by an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds meaning for 'entity' by listing enum values and their search scopes (e.g., contacts searches name, email, company), and explains filtering for 'archived', 'startDate', 'endDate', and 'isComplete'. However, it doesn't cover 'searchQuery', 'take', 'cursor', or 'enhanced', leaving 5 of 9 parameters undocumented. This partial coverage meets the baseline but doesn't fully compensate for the schema gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches across Dex entities by keyword, specifying the verb (search) and resource (Dex entities). It distinguishes itself from sibling tools like dex_list_contacts or dex_get_contact by emphasizing keyword-based search across multiple entity types rather than listing or retrieving specific items. However, it doesn't explicitly contrast with all siblings, so it's not a perfect 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool: for keyword searches across various Dex entities. It implicitly suggests alternatives by specifying entity types (e.g., use this for contacts, groups, etc.), but doesn't explicitly name when not to use it or direct to specific sibling tools like dex_list_contacts for non-search scenarios. This is good guidance but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/byndcloud/unofficial-dex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server