Skip to main content
Glama

list-teams

Retrieve all teams from Shortcut project management to view team members, roles, and organizational structure for project coordination and task assignment.

Instructions

List all Shortcut teams

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • The main handler logic for the 'list-teams' tool. Fetches all teams using the Shortcut client, handles empty case, and formats the result with related entities.
    async getTeams() { const teams = await this.client.getTeams(); if (!teams.length) return this.toResult(`No teams found.`); return this.toResult( `Result (first ${teams.length} shown of ${teams.length} total teams found):`, await this.entitiesWithRelatedEntities(teams, "teams"), ); }
  • Registers the 'list-teams' MCP tool with the server, providing description and delegating execution to the getTeams handler.
    server.tool("list-teams", "List all Shortcut teams", async () => await tools.getTeams());

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