Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

siigo_update_purchase

Modify existing purchase records in Siigo accounting software by providing the purchase ID and updated data to ensure accurate financial tracking.

Instructions

Update an existing purchase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPurchase ID
purchaseYesPurchase data to update

Implementation Reference

  • Core handler implementation: performs PUT request to Siigo API endpoint /v1/purchases/{id} to update the purchase.
    async updatePurchase(id: string, purchase: any): Promise<SiigoApiResponse<any>> {
      return this.makeRequest<any>('PUT', `/v1/purchases/${id}`, purchase);
    }
  • MCP server wrapper handler that calls the SiigoClient updatePurchase and formats the response.
    private async handleUpdatePurchase(args: any) {
      const result = await this.siigoClient.updatePurchase(args.id, args.purchase);
      return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
    }
  • Tool schema definition including input schema for validating arguments: requires id and purchase object.
    {
      name: 'siigo_update_purchase',
      description: 'Update an existing purchase',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'Purchase ID' },
          purchase: { type: 'object', description: 'Purchase data to update' },
        },
        required: ['id', 'purchase'],
      },
    },
  • src/index.ts:121-122 (registration)
    Tool dispatch registration in the switch statement for CallToolRequest handler.
    case 'siigo_update_purchase':
      return await this.handleUpdatePurchase(args);
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 'Update an existing purchase,' implying a mutation operation, but fails to specify required permissions, whether changes are reversible, error handling, or response format. This is inadequate for a mutation tool with zero annotation coverage.

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—it directly states the tool's function without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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, no output schema, and two parameters (including a nested object), the description is incomplete. It doesn't address behavioral aspects like permissions, side effects, or return values, leaving significant gaps for an AI agent to understand the tool's full context.

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%, so the schema already documents both parameters (id and purchase). The description adds no additional meaning beyond implying that 'purchase' contains update data, which is already clear from the schema. Baseline 3 is appropriate when 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 ('Update') and target resource ('an existing purchase'), making the purpose immediately understandable. However, it doesn't differentiate from sibling update tools like siigo_update_customer or siigo_update_invoice, which follow the same pattern, so it lacks sibling differentiation.

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 (e.g., needing an existing purchase ID), exclusions, or comparisons to sibling tools like siigo_create_purchase or siigo_delete_purchase, leaving usage context unclear.

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