Docs/MCP Tools/get_order_history
MCP Toolget_order_historyScope: library:read

Get Order History

Retrieve past purchase transactions, digital invoices, and financial ledger receipts.

Description

Get Order History provides access to the user's past purchase transactions on Krafto. It returns invoice IDs, transaction dates, line items, monetary amounts in INR/USD, tax breakdowns, and payment methods (Razorpay, Stripe, Krafto Wallet). This tool helps developers and accounting bots reconcile software/asset expenses.

AI Agent Guidance & Best Practices

Use get_order_history when a user asks for recent invoice summaries, receipts, or expenditure totals.

Input Arguments

1 parameters
ParameterTypeRequiredDefaultDescription
limitnumberOptional15Maximum number of past order records to return (min: 1, max: 50).

Request Example

{
  "jsonrpc": "2.0",
  "id": "call_18",
  "method": "tools/call",
  "params": {
    "name": "get_order_history",
    "arguments": {}
  }
}

Response Schema Example

application/json
{
  "totalOrders": 6,
  "orders": [
    {
      "orderId": "ord_krafto_98210",
      "date": "2026-03-05T14:22:10Z",
      "totalINR": 499,
      "itemsCount": 1,
      "status": "completed"
    }
  ]
}