Skip to main content
Glama

Discard proposed changes

discard_changes

Drops a proposed change set without writing any changes, so you can reject pending edits and leave files unchanged.

Instructions

Drop a proposed change set without writing anything.

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": {
      "change_set_id": "<change_set_id>"
    },
    "name": "discard_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_set_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key behavior that nothing is persisted ("without writing anything"). It does not say whether discarding is recoverable, whether the change set must be pending or locked by the caller, or what happens if the id is unknown.

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?

One short, front-loaded sentence with no wasted words; the purpose and the non-writing guarantee both land immediately.

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 simple one-parameter tool with no output schema, the description covers the essential purpose and safety posture. It is thin on preconditions (existence of the change set, ownership) and error behavior, which an agent would want before invoking.

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?

The single parameter, change_set_id, has 0% schema description coverage, and the description never explains what it identifies or its format. The name is largely self-explanatory, but the description adds no meaning beyond 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?

Specific verb ("Drop") plus resource ("proposed change set") makes the intent unmistakable, and "without writing anything" implicitly separates it from apply_changes. It stops short of naming the sibling it contrasts with, so it is clear but not fully differentiated.

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?

Usage is implied rather than stated: an agent can infer this is for abandoning a change set instead of applying it. There is no explicit "use when" or "do not use when" guidance, and no alternative tool is named, though apply_changes is the obvious counterpart.

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