Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

list_customers

Retrieve customer records from Shopmonkey with search by name, email, or phone, and pagination controls for efficient data management.

Instructions

List customers from Shopmonkey. Supports search and pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoSearch query to filter customers by name, email, or phone
locationIdNoFilter by location ID. Defaults to SHOPMONKEY_LOCATION_ID env var if set.
limitNoMaximum number of results to return (default: 25)
pageNoPage number for pagination (default: 1)

Implementation Reference

  • The handler function for the `list_customers` MCP tool, which prepares query parameters and calls the Shopmonkey API.
    async list_customers(args) {
      const params: Record<string, string> = {};
      if (args.query !== undefined) params.query = String(args.query);
      if (args.locationId !== undefined) params.locationId = String(args.locationId);
      if (args.limit !== undefined) params.limit = String(args.limit);
      if (args.page !== undefined) params.page = String(args.page);
      applyDefaultLocation(params);
    
      const data = await shopmonkeyRequest<Customer[]>('GET', '/customer', undefined, params);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The MCP tool definition (schema) for `list_customers`.
    {
      name: 'list_customers',
      description: 'List customers from Shopmonkey. Supports search and pagination.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          query: { type: 'string', description: 'Search query to filter customers by name, email, or phone' },
          locationId: { type: 'string', description: 'Filter by location ID. Defaults to SHOPMONKEY_LOCATION_ID env var if set.' },
          limit: { type: 'number', description: 'Maximum number of results to return (default: 25)' },
          page: { type: 'number', description: 'Page number for pagination (default: 1)' },
        },
      },
    },
Behavior3/5

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

With no annotations provided, the description carries the full burden. It mentions 'search and pagination' which adds behavioral context, but omits critical safety information (read-only status), rate limits, and the default behavior for locationId (falling back to env var).

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?

Two sentences with minimal waste. However, it misses the opportunity to front-load the important locationId default behavior (SHOPMONKEY_LOCATION_ID env var) mentioned in the schema, which is crucial for successful invocation.

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?

With 4 parameters, 100% schema coverage, and no output schema, the description is minimally adequate but incomplete. It fails to describe return values (necessary without output schema) and omits the env var default for locationId that appears only in the schema description.

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 coverage is 100%, establishing a baseline of 3. The description mentions 'search' and 'pagination' which map to the query/limit/page parameters, but adds no semantic detail beyond the schema descriptions—no syntax examples, format constraints, or clarifications on the locationId default behavior.

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?

Clear verb ('List') and resource ('customers from Shopmonkey'), but fails to distinguish from sibling 'get_customer'—it doesn't clarify that 'list' is for searching/filtering multiple records while 'get' retrieves a specific customer by ID.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this tool versus 'get_customer' or 'search_parts'. No mention of prerequisites like authentication or when pagination is necessary.

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/AbbottDevelopments/shopmonkey-mcp-server'

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