Skip to main content
Glama
Buu-AI

Buu AI MCP Server

team_remove_member

Manage team membership on the Buu AI MCP Server by removing a member using their address. Maintain accurate team composition with this tool.

Instructions

[PRIVATE] Remove a member from the team.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memberYesAddress of the team member to remove

Implementation Reference

  • Handler function that sends the removeTeamMemberMutation GraphQL request using the provided member address and returns the response or formatted error.
    async ({ member }) => {
      try {
        const response = await client.request(removeTeamMemberMutation, { member });
        return { content: [{ type: 'text', text: JSON.stringify(response) }] };
      } catch (error) {
        console.error('Error calling team_remove_member:', error);
        return {
          isError: true,
          content: [{ type: 'text', text: `Error: Failed to remove team member. ${error}` }],
        };
      }
    }
  • Zod input schema defining the required 'member' parameter as an Ethereum address string.
    {
      member: z.string().describe('Address of the team member to remove'),
    },
  • Direct registration of the 'team_remove_member' tool on the MCP server with name, description, schema, and handler.
    server.tool(
      'team_remove_member',
      '[PRIVATE] Remove a member from the team.',
      {
        member: z.string().describe('Address of the team member to remove'),
      },
      async ({ member }) => {
        try {
          const response = await client.request(removeTeamMemberMutation, { member });
          return { content: [{ type: 'text', text: JSON.stringify(response) }] };
        } catch (error) {
          console.error('Error calling team_remove_member:', error);
          return {
            isError: true,
            content: [{ type: 'text', text: `Error: Failed to remove team member. ${error}` }],
          };
        }
      }
    );
  • GraphQL mutation definition used to remove a specified member from the team and fetch updated team details or error.
    const removeTeamMemberMutation = gql`
      mutation RemoveTeamMember($member: String!) {
        removeTeamMember(member: $member) {
          ... on Team {
            _id
            type
            name
            creator
            wallet
            members {
              address
              role
              status
            }
            available
            pending
            confirmed
            updatedAt
            createdAt
          }
          ... on HandledError {
            code
            message
          }
        }
      }
    `;
  • src/index.ts:49-49 (registration)
    High-level registration call that invokes registerTeamTools, thereby registering team_remove_member and other team tools to the main MCP server instance.
    registerTeamTools(server, buuServerClient);

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/Buu-AI/buu-mcp-server'

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