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'],
      },
    },
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'Update' implies mutation, the description fails to specify whether omitted fields are preserved or cleared (PATCH vs PUT semantics), what the response indicates, or any permission requirements.

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?

Extremely brief at five words with no filler. However, given the tool has 9 parameters and no annotations, this brevity results in under-specification rather than efficient communication.

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

Completeness2/5

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

For a mutation tool with 9 parameters and no output schema or annotations, the description is incomplete. It lacks critical behavioral context like partial update semantics, success indicators, and differentiation from related update siblings (update_vehicle, update_order, etc.).

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?

With 100% schema description coverage, the baseline score is 3. The description adds no specific guidance about parameters, such as noting that 'id' is the only required field for identification while others are optional updateable attributes.

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 a clear verb ('Update') and resource ('customer's information'), and includes the word 'existing' which helps distinguish this tool from the sibling create_customer. However, it does not specify which fields can be updated, leaving that entirely to the schema.

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?

Provides no guidance on when to use this versus create_customer, nor does it clarify that this performs partial updates (only the 'id' is required). No mention of prerequisites like customer existence checks.

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