Skip to main content
Glama

Cancel Replenishment Plan

cancel_replenishment_plan
DestructiveIdempotent

Cancel a credential-owned Inventory Mission Control plan. Live and expired drafts may be cancelled; committed, superseded and already-cancelled plans cannot. The preview shows the plan's revision and line counts; the commit refuses if the plan was repriced since. This sets the plan status to cancelled and does not delete any data or touch drafts a plan already created. Requires Write + replenishment.prepare.

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>"
    },
    "name": "cancel_replenishment_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesCredential-owned replenishment plan id (GUID).
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
planIdNo
statusNo
effectsNo
previewNo
warningsNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the required two-step preview/commit flow with a single-use previewReceipt, the fact that status changes to cancelled while no data is deleted and already-created drafts are untouched, and the Write + replenishment.prepare permission requirement. This is valuable because destructiveHint=true could otherwise mislead an agent into thinking data is removed; the description clarifies the actual mutation scope without contradicting the annotation.

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?

Four tight sentences, front-loaded with the action and then eligibility, mechanism, and side effects in priority order. No filler or repetition of the title, and every sentence carries decision-relevant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present the description need not explain return values, and it still covers eligibility, the two-step write protocol, permission requirements, and non-destructive side effects. Nothing an agent needs to invoke this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by explaining the interplay between the parameters: what the preview returns (revision and line counts), that previewReceipt plus a fresh idempotencyKey is what commits, and that calls without the receipt are refused. That is behavioral semantics the schema alone does not convey.

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 ('Cancel a credential-owned Inventory Mission Control plan') plus the ownership scope, which cleanly separates it from build/commit/reprice/get siblings. An agent can identify exactly what this tool does without opening the schema.

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?

Gives explicit eligibility gating: live and expired drafts can be cancelled, while committed, superseded and already-cancelled plans cannot. It also warns that the commit refuses if the plan was repriced since, which implicitly points toward repricing first, but it never names an alternative tool or states 'use X instead' explicitly.

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