Skip to main content
Glama
MCP Git Server

MCP Git Server

by mpfilbin

git_cherry_pick

Apply changes from a specified commit onto the current branch, enabling selective commit integration without merging entire branches.

Instructions

Apply the changes introduced by an existing commit

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "commit": "<commit>"
    },
    "name": "git_cherry_pick"
  }
}

Input Schema

NameRequiredDescriptionDefault
commitYesThe commit hash to cherry-pick
repoPathNoPath to git repository (defaults to current directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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 carries the full behavioral burden for a mutation tool. It does not disclose that cherry-pick creates a new commit with a new hash, that conflicts can halt the operation mid-sequence, or what state the repository must be in — all material facts for an agent deciding whether to invoke it.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, which is easy to scan. Its brevity is a virtue structurally, though it contributes to the gaps scored elsewhere rather than being a flaw in phrasing.

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 mutating git operation with no annotations and no output schema, the description omits conflict behavior, resulting-commit semantics, and required repository state. The parameter documentation is solid, but the behavioral picture an agent needs before calling it is largely absent.

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?

Schema description coverage is 100%, with both 'commit' and 'repoPath' documented inline including the default-directory behavior, so the schema does the heavy lifting. The description adds no extra meaning such as accepted hash formats or whether a branch name is tolerated, which is an acceptable baseline at full 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 uses a specific verb ('Apply') and the canonical git concept ('changes introduced by an existing commit'), which unambiguously identifies cherry-pick for anyone with git familiarity. It stops short of differentiating from siblings such as git_merge or git_rebase, which also integrate commits, so it lands at 4 rather than 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?

There is no guidance on when to choose cherry-pick over git_merge or git_rebase, and no mention of the preconditions that make a cherry-pick succeed or fail, such as a clean working tree. The agent must infer all selection context 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.