Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

delete_product

Remove a product from the ShipStation system by specifying the product ID to manage inventory and product listings effectively.

Input Schema

NameRequiredDescriptionDefault
productIdYesProduct ID to delete

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "productId": { "description": "Product ID to delete", "type": "number" } }, "required": [ "productId" ], "type": "object" }

Implementation Reference

  • The handler function for the 'delete_product' MCP tool. It calls shipStationClient.deleteProduct(productId), formats the JSON response, and handles errors by returning an error message.
    handler: async ({ productId }) => { try { const result = await shipStationClient.deleteProduct(productId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • Zod input schema for the 'delete_product' tool, requiring a numeric 'productId' parameter.
    schema: { productId: z.number().describe("Product ID to delete") },
  • src/server.js:174-191 (registration)
    Registration code that spreads the productTools array (containing 'delete_product') and registers each tool with the MCP server using server.tool().
    [ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
  • ShipStationClient helper method that sends a DELETE request to the ShipStation API endpoint `/products/${productId}` to delete the product.
    async deleteProduct(productId) { return this.request('DELETE', `/products/${productId}`); }

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/mattcoatsworth/shipstation-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server