Skip to main content
Glama

get_users

Retrieve user data from Devici's security platform with pagination controls for efficient management of user accounts.

Instructions

Get users from Devici with pagination

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
pageNo

Implementation Reference

  • The main handler function for the 'get_users' MCP tool. It is decorated with @mcp.tool() for registration and executes the tool logic by calling the API client.
    @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)
  • Supporting method in the API client class that performs the actual HTTP GET request to retrieve users from the Devici API.
    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)

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/sdelements/devici-mcp'

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