Skip to main content
Glama

linear_getUsers

Retrieve a list of users from your Linear organization to manage team access and assign tasks within the project management system.

Instructions

Get a list of users in the Linear organization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'linear_getUsers' tool. It wraps the call to linearService.getAllUsers() in an async function with error handling.
    export function handleGetUsers(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getAllUsers(); } catch (error) { logError("Error getting users", error); throw error; } }; }
  • Tool schema definition specifying the name, description, empty input schema, and output schema as an array of user objects.
    export const getUsersToolDefinition: MCPToolDefinition = { name: "linear_getUsers", description: "Get a list of users in the Linear organization", input_schema: { type: "object", properties: {}, }, output_schema: { type: "array", items: { type: "object", properties: { id: { type: "string" }, name: { type: "string" }, email: { type: "string" }, displayName: { type: "string" }, active: { type: "boolean" } } } } };
  • Tool registration within the registerToolHandlers function, mapping 'linear_getUsers' to the handleGetUsers handler.
    linear_getViewer: handleGetViewer(linearService), linear_getOrganization: handleGetOrganization(linearService), linear_getUsers: handleGetUsers(linearService), linear_getLabels: handleGetLabels(linearService),

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

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