Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

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
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 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),
          },
        ],
      };
    }
  • 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);

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