Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

update_customer

Modify customer details like name, contact information, and address to keep records current and accurate in the Shopmonkey system.

Instructions

Update an existing customer's information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe customer ID to update
firstNameNoCustomer first name
lastNameNoCustomer last name
emailNoCustomer email address
phoneNoCustomer phone number
addressNoStreet address
cityNoCity
stateNoState
zipNoZIP code

Implementation Reference

  • The handler for the update_customer tool which updates a customer's information via a PATCH request.
    async update_customer(args) {
      if (!args.id) return { content: [{ type: 'text', text: 'Error: id is required' }], isError: true };
      const body = pickFields(args, ALLOWED_FIELDS);
      const data = await shopmonkeyRequest<Customer>('PATCH', `/customer/${sanitizePathParam(String(args.id))}`, body);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The schema definition for the update_customer tool.
    {
      name: 'update_customer',
      description: 'Update an existing customer\'s information.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          id: { type: 'string', description: 'The customer ID to update' },
          firstName: { type: 'string', description: 'Customer first name' },
          lastName: { type: 'string', description: 'Customer last name' },
          email: { type: 'string', description: 'Customer email address' },
          phone: { type: 'string', description: 'Customer phone number' },
          address: { type: 'string', description: 'Street address' },
          city: { type: 'string', description: 'City' },
          state: { type: 'string', description: 'State' },
          zip: { type: 'string', description: 'ZIP code' },
        },
        required: ['id'],
      },
    },

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