get_invoice
Retrieve detailed invoice information by ID from the Siigo Colombian electronic invoicing system, including items, taxes, and payment details.
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
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes |
Implementation Reference
- src/siigo_mcp/tools/invoices.py:42-52 (handler)The core handler function implementing the 'get_invoice' MCP tool. It fetches the invoice details from the Siigo API using the provided invoice_id.@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}")
- src/siigo_mcp/tools/discovery.py:93-93 (registration)Registers the 'get_invoice' tool in the dynamic tool loader by mapping the name to its implementation in invoices module."get_invoice": invoices.get_invoice,
- Static tool index entry providing metadata (name, category, summary) for discovery of the 'get_invoice' tool.{"name": "get_invoice", "category": "invoices", "summary": "Get an invoice by ID"},