Skip to main content
Glama

Apply a plan

apply_plan
Destructive

Applies a plan computed by plan_deploy (what it changes goes live); discard: true drops it without applying 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": {
      "plan_id": "<plan_id>"
    },
    "name": "apply_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNotrue: answers once done.
discardNotrue: drop the plan instead of applying it.
plan_idYesThe plan returned by plan_deploy.
projectNoThe project.
timeout_secondsNoLongest wait, in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, and the phrase "what it changes goes live" reinforces what destructive actually means here, which is genuine added context. However it says nothing about failure handling, partial application, or whether a discarded plan can be re-applied, and the wait/timeout behavior is left entirely to the schema.

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 front-loaded sentence with the destructive effect stated first and the discard escape hatch attached economically in the parenthetical. No filler, no redundancy, nothing an agent must read past to find the core action.

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 five-parameter mutation tool with full schema coverage and a rich annotation set, the description covers the essential question of provenance and effect. The remaining gap is outcome description: with no output schema, the agent gets no hint of what a successful apply returns or how failures surface.

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?

Schema description coverage is 100%, so all five parameters are already documented in structured form, making 3 the baseline. The description's only parameter-level note restates discard semantics that the schema already explains ("drop the plan instead of applying it"), adding no syntax, defaults, or interaction details beyond it.

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 plus resource ("Applies a plan") and ties the input to its producer ("computed by plan_deploy"), which separates it cleanly from the sibling that only computes plans. The parenthetical "what it changes goes live" removes any ambiguity about whether applying is a no-op preview.

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 description implies the correct sequence (plan_deploy first, then apply) and documents the discard variant as the way to skip applying. It stops short of an explicit "when not to use" statement or naming deploy_app/rollback_app as alternative paths, so it falls just short of a 5.

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