get_user_info
Retrieve user profile data from Withings health accounts to access personal health metrics and account details.
Instructions
Get user information from Withings account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler function for the 'get_user_info' tool. It makes an authenticated API request to the Withings /v2/user endpoint with action='getdevice' to retrieve user information.async def _get_user_info(self) -> dict: """Get user information.""" return await self._make_request("/v2/user", {"action": "getdevice"})
- src/withings_mcp_server/server.py:31-38 (registration)Tool registration in list_tools() method, defining the tool name, description, and input schema (no required parameters).Tool( name="get_user_info", description="Get user information from Withings account", inputSchema={ "type": "object", "properties": {}, }, ),
- src/withings_mcp_server/server.py:197-198 (registration)Dispatch logic in the call_tool() handler that checks the tool name and invokes the _get_user_info() method.if name == "get_user_info": result = await self._get_user_info()
- Input schema definition for the tool: an empty object indicating no input parameters are required.inputSchema={ "type": "object", "properties": {}, },