Summarize Razorpay resource
summarize_razorpay_resourceStream Razorpay payments, orders, refunds, settlements, subscriptions, invoices, disputes, and customers to return grouped counts, sums, and min/max aggregates without storing or exposing raw rows.
Instructions
Stream Razorpay pages, aggregate them in memory, and return grouped counts/sums/min/max without storing or returning raw transaction rows. Supports payments, orders, refunds, settlements, settlement reconciliation, subscriptions, invoices, disputes, and customers.
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": {
"resource": "<resource>"
},
"name": "summarize_razorpay_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive end time. Unix seconds, ISO date/datetime, or a preset. Date-only values include the full UTC day. | |
| day | No | Optional day for settlement_recon. | |
| from | No | Inclusive start time. Unix seconds, ISO date/datetime, or a preset such as last_7_days, last_30_days, last_90_days, this_month. | |
| year | No | Required with month for settlement_recon. | |
| month | No | Required with year for settlement_recon. | |
| where | No | Transient exact/array match filters applied per item, e.g. { "status": ["captured", "failed"] }. | |
| metrics | No | Aggregate metrics. Defaults to count and sum:amount. | |
| group_by | No | Up to 3 item fields to group by, e.g. ["method", "status"]. | |
| maxPages | No | Hard page ceiling (max 50) to protect Razorpay rate limits. | |
| pageSize | No | Records per page. Defaults to 100 for standard endpoints and 1000 for settlement_recon. | |
| resource | Yes | Razorpay resource to stream and aggregate. | |
| time_bucket | No | Optional UTC time bucket derived from created_at/settled_at. | |
| pushdownParams | No | Endpoint-native filters such as authorized, plan_id, customer_id, subscription_id, or type. Unsupported keys become transient where filters. |