linear_getOrganization
Retrieve details about the current Linear organization using this tool. Designed for AI assistants to fetch organization information for project management tasks directly through the MCP server.
Instructions
Get information about the current Linear organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the linear_getOrganization tool. It wraps the call to linearService.getOrganizationInfo() with error handling.export function handleGetOrganization(linearService: LinearService) { return async (args: unknown) => { try { return await linearService.getOrganizationInfo(); } catch (error) { logError('Error getting organization information', error); throw error; } };
- Schema definition for the linear_getOrganization tool, defining input (none) and output schema for 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:68-68 (registration)Registration of the linear_getOrganization tool handler within the registerToolHandlers function.linear_getOrganization: handleGetOrganization(linearService),