get_user_info
Retrieve user account details from Withings to access health data and enable personalized health tracking through the Withings Health API.
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"})
- Tool schema definition including name, description, and inputSchema (empty object since no parameters are required). This is returned by list_tools().Tool( name="get_user_info", description="Get user information from Withings account", inputSchema={ "type": "object", "properties": {}, }, ),
- src/withings_mcp_server/server.py:208-209 (registration)Dispatch/registration logic in the main @server.call_tool() handler that maps the tool name to its implementation method.if name == "get_user_info": result = await self._get_user_info()