Skip to main content
Glama

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
NameRequiredDescriptionDefault

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 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": {}, }, ),
  • 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": {}, },

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/schimmmi/withings-mcp-server'

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