Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

siigo_update_customer

Update customer information in Siigo accounting software by providing the customer ID and new data to modify existing records.

Instructions

Update an existing customer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCustomer ID
customerYesCustomer data to update

Implementation Reference

  • Core handler implementation that performs the PUT API request to update a customer in Siigo.
    async updateCustomer(id: string, customer: Partial<SiigoCustomer>): Promise<SiigoApiResponse<SiigoCustomer>> {
      return this.makeRequest<SiigoCustomer>('PUT', `/v1/customers/${id}`, customer);
    }
  • MCP server handler that invokes SiigoClient.updateCustomer and returns the result as formatted JSON text.
    private async handleUpdateCustomer(args: any) {
      const result = await this.siigoClient.updateCustomer(args.id, args.customer);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • src/index.ts:336-348 (registration)
    Tool registration entry in getTools() method, defining name, description, and input schema.
    {
      name: 'siigo_update_customer',
      description: 'Update an existing customer',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'Customer ID' },
          customer: { type: 'object', description: 'Customer data to update' },
        },
        required: ['id', 'customer'],
      },
    },
  • TypeScript interface defining the structure of a SiigoCustomer object used for update operations.
    export interface SiigoCustomer {
      id?: string;
      type?: 'Customer' | 'Supplier' | 'Other';
      person_type: 'Person' | 'Company';
      id_type: string;
      identification: string;
      check_digit?: string;
      name: string[];
      commercial_name?: string;
      branch_office?: number;
      active?: boolean;
      vat_responsible?: boolean;
      fiscal_responsibilities?: Array<{ code: string }>;
      address: {
        address: string;
        city: {
          country_code: string;
          state_code: string;
          city_code: string;
        };
        postal_code?: string;
      };
      phones: Array<{
        indicative?: string;
        number: string;
        extension?: string;
      }>;
      contacts: Array<{
        first_name: string;
        last_name: string;
        email: string;
        phone?: {
          indicative?: string;
          number?: string;
          extension?: string;
        };
      }>;
      comments?: string;
      related_users?: {
        seller_id?: number;
        collector_id?: number;
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. 'Update an existing customer' implies a mutation operation, but it doesn't disclose any behavioral traits: no information about required permissions, whether changes are reversible, rate limits, error conditions, or what happens to unspecified fields. This leaves significant gaps for a mutation tool.

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 perfectly concise at just three words. It's front-loaded with the essential information (update operation on customer resource) with zero wasted words. Every word earns its place in this minimal but complete statement of purpose.

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 mutation tool with no annotations and no output schema, the description is insufficiently complete. It doesn't address what the update operation returns, what validation occurs, error handling, or system behavior. The agent lacks crucial context needed to use this tool effectively despite the clear schema documentation.

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?

The schema description coverage is 100%, with both parameters clearly documented in the schema itself. The description adds no additional parameter semantics beyond what's in the schema. According to scoring rules, when schema coverage is high (>80%), the baseline is 3 even with no param info in the description.

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 ('Update') and resource ('an existing customer'), making the purpose immediately understandable. It distinguishes itself from sibling tools like 'siigo_create_customer' by specifying it's for updates rather than creation. However, it doesn't specify what aspects of the customer can be updated, which prevents a perfect score.

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. It doesn't mention prerequisites (like needing an existing customer ID), doesn't differentiate from other update tools (like siigo_update_invoice), and doesn't indicate when not to use it. The agent must infer usage from the tool name alone.

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