Skip to main content
Glama

apply_plan

Destructive

Applies a host-authorized subset of an immutable current-process plan in write mode; rejects production submission and TestFlight distribution plans, and reads back unknown outcomes.

Instructions

Apply the exact host-authorized subset of an immutable, current-process domain plan. Requires write mode and rejects production submission and TestFlight distribution plans. Unknown outcomes are read back, never replayed.

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": {
      "planId": "<planId>",
      "digest": "<digest>",
      "operationIds": "<operationIds>",
      "authorization": "<authorization>"
    },
    "name": "apply_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
digestYes
planIdYes
operationIdsYes
authorizationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (destructive, open-world, non-idempotent), the description adds real behavioral context: a write-mode prerequisite, explicit rejection of production submission and TestFlight distribution plans, and failure semantics stating unknown outcomes are read back rather than replayed. That retry/recovery disclosure is valuable for a destructive operation. It stops short of saying what happens when only part of the operation subset succeeds, which for a destructive batch apply is the most consequential unknown.

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?

Three sentences, front-loaded with the action and followed by constraints and failure semantics in a logical order, with no filler. The phrasing is compressed to the point of opacity in places ('current-process domain plan'), trading a little clarity for density.

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 destructive, non-idempotent batch operation with no output schema and zero schema description coverage, the definition covers preconditions, exclusions, and recovery semantics but omits parameter meaning and partial-failure behavior. An agent could decide whether to call it, but not confidently construct the call or predict what comes back.

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% across four required parameters, including a nested authorization object, so the description must carry the burden and largely does not. 'Host-authorized subset' loosely gestures at operationIds plus authorization.confirmedByHost, and 'immutable' hints at digest verification, but there is no explanation of what planId identifies, how operationIds are selected or bounded, or what the digest must correspond to. The agent is left to infer all four parameters from names and JSON constraints alone.

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?

The description gives a specific verb ('Apply') and a scoped resource ('the exact host-authorized subset of an immutable, current-process domain plan'), and it distinguishes itself from the plan_* siblings by operating on an already-created plan. It further narrows itself against apply_testflight_distribution by rejecting TestFlight distribution plans. The qualifiers 'current-process' and 'host-authorized subset' are jargon-dense enough that the exact effect is not fully transparent, keeping it out of 5 territory.

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?

It states two concrete preconditions for use — write mode is required, and production submission and TestFlight distribution plans are rejected — which effectively routes the agent away from apply_plan toward apply_testflight_distribution for the latter case. It does not explicitly name the sibling to use instead, nor does it say what to do when no plan exists yet (plan_* tools), leaving some inference to the agent.

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