Skip to main content
Glama

Issue Purchase Order

issue_purchase_order
DestructiveIdempotent

Issue a purchase order that is in Created status. An order a person has already approved is issued; an unapproved order is routed to Waiting Approval instead, because an assistant never approves a purchase order. The preview shows the order, vendor, total and the status it will move to. Requires Write + purchasing.execute.

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

Input Schema

NameRequiredDescriptionDefault
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.
purchaseOrderIdYesPurchase order id (GUID), document number (e.g. PO-2026-10-000118), or the short form people use for an open order: its last digits ("118", "PO 118").

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=true, idempotent=true), the description discloses the approval-state branching, the fact that an assistant can never approve, the required Write + purchasing.execute permissions, and what the preview surfaces. It stops short of stating that issuing is irreversible or how it interacts with cancel_purchase_order, which matters given destructiveHint=true.

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 the precondition and the branching behavior, and the rationale for not auto-approving earns its place. Minor ambiguity: "The preview shows..." refers to the preview parameter rather than the sibling preview tool, which a reader must infer.

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 a full input schema and an output schema present, plus annotations covering the safety profile, the description covers what an agent needs to decide and call correctly: status precondition, permissions, and outcome branching. The main gap is that reversibility of an issue is never stated for a destructive, idempotent write.

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 description coverage is 100%, so preview, previewReceipt, idempotencyKey and purchaseOrderId are already fully documented in the schema; baseline is 3. The description adds only the outcome of preview mode (order, vendor, total, target status), not new meaning for the idempotency or receipt parameters.

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 and resource ("Issue a purchase order") plus a hard precondition ("that is in Created status"), which tells an agent exactly what state the target must be in. It does not name the neighbouring transition_purchase_order or preview_purchase_order_transition tools, so differentiation from them is left implicit.

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?

The precondition (order must be in Created status) and the conditional outcome (approved -> issued, unapproved -> Waiting Approval) implicitly define when the call is appropriate. However, there is no explicit statement of when to prefer this over transition_purchase_order or transition_purchase_order, and no when-not-to-use guidance.

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