Skip to main content
Glama
qpiai

Zoho Projects MCP Server

by qpiai

list_users

Retrieve user information from Zoho Projects to manage team members and assign tasks. Use this tool to view all users in a specific project or across your entire portal.

Instructions

List users in a portal or project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject ID (optional for portal-level)

Implementation Reference

  • The handler function that implements the list_users tool logic. It determines the Zoho API endpoint based on whether a project_id is provided (project-level or portal-level users) and fetches the data using makeRequest, returning it as formatted text content.
    private async listUsers(projectId?: string) { const endpoint = projectId ? `/portal/${this.config.portalId}/projects/${projectId}/users` : `/portal/${this.config.portalId}/users`; const data = await this.makeRequest(endpoint); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
  • The handler function that implements the list_users tool logic. It determines the Zoho API endpoint based on whether a project_id is provided (project-level or portal-level users) and fetches the data using makeRequest, returning it as formatted text content.
    private async listUsers(projectId?: string) { const endpoint = projectId ? `/portal/${this.config.portalId}/projects/${projectId}/users` : `/portal/${this.config.portalId}/users`; const data = await this.makeRequest(endpoint); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
  • The tool definition including input schema for list_users, specifying optional project_id parameter.
    name: "list_users", description: "List users in a portal or project", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID (optional for portal-level)", }, }, }, },
  • The tool definition including input schema for list_users, specifying optional project_id parameter.
    name: "list_users", description: "List users in a portal or project", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID (optional for portal-level)", }, }, }, },
  • The switch case that registers and dispatches the list_users tool call to its handler.
    case "list_users": return await this.listUsers(params.project_id);

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/qpiai/zoho-projects-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server