Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

archive_project_item

Archive items in GitHub projects to hide them from views without deletion. Use this tool to clean up project boards while preserving item history.

Instructions

Archive an item in a GitHub project. Archived items are hidden from views but not deleted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
itemIdYes

Implementation Reference

  • Core handler function that executes the archive_project_item tool by calling GitHub's GraphQL API mutation 'archiveProjectV2Item' to archive the specified project item.
    async archiveProjectItem(data: {
      projectId: string;
      itemId: string;
    }): Promise<{ success: boolean; message: string }> {
      try {
        const mutation = `
          mutation($input: ArchiveProjectV2ItemInput!) {
            archiveProjectV2Item(input: $input) {
              item {
                id
                isArchived
              }
            }
          }
        `;
    
        interface ArchiveProjectItemResponse {
          archiveProjectV2Item: {
            item: {
              id: string;
              isArchived: boolean;
            };
          };
        }
    
        await this.factory.graphql<ArchiveProjectItemResponse>(mutation, {
          input: {
            projectId: data.projectId,
            itemId: data.itemId
          }
        });
    
        return {
          success: true,
          message: `Item ${data.itemId} has been archived in project ${data.projectId}`
        };
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
    }
  • ToolDefinition object defining the tool name, description, input schema (archiveProjectItemSchema), and usage examples.
    export const archiveProjectItemTool: ToolDefinition<ArchiveProjectItemArgs> = {
      name: "archive_project_item",
      description: "Archive an item in a GitHub project. Archived items are hidden from views but not deleted.",
      schema: archiveProjectItemSchema as unknown as ToolSchema<ArchiveProjectItemArgs>,
      examples: [
        {
          name: "Archive completed task",
          description: "Archive a project item that is complete",
          args: {
            projectId: "PVT_kwDOLhQ7gc4AOEbH",
            itemId: "PVTI_lADOLhQ7gc4AOEbHzM4AOAJ7"
          }
        }
      ]
    };
  • Zod input validation schema requiring projectId and itemId strings.
    export const archiveProjectItemSchema = z.object({
      projectId: z.string().min(1, "Project ID is required"),
      itemId: z.string().min(1, "Item ID is required"),
    });
    
    export type ArchiveProjectItemArgs = z.infer<typeof archiveProjectItemSchema>;
  • Registers the archiveProjectItemTool in the central ToolRegistry singleton instance.
    this.registerTool(archiveProjectItemTool);
    this.registerTool(unarchiveProjectItemTool);
  • MCP tool dispatcher switch case that routes 'archive_project_item' calls to the ProjectManagementService handler.
    case "archive_project_item":
      return await this.service.archiveProjectItem(args);
Behavior2/5

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

With no annotations provided, the description carries full burden. It discloses that archiving hides items without deletion, which is useful behavioral context. However, it lacks details on permissions required, whether the action is reversible, rate limits, or what happens to dependent data, leaving significant gaps for a mutation tool.

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, efficient sentence that front-loads the core action and adds clarifying context without waste. Every word earns its place, making it easy to parse quickly.

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 mutation tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It covers the basic effect of archiving but misses parameter details, usage context, permissions, and behavioral nuances needed for safe and effective use.

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

Parameters1/5

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

Schema description coverage is 0%, and the description provides no information about the parameters 'projectId' and 'itemId'. It doesn't explain what these IDs represent, how to obtain them, or their format, failing to compensate for the lack of schema documentation.

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 ('Archive an item') and resource ('in a GitHub project'), with specific clarification that archived items are hidden but not deleted. However, it doesn't explicitly differentiate from sibling tools like 'remove_project_item' or 'unarchive_project_item', which would require a 5.

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 like 'remove_project_item' or 'unarchive_project_item', nor does it mention prerequisites or context for archiving. It only explains what archiving does, not when it's appropriate.

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