get_user
Retrieve user details by providing a user ID to access specific account information within the Devici MCP Server.
Instructions
Get a specific user by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Implementation Reference
- src/devici_mcp_server/server.py:27-32 (handler)MCP tool handler for 'get_user'. Decorated with @mcp.tool() to register and implement the tool logic, which fetches the user via the API client and returns the result as string.@mcp.tool() async def get_user(user_id: str) -> str: """Get a specific user by ID""" async with create_client_from_env() as client: result = await client.get_user(user_id) return str(result)
- API client helper method that performs the HTTP GET request to the Devici API endpoint for retrieving a specific user by ID.async def get_user(self, user_id: str) -> Dict[str, Any]: """Get specific user by ID.""" return await self._make_request("GET", f"/users/{user_id}")