Skip to main content
Glama

get_refund_history

Retrieves all refunded transactions for a customer using any transaction ID. Use it to audit refunds and detect abuse patterns.

Instructions

Get all refunded transactions for a customer. Use to audit refunds and detect abuse patterns.

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": {
      "transactionId": "<transactionId>"
    },
    "name": "get_refund_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionIdYesAny transaction ID from the customer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly does not: it does not say whether results are bounded by date range, paginated, or capped, nor that this is a read-only operation (only inferable from the 'get_' prefix). 'All refunded transactions' implies completeness without stating any volume or time limits.

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?

Two short sentences, front-loaded with the core verb and resource, with no filler. It could earn more by using the second sentence for constraints rather than generic motivation.

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?

For a single-parameter read tool with no output schema and no annotations, the description covers purpose and motive but omits result shape, ordering, and whether the list is exhaustive over all time. Adequate but with clear gaps an agent would want before calling.

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 coverage is 100% and there is only one parameter, so the schema already does the work. The description introduces a mild ambiguity by saying results are 'for a customer' while the only input is a transactionId; it never explains that a single transaction ID is used to identify the customer whose refunds are returned.

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?

States a specific verb and resource ('Get all refunded transactions') scoped to a customer, which is clearly distinct from get_transaction_history or get_transaction_info. It does not explicitly name a sibling or contrast scope, so it stops short of a 5.

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?

'Use to audit refunds and detect abuse patterns' gives a use context, but there is no guidance on when to prefer it over get_transaction_history, no exclusions, and no prerequisites. Usage is implied rather than directed.

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

Deploy Server

Other Tools