Skip to main content
Glama

update_current_user

Update the profile of the currently authenticated user by providing updated user information within the MCP Server for Coroot, ensuring accurate account management and observability integration.

Instructions

Update current user information.

Updates the profile of the currently authenticated user.

Args: user_data: Updated user information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_dataYes

Implementation Reference

  • MCP tool registration for 'update_current_user' using @mcp.tool() decorator. This is the entry point handler for the MCP tool.
    @mcp.tool() async def update_current_user(user_data: dict[str, Any]) -> dict[str, Any]: """Update current user information. Updates the profile of the currently authenticated user. Args: user_data: Updated user information """ return await update_current_user_impl(user_data) # type: ignore[no-any-return]
  • Server-side implementation wrapper that calls the client method and formats the response with error handling.
    @handle_errors async def update_current_user_impl(user_data: dict[str, Any]) -> dict[str, Any]: """Update current user.""" result = await get_client().update_current_user(user_data) return { "success": True, "message": "User updated successfully", "user": result, }
  • Core handler implementation in CorootClient that performs the actual HTTP POST request to the Coroot API endpoint /api/user to update the current user.
    async def update_current_user(self, user_data: dict[str, Any]) -> dict[str, Any]: """Update current user information. Args: user_data: User data to update. For password change: {"old_password": "current", "new_password": "new"} Returns: Updated user information. """ response = await self._request( "POST", "/api/user", json=user_data, ) data: dict[str, Any] = response.json() return data

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/jamesbrink/mcp-coroot'

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