list_teams
Retrieve all teams in your Linear workspace to manage team-based workflows and access team-specific data.
Instructions
List all teams in the workspace
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:354-373 (handler)The switch case handler for the 'list_teams' tool. It fetches all teams from the Linear workspace using linearClient.teams(), formats the nodes into an array of objects with id, name, key, and description, and returns them as a JSON text content block.case "list_teams": { const query = await linearClient.teams(); const teams = await Promise.all( (query as any).nodes.map(async (team: any) => ({ id: team.id, name: team.name, key: team.key, description: team.description, })) ); return { content: [ { type: "text", text: JSON.stringify(teams, null, 2), }, ], }; }
- src/index.ts:161-168 (schema)Schema definition for the list_teams tool in the ListTools response, including name, description, and an empty input schema since no parameters are required.{ name: "list_teams", description: "List all teams in the workspace", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:45-56 (registration)Registration of tool capabilities in the MCP server constructor, declaring support for the list_teams tool.capabilities: { tools: { create_issue: true, list_issues: true, update_issue: true, list_teams: true, list_projects: true, search_issues: true, get_issue: true, }, }, }