Skip to main content
Glama

git

Run version-control commands in the workspace with branch-policy checks that block protected-branch force pushes, hard resets, and rebases; unresolved force destinations are refused for review.

Instructions

Execute Git in the workspace after structured branch-policy checks. Use this rather than run_shell for Git operations. Protected-branch force pushes, hard resets and rebases are blocked; unresolved force destinations are refused for human review. Quoting is preserved. Returns truncated stdout/stderr or a refusal prefixed with ⛔; it is not a proof of success.

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": {
      "args": "<args>"
    },
    "name": "git"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesGit subcommand and arguments without a leading 'git', for example 'status --short' or 'commit -m "fix input"'. Shell syntax and global options such as -C are not supported.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses policy gating, hard-blocked operations, refusal with a ⛔ prefix, output truncation, and the caveat that a return is 'not a proof of success.' Minor gaps remain — nothing is said about exit-code signalling or whether operations are logged/auditable — but the safety-relevant behavior is unusually well covered for an unannotated 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?

Front-loads purpose and sibling routing in the first two sentences, then layers policy constraints, quoting behavior, and the return-value caveat in short declarative clauses. Every sentence contributes a distinct fact and none restates the name or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still supplies the return-shape essentials an agent needs (truncated stdout/stderr, ⛔-prefixed refusals) and the interpretive caveat that success is not proven. For a one-parameter execution tool, nothing materially necessary is missing.

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 coverage is 100% and the single required parameter already documents the no-leading-'git' convention and the unsupported global options like -C. The description adds only the quoting-preservation note, which is marginally useful but not a substitute for deeper argument guidance; baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Execute Git in the workspace') plus the precondition (structured branch-policy checks), and explicitly contrasts itself with the sibling run_shell. An agent can distinguish it from run_shell without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit routing rule: 'Use this rather than run_shell for Git operations.' It also names the operations that will be refused (protected-branch force pushes, hard resets, rebases) and the human-review path for unresolved force destinations, so an agent knows both when to pick this tool and what it cannot do with it.

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