Skip to main content
Glama

Replenishment Plan Details

get_replenishment_plan
Read-only

Get a credential-owned Inventory Mission Control plan. Omit revision for the current immutable revision or provide its one-based number for audit. Another credential, tenant or client pin receives the same PLAN_NOT_FOUND response. Expired drafts remain readable but cannot be committed. This is non-destructive and does not change inventory or create any 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>"
    },
    "name": "get_replenishment_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesCredential-owned replenishment plan id (GUID).
revisionNoOptional one-based immutable revision; omit for the current revision.

Output Schema

NameRequiredDescriptionDefault
issuesNo
planIdNo
statusNo
summaryNo
revisionNo
createdAtNo
expiresAtNo
revisionIdNo
constraintsNo
schemaVersionNo
decisionGroupsNo
sourceObservedAtNo
sourceFingerprintNo
allowedNextActionsNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, so the safety profile is covered before the description begins. The description still adds genuinely new behavior: credential/tenant/client-pin scoping that returns PLAN_NOT_FOUND uniformly, and the lifecycle rule that expired drafts stay readable but cannot be committed. The closing non-destructive sentence largely restates the annotations, which is why this is not a 5.

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?

Four short sentences, front-loaded with what is fetched, followed by revision selection, error semantics, and lifecycle. The final sentence ('non-destructive and does not change inventory') partly repeats the annotations and could be trimmed.

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?

With an output schema present and full parameter documentation, the description need not explain return values, and it covers the remaining gaps an agent would care about: credential scoping, the failure mode, and draft lifecycle. Only the absence of explicit sibling routing keeps it short of complete.

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 coverage is 100% and the schema already documents planId as a credential-owned GUID and revision as an optional one-based immutable revision. The description reinforces those points and adds the audit purpose of revision, but contributes little meaning the schema does not already carry, so the baseline 3 applies.

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 opens with a specific verb and resource ("Get a credential-owned Inventory Mission Control plan") and scopes it to credential ownership. It implicitly separates itself from the mutation siblings by stating it does not change inventory or create order documents, though it never names those alternatives directly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent learns that omitting revision yields the current revision and supplying a number serves audit, which sketches a retrieval/audit use case. There is no explicit when-to-use versus when-not-to-use guidance and no named alternative for planning or committing.

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