Skip to main content
Glama

list_time_entries

Retrieve time entries from FreshBooks for tracking work hours, managing projects, and billing clients. Use pagination parameters to navigate through records efficiently.

Instructions

List time entries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo

Implementation Reference

  • The list_time_entries handler function which uses the client to fetch time entries from the projects API.
    @mcp.tool()
    @_handle_errors
    async def list_time_entries(
        page: int = 1,
        per_page: int = 25,
    ) -> str:
        """List time entries."""
        result = await client.projects_list("time_entries", page, per_page)
        entries = result.get("time_entries", [])
        lines = [f"Found {len(entries)} time entries\n"]
        for e in entries:
            dur = e.get("duration", 0)
            hours = dur // 3600
            mins = (dur % 3600) // 60
            lines.append(
                f"ID: {e.get('id')} | {hours}h{mins}m | "
                f"project: {e.get('project_id', '-')} | "
                f"client: {e.get('client_id', '-')} | "
                f"date: {e.get('started_at', '')[:10]} | "
                f"note: {e.get('note', '')[:50]}"
            )
        return "\n".join(lines)

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