Skip to main content
Glama
wkoutre

Linear MCP Server

by wkoutre

linear_archiveIssue

Archive issues in Linear to remove them from active workflows while preserving their history and data.

Instructions

Archive an issue

Input Schema

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

Implementation Reference

  • Handler function that implements the core logic for the linear_archiveIssue tool: validates input using type guard and calls linearService.archiveIssue.
    export function handleArchiveIssue(linearService: LinearService) {
      return async (args: unknown) => {
        try {
          if (!isArchiveIssueArgs(args)) {
            throw new Error("Invalid arguments for archiveIssue");
          }
          
          return await linearService.archiveIssue(args.issueId);
        } catch (error) {
          logError("Error archiving issue", error);
          throw error;
        }
      };
    }
  • Tool definition including input and output schemas for linear_archiveIssue.
    export const archiveIssueToolDefinition: MCPToolDefinition = {
      name: "linear_archiveIssue",
      description: "Archive an issue",
      input_schema: {
        type: "object",
        properties: {
          issueId: {
            type: "string",
            description: "ID or identifier of the issue to archive (e.g., ABC-123)",
          },
        },
        required: ["issueId"],
      },
      output_schema: {
        type: "object",
        properties: {
          success: { type: "boolean" },
          message: { type: "string" }
        }
      }
    };
  • Registration of the linear_archiveIssue tool, mapping it to the handleArchiveIssue handler function.
    linear_archiveIssue: handleArchiveIssue(linearService),
  • Type guard function used in the handler to validate the input arguments for linear_archiveIssue.
    export function isArchiveIssueArgs(args: unknown): args is {
      issueId: string;
    } {
      return (
        typeof args === "object" &&
        args !== null &&
        "issueId" in args &&
        typeof (args as { issueId: string }).issueId === "string"
      );
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, and the description does not disclose side effects, reversibility, permissions, or state changes beyond archiving. Agent lacks critical behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is only one sentence, highly concise. No wasted words, but could be front-loaded with more context without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with no output schema and no annotations, the description is incomplete. Missing details on effects, permissions, and alternative actions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 100% of parameter description, so baseline is 3. The description adds no additional meaning beyond what is in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Archive an issue' clearly states the action and resource. It distinguishes from sibling archive tools by focusing on 'issue', but does not elaborate on scope or implications.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives (e.g., updateIssue, deleteIssue). Missing context on prerequisites or consequences.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.