list_projects
Retrieve all projects from your Zoho Projects portal to view and manage your project portfolio.
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/index.ts:639-646 (handler)Core handler function executing the list_projects tool by making an authenticated API request to Zoho Projects to retrieve paginated list of projects and returning formatted JSON response.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:202-215 (registration)Registration of the list_projects tool in the tools list returned by ListToolsRequestSchema, including name, description, and input schema.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:642-649 (handler)Core handler function executing the list_projects tool by making an authenticated API request to Zoho Projects to retrieve paginated list of projects and returning formatted JSON response.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 (registration)Registration of the list_projects tool in the tools list returned by ListToolsRequestSchema, including name, description, and input schema.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, }, }, }, },