get_users
Retrieve user data from Devici MCP Server with pagination support, enabling efficient management and access to user information from the Devici API.
Instructions
Get users from Devici with pagination
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| page | No |
Implementation Reference
- src/devici_mcp_server/server.py:19-24 (handler)MCP tool handler for 'get_users', decorated with @mcp.tool() for registration, creates API client and calls its get_users method.@mcp.tool() async def get_users(limit: int = 20, page: int = 0) -> str: """Get users from Devici with pagination""" async with create_client_from_env() as client: result = await client.get_users(limit=limit, page=page) return str(result)
- Core implementation in API client that makes HTTP GET request to '/users/' endpoint with pagination parameters.async def get_users(self, limit: int = 20, page: int = 0) -> Dict[str, Any]: """Get all users.""" params = {"limit": limit, "page": page} return await self._make_request("GET", "/users/", params=params)