Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

siigo_get_products

Retrieve product listings from Siigo accounting software. Use this tool to access product data with pagination controls for efficient management.

Instructions

Get list of products from Siigo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number
page_sizeNoNumber of items per page

Implementation Reference

  • src/index.ts:198-208 (registration)
    Tool registration in getTools() method, defining name, description, and input schema for pagination parameters.
    {
      name: 'siigo_get_products',
      description: 'Get list of products from Siigo',
      inputSchema: {
        type: 'object',
        properties: {
          page: { type: 'number', description: 'Page number' },
          page_size: { type: 'number', description: 'Number of items per page' },
        },
      },
    },
  • MCP server handler wrapper that calls SiigoClient.getProducts with arguments and formats the result as JSON text content.
    private async handleGetProducts(args: any) {
      const result = await this.siigoClient.getProducts(args);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • Core product listing handler in SiigoClient that performs authenticated GET request to Siigo API /v1/products endpoint with optional pagination.
    async getProducts(params?: { page?: number; page_size?: number }): Promise<SiigoApiResponse<SiigoProduct>> {
      return this.makeRequest<SiigoProduct>('GET', '/v1/products', undefined, params);
    }
  • TypeScript interface defining the structure of SiigoProduct used for typing the API response.
    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;
      };
    }
  • Utility method handling authentication, HTTP requests to Siigo API, and error handling, used by all tool implementations.
    private async makeRequest<T>(method: string, endpoint: string, data?: any, params?: any): Promise<SiigoApiResponse<T>> {
      await this.authenticate();
    
      try {
        const response: AxiosResponse<SiigoApiResponse<T>> = await this.httpClient.request({
          method,
          url: endpoint,
          data,
          params,
        });
    
        return response.data;
      } catch (error: any) {
        if (error.response?.data) {
          return error.response.data;
        }
        throw new Error(`API request failed: ${error.message}`);
      }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a 'Get list' operation, implying it's read-only, but doesn't mention any behavioral traits like pagination behavior (though parameters suggest it), rate limits, authentication requirements, or what format the list returns. The description is minimal and lacks important operational context.

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 extremely concise at just 5 words, front-loaded with the core purpose. There's zero wasted language or unnecessary elaboration, making it efficient for quick understanding.

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?

For a list retrieval tool with no annotations and no output schema, the description is insufficient. It doesn't explain what information the product list contains, how results are structured, whether there are filtering options beyond pagination, or any error conditions. The minimal description leaves too many operational questions unanswered.

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 (page and page_size) clearly documented in the schema. The description doesn't add any parameter semantics beyond what the schema provides, but with complete 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 clearly states the action ('Get list') and resource ('products from Siigo'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from its sibling 'siigo_get_product' (singular), which presumably retrieves a single product rather than a list.

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?

The description provides no guidance on when to use this tool versus alternatives. There are multiple sibling tools for retrieving different resources (e.g., siigo_get_customers, siigo_get_invoices), but no indication of when this specific product listing tool is appropriate versus other get operations.

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