Skip to main content
Glama

remove_issues_from_sprint

Remove specific issues from a GitHub sprint to manage project scope and prioritize tasks effectively.

Instructions

Remove issues from a sprint

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sprintIdYes
issueIdsYes

Implementation Reference

  • Core handler function that implements the remove_issues_from_sprint tool logic. Iterates through issueIds and calls the SprintRepository to remove each issue from the sprint, handling errors per issue and returning aggregate success statistics.
    async removeIssuesFromSprint(data: {
      sprintId: string;
      issueIds: string[];
    }): Promise<{ success: boolean; removedIssues: number; message: string }> {
      try {
        let removedCount = 0;
        const issues = [];
    
        // Remove each issue from the sprint
        for (const issueId of data.issueIds) {
          try {
            await this.sprintRepo.removeIssue(data.sprintId, issueId);
            removedCount++;
            issues.push(issueId);
          } catch (error) {
            process.stderr.write(`Failed to remove issue ${issueId} from sprint: ${error}`);
          }
        }
    
        return {
          success: removedCount > 0,
          removedIssues: removedCount,
          message: `Removed ${removedCount} issue(s) from sprint ${data.sprintId}`
        };
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
    }
  • Zod schema definition for validating input arguments to the remove_issues_from_sprint tool: requires sprintId (string) and issueIds (non-empty array of strings).
    // Schema for remove_issues_from_sprint tool
    export const removeIssuesFromSprintSchema = z.object({
      sprintId: z.string().min(1, "Sprint ID is required"),
      issueIds: z.array(z.string()).min(1, "At least one issue ID is required"),
    });
    
    export type RemoveIssuesFromSprintArgs = z.infer<typeof removeIssuesFromSprintSchema>;
  • Registers the removeIssuesFromSprintTool in the central ToolRegistry singleton instance.
    this.registerTool(removeIssuesFromSprintTool);
  • Imports the removeIssuesFromSprintTool definition for use in ToolRegistry.
    removeIssuesFromSprintTool,
  • MCP server dispatcher that routes 'remove_issues_from_sprint' tool calls to the ProjectManagementService handler.
    case "remove_issues_from_sprint":
      return await this.service.removeIssuesFromSprint(args);
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Remove issues from a sprint' implies a destructive mutation, but it fails to specify critical details: whether this requires admin permissions, if it's reversible, what happens to the issues afterward (e.g., moved to backlog or deleted), or any rate limits. This leaves significant gaps for safe and effective tool invocation.

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, front-loaded sentence with zero waste—'Remove issues from a sprint' is maximally concise. Every word earns its place by directly conveying the core action and target, making it easy to parse quickly without unnecessary elaboration.

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 the tool's complexity (a destructive mutation with 2 parameters), lack of annotations, 0% schema coverage, and no output schema, the description is incomplete. It omits essential context: behavioral traits (e.g., side effects, permissions), parameter details, and expected outcomes. For a mutation tool, this inadequacy increases the risk of misuse by an AI agent.

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

Parameters2/5

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

The input schema has 0% description coverage, with two required parameters ('sprintId' and 'issueIds') undocumented. The description adds no meaning beyond what the schema provides—it doesn't explain what these IDs represent, their format, or constraints (e.g., issueIds must be from the same project). With low schema coverage, the description fails to compensate, leaving parameters semantically unclear.

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 'Remove issues from a sprint' clearly states the verb ('Remove') and resource ('issues from a sprint'), making the purpose immediately understandable. It distinguishes from siblings like 'remove_project_item' by specifying the target resource as 'issues' and context as 'sprint'. However, it lacks specificity about what 'remove' entails operationally (e.g., unassigning vs. deleting).

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., issues must be in the sprint first), exclusions, or related tools like 'add_issues_to_sprint' or 'update_issue' for reassignment. Without such context, the agent must infer usage from the tool name alone.

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

Install Server

Other Tools

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/HarshKumarSharma/MCP'

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