Skip to main content
Glama

get_invoice

Retrieve detailed invoice information from Siigo's electronic invoicing system by providing the invoice ID. Returns complete invoice data including items, taxes, and payment details for accurate financial management.

Instructions

Get an invoice by ID.

Args: invoice_id: The invoice's GUID

Returns the full invoice details including items, taxes, and payments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoice_idYes

Implementation Reference

  • The primary handler implementation for the 'get_invoice' tool. This async function is decorated with @mcp.tool, takes a Context and invoice_id parameter, and fetches the invoice details from the Siigo API endpoint '/invoices/{invoice_id}', returning a dict with the invoice data.
    @mcp.tool async def get_invoice(ctx: Context, invoice_id: str) -> dict[str, Any]: """Get an invoice by ID. Args: invoice_id: The invoice's GUID Returns the full invoice details including items, taxes, and payments. """ return await get_client(ctx).get(f"/invoices/{invoice_id}")
  • Dynamic registration of the 'get_invoice' tool in the lazy-loading tool functions map, mapping it to invoices.get_invoice for use in meta-tools like call_siigo_tool.
    "get_invoice": invoices.get_invoice,
  • Tool discovery schema entry in TOOL_INDEX, defining the name 'get_invoice', category 'invoices', and summary description for tool listing.
    {"name": "get_invoice", "category": "invoices", "summary": "Get an invoice by ID"},

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/dsfaccini/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server