Skip to main content
Glama

Read git history

git_read
Read-onlyIdempotent

Read-only: the project's git repository in /workspace. action "status", "log" (recent commits), "diff" (uncommitted changes; paths to limit) and "remote_show" (the connected remote). To commit, push, pull or change the remote use the git tool.

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": {
      "action": "<action>",
      "project": "<project>"
    },
    "name": "git_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsNo
actionYes
projectYesProject slug or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description adds the concrete scope (the repo in /workspace) and tells what each action surfaces, which is valuable since there is no output schema. It stops short of behavioral detail an agent might want, such as how many commits "log" returns or how the paths filter behaves, but that is a minor gap given the 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?

Four compact sentences with no filler: the read-only scope and location come first, action semantics second, and the alternative tool last. Every clause adds information, and the parenthetical glosses are the most economical way to define four enum values.

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

Completeness4/5

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

For a 3-parameter, no-output-schema read tool with strong annotations, the definition covers purpose, scope, action meanings, the paths modifier and the write-path alternative. What is missing is modest: whether `paths` applies only to diff (it is stated but ambiguous as written) and any hint about result volume for log.

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

Parameters4/5

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

Schema description coverage is only 33% — only `project` is documented — but the description compensates by explaining the meaning of every `action` enum value and by clarifying that `paths` limits the diff. Only `project`'s slug-vs-id semantics are left entirely to the schema, so the description carries most of the semantic load for this tool.

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 ("Read-only: the project's git repository in /workspace") and enumerates the four supported actions with a one-phrase gloss for each (status, log = recent commits, diff = uncommitted changes, remote_show = the connected remote). It also names the sibling `git` tool as the mutation counterpart, so an agent can distinguish the two 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?

Explicitly routes the agent: use this for status/log/diff/remote_show, and "To commit, push, pull or change the remote use the git tool." Both the when-to-use and the when-not-to-use/alternative are stated in a single sentence.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources