linear_getOrganization
Retrieve details about your Linear organization to manage projects, teams, and issues effectively.
Instructions
Get information about the current Linear organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler function for the 'linear_getOrganization' tool. It wraps the call to linearService.getOrganizationInfo() with error handling./** * Handler for getting organization information */ export function handleGetOrganization(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getOrganizationInfo(); } catch (error) { logError('Error getting organization information', error); throw error; } }; }
- The MCPToolDefinition for 'linear_getOrganization', specifying input (empty) and output schemas.* Tool definition for getting organization information */ export const getOrganizationToolDefinition: MCPToolDefinition = { name: 'linear_getOrganization', description: 'Get information about the current Linear organization', input_schema: { type: 'object', properties: {}, }, output_schema: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, urlKey: { type: 'string' }, logoUrl: { type: 'string' }, }, }, };
- src/tools/handlers/index.ts:66-70 (registration)Registration of the 'linear_getOrganization' handler in the tool handlers map returned by registerToolHandlers.// User tools linear_getViewer: handleGetViewer(linearService), linear_getOrganization: handleGetOrganization(linearService), linear_getUsers: handleGetUsers(linearService), linear_getLabels: handleGetLabels(linearService),