Skip to main content
Glama

siigo_get_invoice

Retrieve a specific invoice from Siigo accounting software using its unique ID to access detailed billing information and transaction records.

Instructions

Get a specific invoice by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInvoice ID

Implementation Reference

  • MCP tool handler function for 'siigo_get_invoice' that extracts the invoice ID from arguments, calls SiigoClient.getInvoice, and returns the result as a formatted text content response.
    private async handleGetInvoice(args: any) { const result = await this.siigoClient.getInvoice(args.id); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], };
  • SiigoClient method implementing the core logic: authenticates and makes a GET request to the Siigo API endpoint `/v1/invoices/{id}`.
    async getInvoice(id: string): Promise<SiigoApiResponse<SiigoInvoice>> { return this.makeRequest<SiigoInvoice>('GET', `/v1/invoices/${id}`); }
  • JSON schema definition for the tool, specifying input as an object requiring a string 'id' parameter.
    { name: 'siigo_get_invoice', description: 'Get a specific invoice by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Invoice ID' }, }, required: ['id'], }, },
  • src/index.ts:85-86 (registration)
    Tool registration in the CallToolRequestSchema handler's switch statement, dispatching to the specific handler.
    case 'siigo_get_invoice': return await this.handleGetInvoice(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