Skip to main content
Glama

get_teams

Retrieve all teams from your Linear workspace to manage projects and assign tasks effectively.

Instructions

Get a list of teams in the Linear workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_teams' tool. Fetches all teams from the Linear workspace using the LinearClient, formats them into a simple object with id, name, key, and description, and returns the JSON stringified list as text content.
    private async handleGetTeams() {
      const teams = await linearClient.teams();
      
      const formattedTeams = teams.nodes.map(team => ({
        id: team.id,
        name: team.name,
        key: team.key,
        description: team.description,
      }));
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(formattedTeams, null, 2),
          },
        ],
      };
    }
  • The schema definition for the 'get_teams' tool, registered in the ListTools response. It has no input parameters.
    {
      name: 'get_teams',
      description: 'Get a list of teams in the Linear workspace',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • src/index.ts:118-119 (registration)
    The switch case that registers and dispatches to the 'get_teams' handler when the tool is called.
    case 'get_teams':
      return await this.handleGetTeams();

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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/Tyru5/linear-mcp'

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