Skip to main content
Glama

changeset_apply

Destructive

Apply an approved held change-set to the model. Your own proposals land when you propose them and need no apply; this is for a held one. A head that has moved since the change-set was proposed is carried onto rather than refused: the answer then carries rebased, saying how many ops the model already had, which were restated to describe what they met, and which could not be carried and were left out. Refused (409 not_approved) while a held change-set has no approval, and (409 stale_base) only when nothing in it can be carried at all. Approval itself is a person's act, made in the app; this token cannot give it.

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": {
      "id": "<id>"
    },
    "name": "changeset_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=false): it discloses that a moved head is rebased rather than refused, that the response carries a `rebased` breakdown of carried/restated/dropped ops, and that only a fully uncarryable change-set yields 409 `stale_base`. It also flags an auth boundary the agent cannot cross ('this token cannot give it'). It stops short of saying whether a partial rebase loses data irrecoverably, which matters given destructiveHint=true.

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?

The core action and its distinction from propose are front-loaded in the first sentence, with behavior and error semantics following in priority order. Dense but nearly every clause carries information; the rebase-explanation sentence is the longest and could be tightened slightly.

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?

With no output schema, the description still names the key return field and its contents, and it covers both refusal codes and the approval precondition — a full behavioral picture for a one-parameter mutation. The remaining gap is what a successful apply changes in the model and whether a partial rebase is recoverable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has a single undocumented `id` at 0% coverage, and the description only implies it identifies the held change-set ('Apply an approved held change-set') without stating format or provenance. That is enough to call the tool, but it adds little meaning beyond the property name itself.

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 and resource ('Apply an approved held change-set to the model') and immediately contrasts it with the sibling action it is not: 'Your own proposals land when you propose them and need no apply; this is for a held one.' An agent can distinguish this from changeset_propose and changeset_get without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('held one'), when-not-to-use (own proposals need no apply), and a hard prerequisite (approval must already exist). It also states what to do when refused, naming the two 409 conditions, so the agent knows how to interpret failure rather than retry blindly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources