Skip to main content
Glama

Calculate UPI MDR

calculate_upi_mdr
Read-onlyIdempotent

Work out the UPI merchant discount rate (MDR) on a payment under the rules from 15 October 2026: 0.4% on person-to-merchant UPI payments above ₹2,000 (capped at ₹300), a flat ₹5 for essential-sector merchants and 0.02% for capital markets. Person-to-person payments, payments of ₹2,000 or less and small P2PM merchants (up to ₹1 lakh a month) pay nothing. Shows the 18% GST on the MDR and what the merchant keeps.

Input Schema

NameRequiredDescriptionDefault
amountYesOne UPI payment, in rupees.
categoryNostandard merchant (default), essential sector, capital markets, or p2p (person to person).
gst_registeredNotrue if the merchant is GST-registered and can claim the GST on MDR as input tax credit.
small_merchantNotrue if the UPI ID is a small P2PM merchant (up to ₹1 lakh a month on UPI QR).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this as a safe, read-only, idempotent calculation. The description adds substantial behavioral context beyond that: threshold rules, caps, flat fees, zero-rated cases, GST treatment, and what the merchant keeps. It does not fully specify return shape, but with no output schema it gives more transparency than most calculators.

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

Conciseness4/5

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

The description is one dense paragraph but is front-loaded with purpose and then lists the relevant rules efficiently. Every clause carries rule information, though the single-sentence structure is slightly harder to scan than a short bulleted rule list would be.

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

Completeness4/5

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

For a read-only calculator with no output schema, the description supplies the key inputs, thresholds, and a summary of what the result shows ('18% GST on the MDR and what the merchant keeps'). It does not enumerate every possible output field, but it is complete enough for an agent to invoke the tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds business meaning by explaining how category values affect the result: standard 0.4%, essential ₹5, capital 0.02%, and p2p zero. It also ties gst_registered and small_merchant to the 18% GST and ₹1 lakh monthly threshold, adding interpretation beyond the field descriptions.

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?

The description states a specific verb and resource ('Work out the UPI merchant discount rate (MDR) on a payment') and immediately clarifies the legal rule set and effective date. An agent can tell this is a single-payment MDR calculator, not a GST calculator or payment-link 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 description makes clear the context is one UPI payment under the 15 October 2026 rules, which implies when to use it. However, it does not explicitly name alternatives such as calculate_gst or state exclusions, so sibling routing 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources