Skip to main content
Glama

list_expenses

Retrieve expense records from FreshBooks with optional filtering by client to track business spending and manage financial data.

Instructions

List expenses with optional client filter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo
client_idNo

Implementation Reference

  • The handler function for the list_expenses MCP tool.
    async def list_expenses(
        page: int = 1,
        per_page: int = 25,
        client_id: int | None = None,
    ) -> str:
        """List expenses with optional client filter."""
        filters = {}
        if client_id:
            filters["clientid"] = client_id
        result = await client.accounting_list("expenses/expenses", page, per_page, filters)
        return _summarize_list(result, "expenses", ["id", "vendor", "amount", "date", "status", "categoryid"])

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