Skip to main content
Glama

git_surface

Read-only

Identifies what each ref changes from its merge base, including CI, hooks, agent files, install scripts, dependencies, and hidden text that run or are trusted. Use it to audit branches before review.

Instructions

git-surface: what each ref changes, since its merge base with base, that runs or is trusted (CI, hooks, agent files, install scripts, dependencies, hidden text).

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": "<repo>",
      "base": "<base>",
      "refs": "<refs>"
    },
    "name": "git_surface"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase branch, e.g. main
refsYesBranch, tag or commit names to check
repoYesRepository directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful scoping detail about CI, hooks, agent files, install scripts, dependencies, and hidden text, but it does not explain the return shape, whether refs must exist locally, or how merge-base failures are handled.

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?

It is a single compact sentence with the tool name front-loaded and no filler. The grammar is dense enough that an agent has to parse a fragment, but the parenthetical list efficiently enumerates the relevant surfaces.

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

Completeness3/5

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

For a read-only analysis tool with no output schema, the description conveys the surface being analyzed but not the output structure (e.g., per-ref file lists, categories, or counts). It is minimally adequate, though missing operational details about ref resolution and merge-base behavior.

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 100%, so the baseline is 3; the description adds meaningful semantic context by saying the comparison is against the merge base with base, not a direct branch diff. It still leaves the refs array's handling of branches, tags, and commit names largely to the schema.

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?

Identifies the resource being analyzed (each ref relative to base) and the narrowed scope (changes that run or are trusted, with examples like CI, hooks, agent files, install scripts, dependencies, hidden text). It is specific enough to select the tool for a surface-diff analysis, but it does not differentiate itself from sibling analyzers such as git_overlap or trust_path.

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?

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no explicit mention of alternatives. An agent must infer the use case from the description alone.

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