Skip to main content
Glama

Git Context Tools

git_context
DestructiveIdempotent

Summarize, search, and manage Git repository context and configuration, including aliases, so agents can retrieve or update repo settings.

Instructions

Context/config tool. Use action=summary|search|get_config|set_config|aliases for repo context operations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
limitNo
queryNo
valueNo
actionNosummary
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.2/5.0
Behavior2/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, so the agent knows mutation is possible, but the description never says which action is the destructive one — set_config is buried in an undifferentiated list alongside read-only actions like summary and get_config. It also omits what set_config actually changes (repo-local config file), whether changes persist, and that the read-only actions are safe; this is exactly the context the annotations cannot express.

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?

Two short sentences with no filler, and the tool category is front-loaded. The brevity is efficient even if the content is thin; nothing is padded or redundant.

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 multi-action tool with 7 parameters, low schema coverage, no output schema, and a destructive action, this description is far too sparse. An agent cannot tell from it what a summary contains, what search returns, or which action will modify the repository.

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 only 29% across 7 parameters, so the description must compensate and does not. Only the action values are echoed; key, value, query, limit, and response_format receive no explanation, and there is no indication that key/value are only meaningful for get_config/set_config or that query pairs with search.

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

Purpose2/5

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

"Context/config tool" essentially restates the tool name and title without saying what context is produced. The action enumeration (summary|search|get_config|set_config|aliases) hints at five distinct capabilities but never states what any of them does — search what, summarize what, and how this differs from siblings like git_status or git_commits is left entirely to inference.

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?

The description gives no when-to-use guidance and no criteria for choosing among the five actions, which is the central decision an agent must make here. With 26 sibling tools in the same git family, the absence of any routing hint (e.g. 'use summary for a repo overview instead of git_status') is a real gap.

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