Skip to main content
Glama

linear_unarchiveInitiative

Restore archived initiatives in Linear to make them active and visible again in project management workflows.

Instructions

Unarchive an initiative

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
initiativeIdYesThe ID of the initiative to unarchive

Implementation Reference

  • Handler function for linear_unarchiveInitiative tool. Validates input using isArchiveInitiativeInput type guard and calls linearService.unarchiveInitiative(initiativeId).
    export function unarchiveInitiativeHandler(linearService: LinearService) { return async (args: unknown) => { if (!isArchiveInitiativeInput(args)) { throw new Error('Invalid input for unarchiveInitiative'); } console.log(`[unarchiveInitiative] Unarchiving initiative: ${args.initiativeId}`); const result = await linearService.unarchiveInitiative(args.initiativeId); console.log(`[unarchiveInitiative] Initiative unarchived successfully`); return result; }; }
  • Registration of the linear_unarchiveInitiative handler in the registerToolHandlers function.
    linear_unarchiveInitiative: unarchiveInitiativeHandler(linearService),
  • Tool schema definition including input (initiativeId) and output (success boolean).
    { name: 'linear_unarchiveInitiative', description: 'Unarchive an initiative', input_schema: { type: 'object', properties: { initiativeId: { type: 'string', description: 'The ID of the initiative to unarchive', }, }, required: ['initiativeId'], }, output_schema: { type: 'object', properties: { success: { type: 'boolean' }, }, }, },
  • Type guard for validating linear_unarchiveInitiative input arguments (though handler uses isArchiveInitiativeInput).
    export function isUnarchiveInitiativeArgs(args: unknown): args is { id: string; } { return ( typeof args === 'object' && args !== null && 'id' in args && typeof (args as { id: string }).id === '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