Skip to main content
Glama

teams-get-by-id

Retrieve a specific team's details from Shortcut project management using its public ID. Specify whether to return full team data or a slim version with essential fields.

Instructions

Get a Shortcut team by public ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamPublicIdYesThe public ID of the team to get
fullNoTrue to return all team fields from the API. False to return a slim version that excludes uncommon fields

Implementation Reference

  • Registers the 'teams-get-by-id' tool, including input schema with Zod validation and an inline async handler that delegates to the getTeam method.
    server.addToolWithReadAccess( "teams-get-by-id", "Get a Shortcut team by public ID", { teamPublicId: z.string().describe("The public ID of the team to get"), full: z .boolean() .optional() .default(false) .describe( "True to return all team fields from the API. False to return a slim version that excludes uncommon fields", ), }, async ({ teamPublicId, full }) => await tools.getTeam(teamPublicId, full), );
  • Zod schema defining input parameters: teamPublicId (required string) and full (optional boolean, default false).
    { teamPublicId: z.string().describe("The public ID of the team to get"), full: z .boolean() .optional() .default(false) .describe( "True to return all team fields from the API. False to return a slim version that excludes uncommon fields", ), },
  • Core handler function: fetches the team using ShortcutClientWrapper's getTeam method, handles not found case, and formats the result with entity details using base class helpers.
    async getTeam(teamPublicId: string, full = false) { 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", full), ); }

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/useshortcut/mcp-server-shortcut'

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