Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

list_labor

Retrieve labor line items from Shopmonkey to track technician work on orders, with filtering by work order ID, location, and pagination controls.

Instructions

List labor line items from Shopmonkey. Useful for tracking technician work on orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdNoFilter labor entries by work order ID
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 implementation of the 'list_labor' tool handler, which processes input arguments and makes a request to the Shopmonkey API.
    async list_labor(args) {
      const params: Record<string, string> = {};
      if (args.orderId !== undefined) params.orderId = String(args.orderId);
      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<Labor[]>('GET', '/labor', undefined, params);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The MCP tool definition and input schema for 'list_labor'.
    {
      name: 'list_labor',
      description: 'List labor line items from Shopmonkey. Useful for tracking technician work on orders.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          orderId: { type: 'string', description: 'Filter labor entries by work order ID' },
          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)' },
        },
      },
    },
Behavior2/5

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

No annotations are provided, so the description must carry full disclosure burden. While 'List' implies read-only, the description doesn't confirm idempotency, pagination behavior, default sorting, error handling, or rate limits. The mention of 'technician work' adds some behavioral context, but safety/side-effect disclosure is absent.

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 no redundancy. The first sentence front-loads the core purpose, while the second provides use-case context. Appropriate length for the complexity, though could benefit from explicit filtering behavior mention given the optional parameters.

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 simple 4-parameter schema with 100% coverage and no output schema, the description is minimally complete. However, lacking annotations and behavioral details (pagination, result set size), it falls short of fully preparing an agent for invocation nuances.

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%, so baseline is 3. The description adds value by establishing that labor relates to 'technician work on orders,' which helps contextualize the orderId parameter. However, it doesn't explain parameter relationships (e.g., that orderId and locationId can be combined) or validation rules beyond the schema.

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 action (List) and resource (labor line items) from Shopmonkey. The second sentence adds domain context distinguishing 'technician work' from other list operations like services or timeclock entries. However, it doesn't explicitly clarify the distinction between labor line items vs service line items vs timeclock entries.

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

Usage Guidelines3/5

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

Provides implied usage context ('tracking technician work on orders') suggesting when to use it, but lacks explicit guidance on when to choose this over list_services, list_timeclock, or get_order. No prerequisites or alternative recommendations are mentioned.

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