Skip to main content
Glama

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
NameRequiredDescriptionDefault
po_idYes
notesNo
expected_delivery_dateNo
vendor_idNo

Implementation Reference

  • 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'] } },
  • 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) }],
        };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ReplenishRadar/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server