siigo_delete_product
Remove products from the Siigo accounting system by specifying the product ID 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 tool handler wrapper that extracts the product ID from arguments, calls SiigoClient.deleteProduct, and returns the JSON-formatted result.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:264-270 (schema)Input schema definition for the siigo_delete_product tool, requiring a string 'id' for the product to delete.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Product ID' }, }, required: ['id'], },
- src/index.ts:261-271 (registration)Tool registration in the list of tools returned by listTools, 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:69-70 (registration)Dispatch case in the CallToolRequest handler switch statement that routes to the specific handler.case 'siigo_delete_product': return await this.handleDeleteProduct(args);