Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

siigo_update_product

Modify existing product information in Siigo accounting software by providing the product ID and updated data fields.

Instructions

Update an existing product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesProduct ID
productYesProduct data to update

Implementation Reference

  • Core tool handler: Performs the actual API call to update a product in Siigo via PUT /v1/products/{id}.
    async updateProduct(id: string, product: Partial<SiigoProduct>): Promise<SiigoApiResponse<SiigoProduct>> {
      return this.makeRequest<SiigoProduct>('PUT', `/v1/products/${id}`, product);
    }
  • MCP server handler wrapper: Receives tool arguments, calls SiigoClient.updateProduct, and returns formatted response.
    private async handleUpdateProduct(args: any) {
      const result = await this.siigoClient.updateProduct(args.id, args.product);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • src/index.ts:249-260 (registration)
    Tool registration: Defines the tool name, description, and input schema in the MCP server's getTools() method.
    {
      name: 'siigo_update_product',
      description: 'Update an existing product',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'Product ID' },
          product: { type: 'object', description: 'Product data to update' },
        },
        required: ['id', 'product'],
      },
    },
  • TypeScript interface defining the structure of a SiigoProduct, used for input validation and API payloads.
    export interface SiigoProduct {
      id?: string;
      code: string;
      name: string;
      account_group: number;
      type?: 'Product' | 'Service' | 'ConsumerGood';
      stock_control?: boolean;
      active?: boolean;
      tax_classification?: 'Taxed' | 'Exempt' | 'Excluded';
      tax_included?: boolean;
      tax_consumption_value?: number;
      taxes?: Array<{
        id: number;
        milliliters?: number;
        rate?: number;
      }>;
      prices?: Array<{
        currency_code: string;
        price_list: Array<{
          position: number;
          value: number;
        }>;
      }>;
      unit?: string;
      unit_label?: string;
      reference?: string;
      description?: string;
      additional_fields?: {
        barcode?: string;
        brand?: string;
        tariff?: string;
        model?: string;
      };
    }
  • Switch case dispatcher in MCP CallToolRequest handler that routes to handleUpdateProduct.
    case 'siigo_update_product':
      return await this.handleUpdateProduct(args);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Update an existing product' implies a mutation operation, but it doesn't specify required permissions, whether changes are reversible, potential side effects (e.g., on related records), or error conditions. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste—'Update an existing product' is front-loaded and directly conveys the core action. Every word earns its place, making it easy to parse quickly without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a mutation tool with no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits (e.g., permissions, side effects), parameter usage beyond the schema, and expected outcomes. For a tool that modifies data, this minimal description leaves too many open questions for effective agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both parameters ('id' and 'product') documented in the schema. The description doesn't add any meaning beyond what the schema provides—it doesn't clarify the format of 'id', the structure of 'product', or examples of updatable fields. With high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Update an existing product' clearly states the verb ('update') and resource ('product'), making the purpose immediately understandable. It distinguishes this from sibling tools like siigo_create_product (creation) and siigo_delete_product (deletion), though it doesn't specify what aspects of a product can be updated beyond the generic term.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites (e.g., needing an existing product ID), compare it to similar update tools (e.g., siigo_update_customer), or indicate scenarios where it's appropriate versus not. Usage is implied by the name but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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