Skip to main content
Glama

siigo_delete_product

Remove a product from the Siigo accounting system by specifying its unique identifier to maintain accurate inventory and financial records.

Instructions

Delete a product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesProduct ID

Implementation Reference

  • Core handler function that performs the DELETE API request to Siigo's /v1/products/{id} endpoint to delete the product.
    async deleteProduct(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('DELETE', `/v1/products/${id}`); }
  • MCP server handler wrapper that invokes SiigoClient.deleteProduct and returns the formatted response.
    private async handleDeleteProduct(args: any) { const result = await this.siigoClient.deleteProduct(args.id); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:262-271 (registration)
    Tool registration in getTools() including name, description, and input schema.
    name: 'siigo_delete_product', description: 'Delete a product', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Product ID' }, }, required: ['id'], }, },
  • Input schema definition for the siigo_delete_product tool.
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Product ID' }, }, required: ['id'], }, },
  • Dispatch case in the main CallToolRequest handler switch statement.
    case 'siigo_delete_product': return await this.handleDeleteProduct(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/jdlar1/siigo-mcp'

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