Skip to main content
Glama
wkoutre

Linear MCP Server

by wkoutre

linear_removeIssueLabel

Remove a label from an issue in Linear's project management system to update issue categorization and organization.

Instructions

Remove a label from an issue in Linear

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueIdYesID or identifier of the issue to remove the label from (e.g., ABC-123)
labelIdYesID of the label to remove from the issue

Implementation Reference

  • The handler function that implements the core logic for the linear_removeIssueLabel tool. It validates the input arguments and delegates to the LinearService to remove the label from the issue.
    /**
     * Handler for removing a label from an issue
     */
    export function handleRemoveIssueLabel(linearService: LinearService) {
      return async (args: unknown) => {
        try {
          if (!isRemoveIssueLabelArgs(args)) {
            throw new Error("Invalid arguments for removeIssueLabel");
          }
          
          return await linearService.removeIssueLabel(args.issueId, args.labelId);
        } catch (error) {
          logError("Error removing label from issue", error);
          throw error;
        }
      };
    }
  • The MCP tool definition (schema) for linear_removeIssueLabel, defining input and output schemas.
    export const removeIssueLabelToolDefinition: MCPToolDefinition = {
      name: "linear_removeIssueLabel",
      description: "Remove a label from an issue in Linear",
      input_schema: {
        type: "object",
        properties: {
          issueId: {
            type: "string",
            description: "ID or identifier of the issue to remove the label from (e.g., ABC-123)",
          },
          labelId: {
            type: "string",
            description: "ID of the label to remove from the issue",
          },
        },
        required: ["issueId", "labelId"],
      },
      output_schema: {
        type: "object",
        properties: {
          success: { type: "boolean" },
          issueId: { type: "string" },
          labelId: { type: "string" }
        }
      }
    };
  • Registration of the linear_removeIssueLabel tool handler within the registerToolHandlers function.
    linear_removeIssueLabel: handleRemoveIssueLabel(linearService),
  • Type guard function used in the handler to validate input arguments for linear_removeIssueLabel.
    /**
     * Type guard for linear_removeIssueLabel tool arguments
     */
    export function isRemoveIssueLabelArgs(args: unknown): args is {
      issueId: string;
      labelId: string;
    } {
      return (
        typeof args === "object" &&
        args !== null &&
        "issueId" in args &&
        typeof (args as { issueId: string }).issueId === "string" &&
        "labelId" in args &&
        typeof (args as { labelId: string }).labelId === "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 are provided, so the description bears full responsibility. It only states the action without disclosing behavioral traits like idempotency, permissions, errors, or return value.

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

Conciseness5/5

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

The description is a single sentence with no unnecessary words. It is front-loaded with the action and resource.

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?

Given no output schema, the description does not explain what the tool returns or any confirmation. It also lacks context about failure modes (e.g., label not found). The simplicity of the tool mitigates this somewhat, but more completeness would be beneficial.

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?

The input schema has 100% description coverage, so the schema already explains the parameters. The description adds no additional meaning beyond what the schema provides, meeting the baseline.

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 clearly states the action (Remove), resource (label), and target (issue in Linear). It is specific enough to distinguish from the sibling tool linear_addIssueLabel which performs the opposite operation.

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 is provided on when to use this tool versus alternatives (e.g., linear_addIssueLabel). There is no mention of prerequisites, side effects, or exclusions.

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