Skip to main content
Glama
AbbottDevelopments

Shopmonkey MCP Server

update_vehicle

Modify vehicle details like year, make, model, VIN, license plate, color, and mileage in the Shopmonkey system to keep customer records current.

Instructions

Update an existing vehicle's information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe vehicle ID to update
customerIdNoCustomer ID to associate with the vehicle
yearNoVehicle model year
makeNoVehicle make
modelNoVehicle model
vinNoVehicle Identification Number
licensePlateNoLicense plate number
colorNoVehicle color
mileageNoCurrent mileage

Implementation Reference

  • The implementation of the update_vehicle tool handler, which uses shopmonkeyRequest to perform a PATCH request to the vehicle endpoint.
    async update_vehicle(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<Vehicle>('PATCH', `/vehicle/${sanitizePathParam(String(args.id))}`, body);
      return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
    },
  • The definition and input schema for the update_vehicle tool.
    {
      name: 'update_vehicle',
      description: 'Update an existing vehicle\'s information.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          id: { type: 'string', description: 'The vehicle ID to update' },
          customerId: { type: 'string', description: 'Customer ID to associate with the vehicle' },
          year: { type: 'number', description: 'Vehicle model year' },
          make: { type: 'string', description: 'Vehicle make' },
          model: { type: 'string', description: 'Vehicle model' },
          vin: { type: 'string', description: 'Vehicle Identification Number' },
          licensePlate: { type: 'string', description: 'License plate number' },
          color: { type: 'string', description: 'Vehicle color' },
          mileage: { type: 'number', description: 'Current mileage' },
        },
        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