Skip to main content
Glama

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
NameRequiredDescriptionDefault
invoice_idYes

Implementation Reference

  • 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}")
  • 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"},

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