Skip to main content
Glama

team_update

Modify team details such as name and wallet address on Buu AI MCP Server to ensure accurate and updated team information.

Instructions

[PRIVATE] Update team data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew name for the team
walletNoNew wallet address for the team

Implementation Reference

  • The async handler function that executes the core logic of the team_update tool by calling the GraphQL updateTeamDataMutation with provided name and/or wallet.
    async ({ name, wallet }) => { try { const response = await client.request(updateTeamDataMutation, { name, wallet }); return { content: [{ type: 'text', text: JSON.stringify(response) }] }; } catch (error) { console.error('Error calling team_update:', error); return { isError: true, content: [{ type: 'text', text: `Error: Failed to update team. ${error}` }], }; } }
  • Zod input schema defining optional 'name' and 'wallet' parameters for the team_update tool.
    { name: z.string().optional().describe('New name for the team'), wallet: z.string().optional().describe('New wallet address for the team'), },
  • The server.tool call that registers the team_update tool, including its description, input schema, and inline handler function.
    server.tool( 'team_update', '[PRIVATE] Update team data.', { name: z.string().optional().describe('New name for the team'), wallet: z.string().optional().describe('New wallet address for the team'), }, async ({ name, wallet }) => { try { const response = await client.request(updateTeamDataMutation, { name, wallet }); return { content: [{ type: 'text', text: JSON.stringify(response) }] }; } catch (error) { console.error('Error calling team_update:', error); return { isError: true, content: [{ type: 'text', text: `Error: Failed to update team. ${error}` }], }; } } );
  • GraphQL mutation definition used by the team_update handler to update team data.
    const updateTeamDataMutation = gql` mutation UpdateTeamData($name: String, $wallet: String) { updateTeamData(name: $name, wallet: $wallet) { ... 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