Skip to main content
Glama

list_projects

Retrieve and display project records from FreshBooks to manage client work, track progress, and organize business activities.

Instructions

List projects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo

Implementation Reference

  • The list_projects tool implementation, using the projects_list client helper to fetch and format project data.
    @mcp.tool()
    @_handle_errors
    async def list_projects(
        page: int = 1,
        per_page: int = 25,
    ) -> str:
        """List projects."""
        result = await client.projects_list("projects", page, per_page)
        projects = result.get("projects", [])
        lines = [f"Found {len(projects)} projects\n"]
        for p in projects:
            lines.append(
                f"ID: {p.get('id')} | {p.get('title', 'Untitled')} | "
                f"client: {p.get('client_id', '-')} | "
                f"type: {p.get('project_type', '-')} | "
                f"active: {p.get('active', '-')}"
            )
        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