linear_getTeams
Retrieve all teams from the Linear project management system to view organizational structure and team assignments.
Instructions
Get a list of teams from Linear
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/handlers/team-handlers.ts:8-17 (handler)The main handler function for the 'linear_getTeams' tool. It wraps the call to linearService.getTeams() with error handling.export function handleGetTeams(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getTeams(); } catch (error) { logError('Error getting teams', error); throw error; } }; }
- The tool schema definition for 'linear_getTeams', specifying input (no parameters) and output schema (array of teams with id, name, key, description, states).export const getTeamsToolDefinition: MCPToolDefinition = { name: 'linear_getTeams', description: 'Get a list of teams from Linear', input_schema: { type: 'object', properties: {}, }, output_schema: { type: 'array', items: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, key: { type: 'string' }, description: { type: 'string' }, states: { type: 'array', items: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, }, }, }, }, }, }, };
- src/tools/handlers/index.ts:73-73 (registration)Registration of the handleGetTeams function as the 'linear_getTeams' tool handler in the registerToolHandlers map.linear_getTeams: handleGetTeams(linearService),