Skip to main content
Glama
Easypaisa MCP

Easypaisa MCP

by theYahia

refund_payment

Issue a refund for an original Easypaisa payment using its order ID and a refund amount in PKR, with an optional reason for the refund.

Instructions

Refund an Easypaisa payment.

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": {
      "order_id": "<order_id>",
      "amount": "<amount>"
    },
    "name": "refund_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesRefund amount in PKR
reasonNoReason for refund
order_idYesOrder ID of the original transaction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Refund' implies a financial mutation, but the description does not state irreversibility, authorization requirements, partial-refund limits, idempotency, or response behavior.

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 a single front-loaded sentence with no filler. Its brevity is efficient, though it contributes to the overall under-specification of a financial mutation tool.

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

Completeness2/5

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

For a payment-refund tool with no annotations and no output schema, the description omits critical context such as authorization needs, refund constraints, and result semantics. The schema covers the parameters, but the behavioral contract remains largely undocumented.

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%, with clear descriptions for order_id, amount, and reason. The description adds no parameter meaning beyond what the schema already provides, so the baseline of 3 applies.

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

Purpose4/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: 'Refund' an 'Easypaisa payment.' This is clear, but it does not distinguish the tool from sibling payment tools or clarify whether it supports partial refunds versus full refunds.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus siblings such as check_status, inquire_transaction, or create_payment. It also omits prerequisites, exclusions, and any caution about when a refund should or should not be attempted.

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