Skip to main content
Glama
jdlar1

Siigo MCP Server

by jdlar1

siigo_update_payment_receipt

Modify existing payment receipt records in Siigo accounting software by providing the receipt ID and updated data to correct or adjust financial entries.

Instructions

Update an existing payment receipt

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPayment receipt ID
paymentReceiptYesPayment receipt data to update

Implementation Reference

  • Core handler function that performs the PUT request to the Siigo API to update a payment receipt.
    async updatePaymentReceipt(id: string, paymentReceipt: any): Promise<SiigoApiResponse<any>> {
      return this.makeRequest<any>('PUT', `/v1/payment-receipts/${id}`, paymentReceipt);
    }
  • MCP tool handler wrapper that calls the SiigoClient method and formats the response as MCP content.
    private async handleUpdatePaymentReceipt(args: any) {
      const result = await this.siigoClient.updatePaymentReceipt(args.id, args.paymentReceipt);
      return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
    }
  • Input schema definition for the tool, specifying required id and paymentReceipt object.
    {
      name: 'siigo_update_payment_receipt',
      description: 'Update an existing payment receipt',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'Payment receipt ID' },
          paymentReceipt: { type: 'object', description: 'Payment receipt data to update' },
        },
        required: ['id', 'paymentReceipt'],
      },
    },
  • src/index.ts:133-134 (registration)
    Dispatch case in the main CallToolRequestSchema handler that routes to the specific tool handler.
    case 'siigo_update_payment_receipt':
      return await this.handleUpdatePaymentReceipt(args);
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. While 'Update' implies a mutation operation, it doesn't specify required permissions, whether the update is partial or full, what happens to unchanged fields, error conditions, or response format. 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 a single, efficient sentence with zero wasted words. It's front-loaded with the core action and resource, making it immediately scannable and understandable.

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 inadequate. It doesn't address behavioral aspects like permissions, error handling, or response format, nor does it provide usage guidance. The 100% schema coverage helps with parameters but doesn't compensate for other critical gaps.

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 paymentReceipt). The description adds no additional semantic context about parameter usage, constraints, or examples beyond what's in 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 resource ('an existing payment receipt'), making the purpose immediately understandable. However, it doesn't differentiate this from sibling update tools like siigo_update_customer or siigo_update_invoice, which follow the same pattern.

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 payment receipt ID), nor does it differentiate from other update operations or indicate when not to use it (e.g., for creating new receipts).

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