Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

git_restore

DestructiveIdempotent

Discard tracked Git edits without removing untracked files. Revert selected paths or all tracked changes to a source ref, with destructive actions disabled by default.

Instructions

Discard tracked edits only. Untracked files are preserved. Disabled by default.

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_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsNo
source_refNoHEAD
restore_allNo
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is partly covered. The description adds genuinely useful blast-radius context beyond that: only tracked edits are discarded, untracked files survive, and the tool ships disabled by default. It still omits whether confirmation is mandatory or how a source ref affects behavior.

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?

Three terse sentences with zero filler, and the most important constraint (tracked edits only) is front-loaded. Every sentence adds a distinct fact.

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?

An output schema exists, so return values need not be described, and the destructive nature is signaled. However, for a four-parameter destructive mutation with undocumented parameters and an unexplained "disabled by default" state, the definition leaves meaningful gaps for correct invocation.

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 0% across four parameters, so the description must carry the load and largely does not. Nothing explains paths, source_ref (restoring from a non-HEAD revision), restore_all, or the confirm_destructive safety gate — the last being a serious omission for a destructive tool.

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?

"Discard tracked edits only" states a specific verb (discard) and a precisely scoped resource (tracked edits), which is more informative than the bare name. It does not differentiate from any sibling or explain what "Disabled by default" means for availability, so it falls short of a 5.

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

Usage Guidelines3/5

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

The scope statement implies when this is appropriate (reverting tracked modifications) and implicitly warns that untracked files are out of scope, but there is no explicit when-to-use vs. alternatives guidance and no mention of checking state first with git_status_diff before a destructive operation.

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