Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

get_iteration_items

Retrieve all tasks, issues, or items assigned to a specific iteration or sprint in GitHub Projects. Use this tool to view workload distribution, track progress, and manage sprint planning by fetching items linked to a particular iteration.

Instructions

Get all items assigned to a specific iteration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
iterationIdYes
limitNo

Implementation Reference

  • Main handler function that fetches all project items and filters those assigned to the specified iteration ID by checking field values.
    async getIterationItems(data: {
      projectId: string;
      iterationId: string;
      limit?: number;
    }): Promise<{
      items: Array<{
        id: string;
        title: string;
        type: string;
        status?: string;
      }>;
    }> {
      try {
        const items = await this.listProjectItems({
          projectId: data.projectId,
          limit: data.limit || 50
        });
    
        // Filter items that have the iteration field set to this iteration
        const iterationItems = items.filter((item: any) => {
          // Check if any field value matches the iteration ID
          const fieldValues = item.fieldValues || [];
          return fieldValues.some((fv: any) => fv.value === data.iterationId);
        });
    
        return {
          items: iterationItems.map((item: any) => ({
            id: item.id,
            title: item.title || 'Untitled',
            type: item.type,
            status: item.status
          }))
        };
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
    }
  • ToolDefinition including name, description, input schema (getIterationItemsSchema), and examples for the get_iteration_items tool.
    export const getIterationItemsTool: ToolDefinition<GetIterationItemsArgs> = {
      name: "get_iteration_items",
      description: "Get all items assigned to a specific iteration",
      schema: getIterationItemsSchema as unknown as ToolSchema<GetIterationItemsArgs>,
      examples: [
        {
          name: "Get iteration items",
          description: "Get all issues/PRs in an iteration",
          args: {
            projectId: "PVT_kwDOLhQ7gc4AOEbH",
            iterationId: "PVTIF_lADOLhQ7gc4AOEbH"
          }
        }
      ]
    };
  • Registers the getIterationItemsTool in the central ToolRegistry singleton.
    this.registerTool(getIterationItemsTool);
  • src/index.ts:494-495 (registration)
    MCP server dispatches call_tool requests for get_iteration_items to the ProjectManagementService handler.
    case "get_iteration_items":
      return await this.service.getIterationItems(args);
  • Zod input schema validation for get_iteration_items tool parameters.
    export const getIterationItemsSchema = z.object({
      projectId: z.string().min(1, "Project ID is required"),
      iterationId: z.string().min(1, "Iteration ID is required"),
      limit: z.number().int().positive().default(50).optional()
    });
    
    export type GetIterationItemsArgs = z.infer<typeof getIterationItemsSchema>;
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states a read operation ('Get') but lacks details on permissions, rate limits, pagination (despite a 'limit' parameter), return format, or error handling. For a tool with 3 parameters and no annotation coverage, this is insufficient behavioral disclosure.

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. It efficiently conveys the core purpose without unnecessary elaboration, making it appropriately concise for a basic retrieval tool.

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 3 parameters with 0% schema coverage, no annotations, and no output schema, the description is incomplete. It lacks details on parameter semantics, behavioral traits, and return values, leaving significant gaps for an AI agent to understand and invoke the tool correctly.

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?

Schema description coverage is 0%, so the description must compensate. It mentions 'specific iteration' which hints at 'iterationId', but doesn't explain 'projectId', 'limit', or their relationships. The description adds minimal value beyond the bare schema, failing to clarify parameter meanings or usage.

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 verb ('Get') and resource ('all items assigned to a specific iteration'), making the purpose understandable. It doesn't explicitly distinguish from siblings like 'get_current_iteration' or 'list_project_items', but the focus on iteration-specific items is reasonably specific.

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 like 'list_project_items' or 'get_current_iteration'. The description implies usage for iteration-specific retrieval but doesn't specify prerequisites, exclusions, or comparative contexts with sibling tools.

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/kunwarVivek/mcp-github-project-manager'

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