rr_update_purchase_order
Modify draft purchase orders by updating vendor details, delivery dates, or notes to maintain accurate procurement records.
Instructions
Update a draft purchase order
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| po_id | Yes | ||
| notes | No | ||
| expected_delivery_date | No | ||
| vendor_id | No |
Implementation Reference
- src/index.ts:48-48 (schema)The schema definition for rr_update_purchase_order in the TOOLS array.
{ name: 'rr_update_purchase_order', description: 'Update a draft purchase order', inputSchema: { type: 'object' as const, properties: { po_id: { type: 'string' }, notes: { type: 'string' }, expected_delivery_date: { type: 'string' }, vendor_id: { type: 'string' } }, required: ['po_id'] } }, - src/index.ts:86-92 (handler)The handler logic that dispatches the rr_update_purchase_order call to the API via callApi function.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; try { const result = await callApi(name, (args as Record<string, unknown>) || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], };