Skip to main content
Glama

get_team_members

Retrieve all members associated with a specific team in Coolify to manage access permissions and team composition.

Instructions

Get members of a specific team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
team_idYesTeam ID

Implementation Reference

  • The handler logic for the 'get_team_members' tool. It requires a 'team_id' parameter and makes an API call to retrieve the members of the specified team using the Coolify client.
    case 'get_team_members':
      requireParam(args, 'team_id');
      return client.get(`/teams/${args.team_id}/members`);
  • The schema definition for the 'get_team_members' tool, specifying the input requirements (team_id as string) and description.
    {
      name: 'get_team_members',
      description: 'Get members of a specific team',
      inputSchema: {
        type: 'object',
        properties: { team_id: { type: 'string', description: 'Team ID' } },
        required: ['team_id']
      }
    }
  • src/index.ts:36-38 (registration)
    MCP registration of all tools including 'get_team_members' via the ListToolsRequestHandler, which returns definitions from getToolDefinitions().
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: getToolDefinitions()
    }));
  • src/index.ts:41-67 (registration)
    MCP CallToolRequestHandler registration that dispatches to handleTool, which contains the specific handler for 'get_team_members'.
    this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
      if (!this.client) {
        throw new McpError(ErrorCode.InternalError, 'Client not initialized');
      }
    
      const { name, arguments: args } = request.params;
    
      // Block write operations in read-only mode
      if (isReadOnlyMode() && !READ_ONLY_TOOLS.includes(name)) {
        throw new McpError(
          ErrorCode.InvalidRequest,
          `Operation '${name}' is not allowed in read-only mode. Set COOLIFY_READONLY=false to enable write operations.`
        );
      }
    
      try {
        const result = await handleTool(this.client, name, args || {});
        return {
          content: [{ type: 'text', text: JSON.stringify(result, null, 2) }]
        };
      } catch (error) {
        if (error instanceof McpError) throw error;
        
        const message = error instanceof Error ? error.message : 'Unknown error';
        throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${message}`);
      }
    });
  • 'get_team_members' is listed in READ_ONLY_TOOLS array, enabling it in read-only mode.
    'get_current_team_members',
    'get_team_members',
Install Server

Other Tools

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/kof70/coolify-mcp-server'

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