Skip to main content
Glama

get-team

Retrieve team details from Shortcut project management using the team's public ID to access member information and project data.

Instructions

Get a Shortcut team by public ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamPublicIdYesThe public ID of the team to get

Implementation Reference

  • Implements the core logic for the 'get-team' tool: fetches the team by public ID using the client, handles not found case, and formats the response with related entities.
    async getTeam(teamPublicId: string) { const team = await this.client.getTeam(teamPublicId); if (!team) return this.toResult(`Team with public ID: ${teamPublicId} not found.`); return this.toResult(`Team: ${team.id}`, await this.entityWithRelatedEntities(team, "team")); }
  • Input schema for the 'get-team' tool using Zod: requires a string teamPublicId.
    { teamPublicId: z.string().describe("The public ID of the team to get") },
  • Registers the 'get-team' tool with the MCP server, including description and handler lambda that delegates to getTeam method.
    server.tool( "get-team", "Get a Shortcut team by public ID", { teamPublicId: z.string().describe("The public ID of the team to get") }, async ({ teamPublicId }) => await tools.getTeam(teamPublicId), );

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/ampcome-mcps/shortcut-mcp'

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