Skip to main content
Glama

Reprice Replenishment Plan

reprice_replenishment_plan

Requires Write scope. Reprice the current credential-owned Inventory Mission Control plan against fresh canonical evidence and append one immutable revision. The request must name the expected current revision and may patch bounded plan constraints plus typed line action, quantity, or defer-reason decisions. Still-valid prior decisions carry forward; stale evidence returns closed-world field-level source changes. This is non-destructive: it changes only derived credential-owned planning state and does not change inventory or create an order document.

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

Input Schema

NameRequiredDescriptionDefault
planIdYesCredential-owned replenishment plan id (GUID).
requestYesExpected current revision, optional bounded constraint patch, and at most one typed patch per line.

Output Schema

NameRequiredDescriptionDefault
planNo
sourceChangesNo
appliedLineIdsNo
previousRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / plan / properties / decisionGroups / items / properties / lines / items / properties / metrics / properties / openManufacturingOrderDemand
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare non-destructive and non-idempotent, and the description explains exactly why: an immutable revision is appended, prior still-valid decisions carry forward, and stale evidence yields closed-world field-level source changes. It also scopes the blast radius ('does not change inventory or create an order document') and states the auth requirement (Write scope), which is real value beyond the structured fields.

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?

Front-loads the auth requirement and the core action, and every sentence contributes new information. The third sentence is dense and runs several clauses together, slightly hurting scannability.

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?

For a mutation tool with nested objects and an output schema, the description covers scope, auth, concurrency, carry-forward behavior, and stale-evidence handling. An agent has everything needed to decide to call it and to interpret a stale-evidence response.

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 meaning: expectedRevision acts as an optimistic-concurrency guard, and patches cover 'bounded plan constraints plus typed line action, quantity, or defer-reason decisions' with at most one patch per line. It does not explain the clearMaxKnownSpend/allowUnknownCost interaction, so not a 5.

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 ('Reprice the current credential-owned Inventory Mission Control plan') plus the key side effect ('append one immutable revision'). An agent can distinguish this from build_replenishment_plan (creates) and get_replenishment_plan (reads) without inspecting schemas.

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?

Clearly frames the operating context: a Write-scoped mutation against an existing plan that must name the expected current revision, with bounded patches only. It does not explicitly name an alternative tool or say when-not to use it, which keeps it below 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