Skip to main content
Glama
jamesbrink

MCP Server for Coroot

create_user

Add new user accounts with specific roles and permissions in Coroot's observability platform. Requires administrator access to configure user access.

Instructions

Create a new user (admin only).

Creates a new user account with specified role and permissions. Requires admin privileges.

Args: user_data: New user information including email, name, role

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_dataYes

Implementation Reference

  • Primary MCP tool handler for 'create_user', registered via @mcp.tool() decorator. Delegates to internal implementation.
    async def create_user(user_data: dict[str, Any]) -> dict[str, Any]:
        """Create a new user (admin only).
    
        Creates a new user account with specified role and permissions.
        Requires admin privileges.
    
        Args:
            user_data: New user information including email, name, role
        """
        return await create_user_impl(user_data)  # type: ignore[no-any-return]
  • Internal helper function that invokes the CorootClient.create_user method and formats the response.
    async def create_user_impl(user_data: dict[str, Any]) -> dict[str, Any]:
        """Create a new user."""
        result = await get_client().create_user(user_data)
        return {
            "success": True,
            "message": "User created successfully",
            "user": result,
        }
  • CorootClient method that executes the actual HTTP POST request to /api/users endpoint to create the user.
    async def create_user(self, user_data: dict[str, Any]) -> dict[str, Any]:
        """Create a new user (admin only).
    
        Args:
            user_data: New user data with fields:
                      - email: User email
                      - name: Display name
                      - role: Admin|Editor|Viewer
                      - password: Initial password
    
        Returns:
            Created user.
        """
        # Add action field required by Coroot
        request_data = {"action": "create", **user_data}
    
        response = await self._request(
            "POST",
            "/api/users",
            json=request_data,
        )
        data: dict[str, Any] = response.json()
        return data
  • Docstring providing the tool schema description, input parameters for the MCP tool.
    """Create a new user (admin only).
    
    Creates a new user account with specified role and permissions.
    Requires admin privileges.
    
    Args:
        user_data: New user information including email, name, role
    """
  • Detailed schema documentation in client method docstring specifying exact user_data fields required.
    """Create a new user (admin only).
    
    Args:
        user_data: New user data with fields:
                  - email: User email
                  - name: Display name
                  - role: Admin|Editor|Viewer
                  - password: Initial password
    
    Returns:
        Created user.
    """

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