Skip to main content
Glama

team_add_member

Add a new member to your team by specifying their address using the team_add_member tool on the Buu AI MCP Server, ensuring smooth collaboration and team management.

Instructions

[PRIVATE] Add a new member to the team.

Input Schema

NameRequiredDescriptionDefault
memberYesAddress of the new team member

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "member": { "description": "Address of the new team member", "type": "string" } }, "required": [ "member" ], "type": "object" }

Implementation Reference

  • The handler function that executes the team_add_member tool logic by calling the GraphQL addTeamMemberMutation.
    async ({ member }) => { try { const response = await client.request(addTeamMemberMutation, { member }); return { content: [{ type: 'text', text: JSON.stringify(response) }] }; } catch (error) { console.error('Error calling team_add_member:', error); return { isError: true, content: [{ type: 'text', text: `Error: Failed to add team member. ${error}` }], }; } }
  • Zod input schema defining the 'member' parameter for the team_add_member tool.
    { member: z.string().describe('Address of the new team member'), },
  • Registration of the team_add_member tool using server.tool, including name, description, schema, and handler.
    'team_add_member', '[PRIVATE] Add a new member to the team.', { member: z.string().describe('Address of the new team member'), }, async ({ member }) => { try { const response = await client.request(addTeamMemberMutation, { member }); return { content: [{ type: 'text', text: JSON.stringify(response) }] }; } catch (error) { console.error('Error calling team_add_member:', error); return { isError: true, content: [{ type: 'text', text: `Error: Failed to add team member. ${error}` }], }; } } );
  • GraphQL mutation definition used by the team_add_member handler to add a member to the team.
    const addTeamMemberMutation = gql` mutation Mutation($member: String!) { addTeamMember(member: $member) { ... on Team { _id type name creator wallet members { address role status } available pending confirmed updatedAt createdAt } ... on HandledError { code message } } }

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