Skip to main content
Glama

search_users

Find users in the Devici security platform by searching specific fields with text queries to manage access and permissions.

Instructions

Search users by field and text

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldYes
textYes

Implementation Reference

  • The MCP tool handler function for 'search_users'. Decorated with @mcp.tool() for registration. It creates an API client context, calls the client's search_users method, and returns the result as a string.
    @mcp.tool() async def search_users(field: str, text: str) -> str: """Search users by field and text""" async with create_client_from_env() as client: result = await client.search_users(field, text) return str(result)
  • Supporting helper method in the DeviciAPIClient class that performs the actual HTTP GET request to the /users/search endpoint with query parameters for field and text.
    async def search_users(self, field: str, text: str) -> Dict[str, Any]: """Search users by field and text.""" return await self._make_request("GET", f"/users/search/field={field}&text={text}")

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