Skip to main content
Glama

siigo_delete_invoice

Remove invoices from the Siigo accounting system by providing the invoice ID to maintain accurate financial records.

Instructions

Delete an invoice

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInvoice ID

Implementation Reference

  • Core implementation of the siigo_delete_invoice tool: sends DELETE request to Siigo API endpoint /v1/invoices/{id}
    async deleteInvoice(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('DELETE', `/v1/invoices/${id}`); }
  • MCP server handler wrapper that calls SiigoClient.deleteInvoice and formats response
    private async handleDeleteInvoice(args: any) { const result = await this.siigoClient.deleteInvoice(args.id); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:409-419 (registration)
    Tool registration in getTools(): defines name, description, and input schema
    { name: 'siigo_delete_invoice', description: 'Delete an invoice', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Invoice ID' }, }, required: ['id'], }, },
  • Input schema definition for the tool: requires 'id' string
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Invoice ID' }, }, required: ['id'], },
  • Dispatcher switch case that routes to handleDeleteInvoice handler
    case 'siigo_delete_invoice': return await this.handleDeleteInvoice(args);

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