Skip to main content
Glama

discard_unpushed

Destructive

Discard local commits that never reached Overleaf and reset the local copy to Overleaf's current version.

Instructions

Throw away local commits that never reached Overleaf and reset to Overleaf's current version.

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": "discard_unpushed"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety profile is covered; the description adds genuine value by scoping exactly what is lost (only commits that never reached Overleaf) and what state results (Overleaf's current version). It does not explicitly say the loss is irreversible or mention any recovery path, which keeps it from a 5.

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?

A single sentence with zero filler, and the destructive action is front-loaded before the resulting state. Nothing is repeated from the annotations or title.

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 zero-parameter, no-output-schema mutation tool, the description covers what is destroyed and the end state, which is what an agent needs to act safely. It leaves unstated which project the operation targets (relevant given openWorldHint=true and no project parameter) and whether the discarded commits are recoverable.

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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The absence of any parameter is itself consistent with acting on the implicitly selected project.

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 ('throw away') and a precisely scoped resource ('local commits that never reached Overleaf'), plus the resulting state ('reset to Overleaf's current version'). The phrase 'never reached Overleaf' implicitly contrasts this with pushing, so an agent can distinguish it from push_changes or sync_project without opening a schema.

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 description makes the situation of use fairly evident (discarding commits that were never pushed, e.g., to abandon local work), but it never states when to use this versus sync_project or push_changes, nor does it warn about when not to use it. Usage is implied rather than stated.

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