zulip_get_users
Retrieve a list of users in your Zulip organization to manage team members and facilitate communication within the workspace.
Instructions
Get list of users in the Zulip organization
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "zulip_get_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:509-514 (handler)Handler case for 'zulip_get_users' tool: calls ZulipClient.getUsers() and serializes the response as JSON text content.
case "zulip_get_users": { const response = await zulipClient.getUsers(); return { content: [{ type: "text", text: JSON.stringify(response) }], }; } - index.ts:355-362 (helper)ZulipClient helper method implementing the core logic to retrieve all users via the Zulip JS client API.
async getUsers() { try { return await this.client.users.retrieve(); } catch (error) { console.error("Error getting users:", error); throw error; } } - index.ts:215-222 (schema)Tool schema: defines 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:546-546 (registration)Registration of the tool in the ListTools response array.
getUsersTool,