list_projects
Retrieve all projects from your Zoho Projects portal with pagination support to manage project overview and organization.
Instructions
List all projects in a portal
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| per_page | No | Items per page |
Implementation Reference
- src/http-server.ts:642-649 (handler)Core handler function for 'list_projects' tool. Fetches paginated list of projects from the configured Zoho portal via API and returns formatted JSON response as MCP content.private async listProjects(page: number = 1, perPage: number = 10) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects?page=${page}&per_page=${perPage}` ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
- src/index.ts:639-646 (handler)Identical core handler function for 'list_projects' tool in the stdio version of the server.private async listProjects(page: number = 1, perPage: number = 10) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects?page=${page}&per_page=${perPage}` ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
- src/http-server.ts:205-218 (schema)Input schema definition for the list_projects tool, specifying optional pagination parameters.name: "list_projects", description: "List all projects in a portal", inputSchema: { type: "object", properties: { page: { type: "number", description: "Page number", default: 1 }, per_page: { type: "number", description: "Items per page", default: 10, }, }, }, },
- src/index.ts:202-215 (schema)Input schema definition for the list_projects tool in stdio server version.name: "list_projects", description: "List all projects in a portal", inputSchema: { type: "object", properties: { page: { type: "number", description: "Page number", default: 1 }, per_page: { type: "number", description: "Items per page", default: 10, }, }, }, },
- src/http-server.ts:563-564 (registration)Tool dispatch/registration in the CallToolRequestSchema switch statement, calling the handler.case "list_projects": return await this.listProjects(params.page, params.per_page);