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)' },
        },
      },
    },
Behavior3/5

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

No annotations provided, so description carries full disclosure burden. 'List all' implies comprehensiveness but doesn't clarify pagination behavior (despite schema params), return object structure, or permission scoping. Contains no contradictions but limited behavioral detail.

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

Conciseness5/5

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

Two well-structured sentences with zero waste: first establishes purpose, second provides usage context. Appropriately sized for the tool's complexity.

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

Completeness4/5

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

Given simple 2-parameter pagination structure and lack of output schema, description adequately covers intent and usage context. Would benefit from describing what fields a location object contains to aid filtering decisions.

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 has 100% description coverage for both pagination parameters, establishing baseline 3. Description adds conceptual context that the output provides IDs for filtering, but doesn't augment parameter syntax or validation rules beyond the schema.

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

Purpose5/5

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

The description provides a specific verb ('List') + resource ('shop locations') + domain ('Shopmonkey'), clearly distinguishing it from sibling list tools like list_customers or list_orders by specifying the unique resource type.

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?

Excellent context on when to use ('multi-location shops') and concrete purpose ('identify location IDs for filtering other resources'). Lacks only explicit exclusions or alternatives for single-location scenarios.

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