Skip to main content
Glama

apply_change

Applies an approved change to the controller using its change ID, and rejects it if the controller state changed since the change was proposed.

Instructions

Carry out a change the user has seen and agreed to. change_id comes from propose_change or from any other tool that returned one. A set of rule changes is refused if the controller's state has changed since it was proposed.

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_id": "<change_id>"
    },
    "name": "apply_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_idYes
deploymentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/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 does disclose two useful behaviors: it is a state-mutating commit gated on prior user consent, and it refuses a set of rule changes if the controller's state changed since proposal (optimistic concurrency). It still omits whether the apply is idempotent, whether `change_id` is single-use, what the response is, and any permission requirements.

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 short sentences, front-loaded with the action and its precondition, followed by parameter provenance and the failure mode. No filler and nothing buried.

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 mutation tool with no annotations and no output schema, the description covers the consent gate and staleness refusal but leaves the `deployment` scoping and any return-value or error semantics unexplained. Adequate to call it safely in the happy path, incomplete for edge cases.

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% for two parameters, so the description must compensate. It explains `change_id`'s provenance well, but the `deployment` parameter is documented nowhere — neither in the schema nor in the description — leaving the agent to guess its meaning and when to supply it.

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?

"Carry out a change the user has seen and agreed to" gives a concrete verb (apply) and resource (a pending change), and the reference to `propose_change` as the source of `change_id` distinguishes it from the sibling that creates proposals. What is slightly under-specified is what kind of object is being changed (the later mention of "rule changes" is the only hint).

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

Usage Guidelines4/5

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

The precondition is explicit: the change must already have been seen and agreed to by the user, and `change_id` should come from `propose_change` or another tool that returned one. That effectively routes the agent to propose first, though it never states a when-not case or what to do if apply fails on a stale proposal beyond the refusal note.

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