Skip to main content
Glama

linear_subscribeToIssue

Subscribe to receive notifications for updates on a specific Linear issue. Stay informed when changes occur to tasks or bugs in your project management workflow.

Instructions

Subscribe to issue updates

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueIdYesID or identifier of the issue to subscribe to (e.g., ABC-123)

Implementation Reference

  • The primary handler implementation for the 'linear_subscribeToIssue' tool. Validates input arguments and calls the Linear service method to subscribe to the specified issue.
    export function handleSubscribeToIssue(linearService: LinearService) { return async (args: unknown) => { try { if (!isSubscribeToIssueArgs(args)) { throw new Error('Invalid arguments for subscribeToIssue'); } return await linearService.subscribeToIssue(args.issueId); } catch (error) { logError('Error subscribing to issue', error); throw error; } }; }
  • The tool schema definition for 'linear_subscribeToIssue', specifying input (issueId) and output schemas.
    export const subscribeToIssueToolDefinition: MCPToolDefinition = { name: 'linear_subscribeToIssue', description: 'Subscribe to issue updates', input_schema: { type: 'object', properties: { issueId: { type: 'string', description: 'ID or identifier of the issue to subscribe to (e.g., ABC-123)', }, }, required: ['issueId'], }, output_schema: { type: 'object', properties: { success: { type: 'boolean' }, message: { type: 'string' }, }, }, };
  • Registration of the tool handler in the map returned by registerToolHandlers, mapping 'linear_subscribeToIssue' to the handleSubscribeToIssue factory.
    linear_subscribeToIssue: handleSubscribeToIssue(linearService),
  • Type guard function used in the handler to validate arguments for 'linear_subscribeToIssue' tool.
    /** * Type guard for linear_subscribeToIssue tool arguments */ export function isSubscribeToIssueArgs(args: unknown): args is { issueId: string; } { return ( typeof args === 'object' && args !== null && 'issueId' in args && typeof (args as { issueId: string }).issueId === 'string' ); }

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

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