Skip to main content
Glama

Preview Purchase Order Transition

preview_purchase_order_transition

Preview one exact purchase-order lifecycle transition and issue a short-lived, single-use confirmation receipt. Supported transitions are IssueOrRouteForApproval, Cancel, and QuickReceive. IssueOrRouteForApproval never grants approval: an unapproved Created order goes to Waiting Approval; an already human-approved order may be issued. QuickReceive lists every order quantity, converted inventory quantity and unit cost, and resolved destination location that will move. It refuses exact previews when an after-operation rule could add undisclosed effects. Requires Write scope plus purchasing.execute, or receiving.execute for QuickReceive.

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": {
      "purchaseOrderId": "<purchaseOrderId>",
      "transition": "<transition>"
    },
    "name": "preview_purchase_order_transition"
  }
}

Input Schema

NameRequiredDescriptionDefault
transitionYesExact transition: IssueOrRouteForApproval, Cancel, or QuickReceive.
purchaseOrderIdYesPurchase order id (GUID).

Output Schema

NameRequiredDescriptionDefault
okNo
resultNo
effectsNo
warningsNo
expiresAtNo
operationNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
allowedNextActionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: the confirmation receipt is short-lived and single-use, IssueOrRouteForApproval never grants approval, QuickReceive lists the exact quantities and locations that will move, and exact previews are refused when an after-operation rule could add undisclosed effects. It also discloses the required Write scope and purchasing.execute or receiving.execute permissions.

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?

The description is front-loaded with the core preview-and-receipt purpose and every sentence contributes useful information. It is dense but coherent, though bullet-like structure could make the transition-specific behaviors easier to scan.

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?

Because an output schema exists, the description need not explain return values, and it covers permissions, refusal conditions, and the effects of the main transitions. It is slightly incomplete in not explaining how the confirmation receipt is consumed downstream and not detailing the Cancel transition.

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 schema already documents both parameters and the transition enum. The description adds meaningful semantics for the transition values by explaining what IssueOrRouteForApproval and QuickReceive do, though it does not add detail for purchaseOrderId beyond the schema.

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 uses a specific verb ('Preview') and resource ('purchase-order lifecycle transition'), and adds that it issues a single-use confirmation receipt. This clearly distinguishes it from execution siblings, but it does not explicitly name or contrast with transition_purchase_order or the direct cancel/issue/receive tools.

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?

It states the supported transitions and permission requirements, implying it should be used before executing a transition. However, it never explicitly says when to use this preview versus calling transition_purchase_order, cancel_purchase_order, issue_purchase_order, or receive_purchase_order directly.

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