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 organizational structure.

Instructions

Get a Shortcut team by public ID

Input Schema

NameRequiredDescriptionDefault
teamPublicIdYesThe public ID of the team to get

Input Schema (JSON Schema)

{ "properties": { "teamPublicId": { "description": "The public ID of the team to get", "type": "string" } }, "required": [ "teamPublicId" ], "type": "object" }

Implementation Reference

  • The handler function for the 'get-team' tool. It fetches the team using the Shortcut client and formats the result using helper methods from BaseTools.
    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")); }
  • Registration of the 'get-team' tool, including its description, input schema using Zod, and reference to the handler function.
    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), );
  • Input schema for the 'get-team' tool defining the teamPublicId parameter.
    { teamPublicId: z.string().describe("The public ID of the team to get") },

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