Skip to main content
Glama
hungryweb

CS-Cart MCP Server

by hungryweb

delete_product

Remove a product from your CS-Cart store by specifying its product ID to manage inventory and keep your catalog current.

Instructions

Delete a product from the store

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesProduct ID to delete

Implementation Reference

  • The handler function that executes the delete_product tool. It sends a DELETE request to the CS-Cart API for the specified product_id and returns the response.
    async deleteProduct(args) { const result = await this.makeRequest('DELETE', `/products/${args.product_id}`); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • The tool's schema definition, including name, description, and input schema requiring a product_id.
    { name: 'delete_product', description: 'Delete a product from the store', inputSchema: { type: 'object', properties: { product_id: { type: 'number', description: 'Product ID to delete', }, }, required: ['product_id'], }, },
  • src/index.js:398-399 (registration)
    Registration in the CallToolRequestSchema switch statement that routes calls to delete_product to the deleteProduct handler method.
    case 'delete_product': return await this.deleteProduct(args);

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/hungryweb/cscart-mcp'

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