Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

list_locations

Retrieve all shop locations to identify location IDs for filtering resources in multi-location shop management systems.

Instructions

List all shop locations in Shopmonkey. Useful for multi-location shops to identify location IDs for filtering other resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 25)
pageNoPage number for pagination (default: 1)

Implementation Reference

  • The handler implementation for the list_locations tool, which makes a GET request to the /location endpoint.
    async list_locations(args) {
      const params: Record<string, string> = {};
      if (args.limit !== undefined) params.limit = String(args.limit);
      if (args.page !== undefined) params.page = String(args.page);
    
      const data = await shopmonkeyRequest<Location[]>('GET', '/location', undefined, params);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The schema definition for the list_locations tool.
    {
      name: 'list_locations',
      description: 'List all shop locations in Shopmonkey. Useful for multi-location shops to identify location IDs for filtering other resources.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          limit: { type: 'number', description: 'Maximum number of results to return (default: 25)' },
          page: { type: 'number', description: 'Page number for pagination (default: 1)' },
        },
      },
    },

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