Get purchase order
get_purchase_orderRetrieve one Contractor Foreman purchase order by ID, including supplier, dates, status, and every line item with quantities, costs, totals, and cost codes.
Instructions
One purchase order with supplier, dates, status and its line items.
Reads one Contractor Foreman purchase order by purchase_order_id: what list_purchase_orders gives plus every line item with description, cost type, quantity, unit, unit cost, total and cost code.
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": {
"purchase_order_id": "<purchase_order_id>"
},
"name": "get_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchase_order_id | Yes | purchase_order_id from list_purchase_orders. |