Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

list_inventory_parts

Retrieve and manage parts inventory data from Shopmonkey with pagination support for efficient stock tracking and control.

Instructions

List parts from Shopmonkey inventory. Supports pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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 list_inventory_parts, which calls shopmonkeyRequest to fetch parts.
    async list_inventory_parts(args) {
      const params: Record<string, string> = {};
      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<InventoryPart[]>('GET', '/inventory/part', undefined, params);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The MCP tool definition for list_inventory_parts, specifying the input schema.
    {
      name: 'list_inventory_parts',
      description: 'List parts from Shopmonkey inventory. Supports pagination.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          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 zero annotations provided, the description carries full disclosure burden. It mentions pagination behavior, helping the agent understand this handles large datasets. However, it fails to disclose read-only safety, rate limits, or return structure that annotations would typically cover.

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 efficient sentences with zero waste. Core purpose front-loaded in first sentence; behavioral trait (pagination) follows. No redundancy with schema or name.

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?

Adequate for a simple paginated list operation with well-described parameters, but incomplete regarding sibling tool differentiation (search_parts vs list) and behavioral disclosure given lack of annotations and output schema.

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

Parameters4/5

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

Schema coverage is 100% covering all three parameters. The description adds value by contextualizing limit/page as 'pagination' and framing locationId within 'Shopmonkey inventory,' adding business context beyond the technical schema definitions.

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?

States specific verb (List), resource (parts), and scope (Shopmonkey inventory). The mention of 'Shopmonkey inventory' implicitly distinguishes from search_parts (which may search external catalogs) and get_inventory_part (singular retrieval), though explicit comparison language would strengthen this.

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?

Mentions pagination support but provides no guidance on when to use this tool versus siblings like search_parts (advanced/pervasive search) or get_inventory_part (single record lookup). No when-not-to-use or prerequisite guidance.

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