zulip_get_users
Retrieve the complete list of users in a Zulip organization to manage team members, assign permissions, or coordinate communication.
Instructions
Get list of users in the Zulip organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:509-514 (handler)MCP tool handler case that executes zulipClient.getUsers() and returns the JSON-stringified response.case "zulip_get_users": { const response = await zulipClient.getUsers(); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
- index.ts:215-222 (schema)Tool schema definition including name, description, and empty input schema (no parameters required).const getUsersTool: Tool = { name: "zulip_get_users", description: "Get list of users in the Zulip organization", inputSchema: { type: "object", properties: {}, }, };
- index.ts:355-362 (helper)ZulipClient helper method that calls the Zulip JS SDK to retrieve the list of users.async getUsers() { try { return await this.client.users.retrieve(); } catch (error) { console.error("Error getting users:", error); throw error; } }
- index.ts:537-549 (registration)Registers the zulip_get_users tool (as getUsersTool) in the ListToolsRequest handler response.return { tools: [ listChannelsTool, postMessageTool, sendDirectMessageTool, addReactionTool, getChannelHistoryTool, getTopicsTool, subscribeToChannelTool, getUsersTool, ], }; });