Skip to main content
Glama

Convert RFP to Purchase Order

convert_rfp_to_purchase_order

Make the purchase order an approved request for proposal (RFP) decides, as the RFP screen's Generate Purchase Order does: a new purchase order in Created status with the RFP's supplier, warehouse, lines and due date, and the RFP marked fulfilled. Nothing is sent to the supplier; issue the order with issue_purchase_order. A person approves the RFP first, in the app; an unapproved RFP is refused. Find RFPs with get_purchase_orders type=rfp. Two-step: preview=true, then commit with the previewReceipt. 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": {
      "requestForProposal": "<requestForProposal>"
    },
    "name": "convert_rfp_to_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 is written 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.
requestForProposalYesRequest for proposal id (GUID), document number, or the short form people use for an open one: its last digits ("42", "RFP 42").

Output Schema

NameRequiredDescriptionDefault
okNo
statusNo
previewNo
expiresAtNo
totalAmountNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
purchaseOrderIdNo
idempotentReplayNo
purchaseOrderNumberNo
requestForProposalIdNo
requestForProposalNumberNo
requestForProposalVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare this is a non-destructive, non-idempotent write; the description goes well beyond that by disclosing side effects (RFP marked fulfilled), the Created-status outcome, that nothing is sent to the supplier, the approval gate, and the required permission scopes (Write + purchasing.execute). It does not explain what happens on a stale or reused previewReceipt or how a duplicate commit is handled, which is the main remaining gap for a non-idempotent write.

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 paragraph is front-loaded with the effect, then prerequisites, then alternatives and permissions — each sentence earns its place. It is dense and slightly run-on, so a bulleted structure would read faster, but there is no filler or restatement of the name.

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 four-parameter mutation with an output schema, the description covers everything an agent needs: prerequisites, permission requirements, side effects, the required two-step protocol, and the follow-up tool. Return-value detail is correctly omitted because an output schema exists.

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 carries per-parameter meaning, and the description does not repeat it. It adds value by framing preview/previewReceipt as an ordered, mandatory two-step flow and by tying requestForProposal lookup to how people identify open RFPs, which is workflow context the schema alone doesn't 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?

The description states a specific verb+resource pair (convert an RFP into a purchase order) and pins the exact outcome: a new PO in Created status with the RFP's supplier, warehouse, lines and due date, and the RFP marked fulfilled. It explicitly distinguishes itself from issue_purchase_order (sending) and get_purchase_orders (finding RFPs), so an agent can route correctly without opening a schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use conditions, prerequisites (a person must approve the RFP first, in the app; unapproved RFPs are refused), the alternative for the next step (issue_purchase_order), and how to locate inputs (get_purchase_orders type=rfp). The two-step preview-then-commit sequence is spelled out as required, leaving nothing to inference.

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