Skip to main content
Glama

Summarize Razorpay resource

summarize_razorpay_resource
Read-onlyIdempotent

Stream 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

NameRequiredDescriptionDefault
toNoInclusive end time. Unix seconds, ISO date/datetime, or a preset. Date-only values include the full UTC day.
dayNoOptional day for settlement_recon.
fromNoInclusive start time. Unix seconds, ISO date/datetime, or a preset such as last_7_days, last_30_days, last_90_days, this_month.
yearNoRequired with month for settlement_recon.
monthNoRequired with year for settlement_recon.
whereNoTransient exact/array match filters applied per item, e.g. { "status": ["captured", "failed"] }.
metricsNoAggregate metrics. Defaults to count and sum:amount.
group_byNoUp to 3 item fields to group by, e.g. ["method", "status"].
maxPagesNoHard page ceiling (max 50) to protect Razorpay rate limits.
pageSizeNoRecords per page. Defaults to 100 for standard endpoints and 1000 for settlement_recon.
resourceYesRazorpay resource to stream and aggregate.
time_bucketNoOptional UTC time bucket derived from created_at/settled_at.
pushdownParamsNoEndpoint-native filters such as authorized, plan_id, customer_id, subscription_id, or type. Unsupported keys become transient where filters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, non-destructive, and closed-world, so the marginal burden is low; the description still adds real value by disclosing streaming pagination, in-memory aggregation, and that raw rows are never stored or returned. It stops short of explaining what happens at the page ceiling (truncation vs. error) or any rate-limit backoff behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler: the aggregation behavior and the no-raw-rows guarantee come first, and the supported-resource list is compact and decision-relevant. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 13-parameter tool with nested objects and no output schema, so the description should say more about the shape of the returned summary (nested groups with metric keys) and about truncation when maxPages is hit. It covers scope and safety adequately but leaves the return contract underspecified relative to the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and 13 parameters are individually documented, so the schema already carries the semantics. The description contributes only the resource enumeration context, adding nothing about metrics, group_by, time_bucket, or pushdownParams beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Stream Razorpay pages, aggregate them in memory') plus the exact output shape (grouped counts/sums/min/max), and implicitly separates itself from the fetch_* siblings by declaring it does not store or return raw transaction rows. An agent can immediately tell this is an aggregation tool rather than a row-listing tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'without storing or returning raw transaction rows' implies the tool is for aggregate-only questions, but it never explicitly says 'use this instead of fetch_all_payments when you only need counts/sums' or states exclusions. The supported-resource list helps selection, but the when-to-use rule is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.