Skip to main content
Glama

Git Documentation

git_docs
Read-onlyIdempotent

Search official Git documentation to find commands and concepts by keyword, or fetch the full man page for a specific Git command when you need usage details and options.

Instructions

Search and browse official Git documentation from git-scm.com. Use action="search" to find relevant commands and concepts by keyword. Use action="man" to fetch the full man page for a specific git command (e.g. query="commit" fetches the git-commit man page). Useful for answering questions about how to use git commands, understanding options, and discovering the right git command for a task.

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>",
      "query": "<query>"
    },
    "name": "git_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFor action="search": search terms (e.g. "undo last commit"). For action="man": git command name without "git-" prefix (e.g. "commit", "rebase", "merge").
actionYes
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description usefully confirms the openWorld signal by naming the external source git-scm.com. It does not cover behavior when a command name is not found or when a search returns nothing, so the addition is modest.

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?

Front-loaded with the resource, then the two action modes in order, then the use case. Sentences are tight, though the closing 'Useful for answering questions...' restates value already implied by the preceding two sentences.

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 simple read-only, three-parameter documentation tool with no output schema, the description covers the source, both action modes, and the query format for each. Return shape need not be explained, but the absence of any note on empty results or errors leaves a small gap.

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 67%, so the schema already documents query with per-action formats. The description reinforces the action semantics and gives an example mapping (query="commit" yields the git-commit man page), but adds little beyond the schema's own parameter documentation.

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 pair (search and browse), a specific resource (official Git documentation) and its source (git-scm.com). This is immediately distinguishable from every sibling, which are git operation tools rather than a documentation lookup.

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

Usage Guidelines4/5

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

Gives explicit routing for each mode: action="search" for keyword discovery of commands and concepts, action="man" for a full man page. It also states the general context (answering questions about how to use git). It lacks explicit when-not guidance, e.g. that it should not be used for repo-specific state questions better served by git_status or git_history.

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