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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/TeamTools.ts:321-332 (registration)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}` }], }; } });
- src/tools/TeamTools.ts:147-173 (helper)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 } } } `;