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
| Name | Required | Description | Default |
|---|---|---|---|
| teamPublicId | Yes | The 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
- src/tools/teams.ts:22-28 (handler)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")); }
- src/tools/teams.ts:10-15 (registration)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), );
- src/tools/teams.ts:13-13 (schema)Input schema for the 'get-team' tool defining the teamPublicId parameter.{ teamPublicId: z.string().describe("The public ID of the team to get") },