Skip to main content
Glama
mcp-server-git

mcp-server-git

by Arnabdaz

git_cherry_pick

Apply a specified commit's changes onto the current branch, optionally without committing, to reuse a fix or feature without merging an entire branch.

Instructions

Cherry-pick a commit to the current branch

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": {
      "repo_path": "<repo_path>",
      "commit_sha": "<commit_sha>"
    },
    "name": "git_cherry_pick"
  }
}

Input Schema

NameRequiredDescriptionDefault
no_commitNo
repo_pathYes
commit_shaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.2

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does little with it. It does not say that cherry-picking writes a new commit onto the current branch, what happens on conflict, whether the working tree is modified, or that the operation rewrites history relative to the source branch.

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

Conciseness3/5

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

One short, front-loaded sentence with no wasted words, which is structurally sound. However, the brevity reads as under-specification rather than discipline for a mutating git operation, so it does not earn a high score on this dimension alone.

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 history-mutating tool with no annotations, no output schema, and zero parameter documentation, the description is far too thin. An agent learns nothing about conflict behavior, commit creation, or the meaning of the boolean flag before invoking it.

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% across three parameters, so the description must compensate and instead says nothing about repo_path or commit_sha. Most notably, 'no_commit' is a non-obvious flag (apply changes without creating a commit) that is left entirely unexplained in both schema and description.

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?

States a specific verb ('Cherry-pick') and resource ('a commit') plus the destination ('the current branch'), which is unambiguous and distinguishable from siblings like git_commit or git_checkout. It stops short of naming how it differs from merge-like operations, but the action is clear.

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 when-to-use or when-not-to-use guidance, no mention of alternatives for moving a single commit versus rebasing or merging, and no stated preconditions such as a clean working tree. The only contextual cue is 'to the current branch', which implies but does not explain the workflow.

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