Skip to main content
Glama

rr_list_purchase_orders

Retrieve purchase orders with filtering options for status, vendor, and search terms to manage inventory procurement.

Instructions

List purchase orders

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNo
vendor_idNo
searchNo
limitNo
offsetNo

Implementation Reference

  • The CallToolRequestSchema handler in src/index.ts dispatches all tool calls, including rr_list_purchase_orders, to a centralized 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) }],
        };
      } catch (error) {
        const message = error instanceof Error ? error.message : String(error);
        return {
          content: [{ type: 'text', text: `Error: ${message}` }],
          isError: true,
        };
      }
    });
  • src/index.ts:34-34 (registration)
    The rr_list_purchase_orders tool is defined within the TOOLS array.
    { name: 'rr_list_purchase_orders', description: 'List purchase orders', inputSchema: { type: 'object' as const, properties: { status: { type: 'string' }, vendor_id: { type: 'string' }, search: { type: 'string' }, limit: { type: 'number' }, offset: { type: 'number' } } } },

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