list-teams
Retrieve all teams from Shortcut project management to view team members, roles, and structure for coordination and task assignment.
Instructions
List all Shortcut teams
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-teams"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/teams.ts:30-39 (handler)Implements the core logic for the list-teams tool by fetching all teams from the Shortcut client, handling empty results, and formatting the output using base tool methods.
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"), ); } - src/tools/teams.ts:17-17 (registration)Registers the 'list-teams' tool on the MCP server with no input parameters and a handler that delegates to the getTeams method.
server.tool("list-teams", "List all Shortcut teams", async () => await tools.getTeams());