Skip to main content
Glama

team_get

Retrieve the personal team assigned to the current user on the Buu AI MCP Server.

Instructions

[PRIVATE] Get the personal team for the current user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'team_get' MCP tool, including inline handler that executes GraphQL query to get the current user's personal team and returns JSON or error.
    server.tool('team_get', '[PRIVATE] Get the personal team for the current user.', {}, async () => { try { const response = await client.request(getTeamQuery); return { content: [{ type: 'text', text: JSON.stringify(response) }] }; } catch (error) { console.error('Error calling team_get:', error); return { isError: true, content: [{ type: 'text', text: `Error: Failed to retrieve team. ${error}` }], }; } });
  • GraphQL query 'getTeamQuery' supporting the team_get handler by defining the structure to fetch the user's team data, including members, status, etc.
    const getTeamQuery = gql` query GetTeam { getTeam { ... 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