Skip to main content
Glama

create_project_card

Add a new card with note content to a specified column in a GitHub project to organize tasks and track progress.

Instructions

Create a new card in a project column

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
column_idYesThe ID of the column
noteYesThe note content for the card

Implementation Reference

  • The main handler function implementing the logic to create a GitHub project card via API request.
    export async function createProjectCard(
      github_pat: string,
      column_id: number,
      note: string
    ): Promise<z.infer<typeof ProjectCardSchema>> {
      const response = await githubRequest(
        github_pat,
        `https://api.github.com/projects/columns/${column_id}/cards`,
        {
          method: "POST",
          body: {
            note,
          },
          headers: {
            "Accept": "application/vnd.github.inertia-preview+json",
          },
        }
      );
      return ProjectCardSchema.parse(response);
    }
  • Input schema definition for the create_project_card tool (public version without github_pat).
    export const CreateProjectCardSchema = z.object({
      column_id: z.number().describe("The ID of the column"),
      note: z.string().describe("The note content for the card"),
    });
  • Extended input schema including github_pat used for parsing in the handler.
    export const _CreateProjectCardSchema = CreateProjectCardSchema.extend({
      github_pat: z.string().describe("GitHub Personal Access Token"),
    });
  • src/index.ts:269-273 (registration)
    Tool registration in the MCP tools array with name, description, and input schema.
    {
      name: "create_project_card",
      description: "Create a new card in a project column",
      inputSchema: zodToJsonSchema(projects.CreateProjectCardSchema),
    },
  • Dispatcher handler case that validates arguments and delegates to the projects.createProjectCard function.
    case "create_project_card": {
      const args = projects._CreateProjectCardSchema.parse(params.arguments);
      const { github_pat, column_id, note } = args;
      const result = await projects.createProjectCard(github_pat, column_id, note);
      return {
        content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
      };
    }
Behavior2/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. It states 'Create' implies a mutation, but fails to mention permissions required, whether the operation is idempotent, rate limits, or what happens on failure. This is a significant gap for a write operation with zero annotation coverage.

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 directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy for an agent 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?

Given the complexity of a mutation tool with no annotations and no output schema, the description is insufficient. It lacks details on behavioral traits (e.g., side effects, error handling) and doesn't explain what the tool returns, leaving critical gaps for agent invocation.

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 schema description coverage is 100%, with both parameters ('column_id' and 'note') well-documented in the schema. The description adds no additional meaning beyond the schema, such as format examples or constraints, so it meets the baseline score of 3 for high schema coverage.

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 ('Create a new card') and the resource ('in a project column'), which is specific and unambiguous. However, it doesn't differentiate from sibling tools like 'create_project' or 'create_project_column', which are related but distinct operations.

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., needing an existing project and column), exclusions, or comparisons to similar tools like 'create_issue' or 'create_project', leaving the agent without context for selection.

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/MissionSquad/mcp-github'

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