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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product ID |
Implementation Reference
- src/siigo-client.ts:78-80 (handler)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}`); }
- src/index.ts:830-840 (handler)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'], }, },
- src/index.ts:264-271 (schema)Input schema definition for the siigo_delete_product tool.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Product ID' }, }, required: ['id'], }, },
- src/index.ts:69-70 (handler)Dispatch case in the main CallToolRequest handler switch statement.case 'siigo_delete_product': return await this.handleDeleteProduct(args);