Skip to main content
Glama

get_invoice

Retrieve complete invoice details including line items from FreshBooks. Use this tool to access specific invoice information for accounting and client management purposes.

Instructions

Get full details of a specific invoice including line items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoice_idYes

Implementation Reference

  • The `get_invoice` tool is defined here as an asynchronous function, decorated with @mcp.tool() for registration and @_handle_errors for error management. It calls client.accounting_get to fetch invoice data and formats it using _fmt.
    @mcp.tool()
    @_handle_errors
    async def get_invoice(invoice_id: int) -> str:
        """Get full details of a specific invoice including line items."""
        result = await client.accounting_get("invoices/invoices", invoice_id)
        return _fmt(result.get("invoice", result))

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/AlexlaGuardia/MCP-Freshbooks'

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