Skip to main content
Glama

list_voided_purchases

Read-only

Lists cancelled, refunded, or charged-back purchases from the last 30 days, including order IDs and void reasons; optionally includes subscriptions and partial refunds.

Instructions

List purchases that were cancelled, refunded or charged back in the last 30 days. Each has orderId, purchaseToken, purchaseTimeMillis, voidedTimeMillis, voidedSource (0 user, 1 developer, 2 Google) and voidedReason (0 other, 1 remorse, 2 not received, 3 defective, 4 accidental purchase, 5 fraud, 6 friendly fraud, 7 chargeback, 8 unacknowledged purchase). By default only one-time product purchases are returned: pass include_subscriptions for subscriptions too. Returns tokenPagination.nextPageToken when there are more; pass it as token. Feed the orderIds to get_orders for details.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_voided_purchases"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNotokenPagination.nextPageToken from a previous call, to fetch the next page
end_timeNoNewest voided time to include, in milliseconds since the Unix epoch (default: now)
start_timeNoOldest voided time to include, in milliseconds since the Unix epoch, e.g. '1764115200000'. At most 30 days back (the default).
max_resultsNoMax results per page
package_nameNoApp package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME)
include_subscriptionsNoAlso return voided subscription purchases, not only one-time products
include_quantity_based_partial_refundNoAlso return partial refunds of multi-quantity purchases, with their voidedQuantity

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds material behavior the agent could not otherwise know — a hard 30-day default window, the non-obvious default filter that silently excludes subscriptions, and pagination continuation via tokenPagination.nextPageToken. It also enumerates the voidedSource and voidedReason code meanings, which is essential because there is no output schema.

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?

Content is front-loaded: scope, then return fields, then the subscription caveat, then pagination, then the sibling hand-off. It is dense but nearly every clause adds information an agent needs given the absence of an output schema; the long inline enum lists are the only marginally heavy part.

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

Completeness5/5

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

With no output schema, the description compensates by describing the returned fields, the enum codes, and the pagination token contract. Combined with a fully documented 7-parameter schema and read-only annotations, an agent has enough to call this correctly and chain into get_orders.

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%, so the parameter docs already carry the syntax and defaults. The description restates include_subscriptions and token semantics without adding much beyond the schema, and it never mentions start_time, end_time, max_results, package_name, or include_quantity_based_partial_refund — the last of which is the least self-explanatory parameter.

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 opens with a specific verb and resource ('List purchases that were cancelled, refunded or charged back') plus a concrete 30-day scope, which no sibling shares. It immediately distinguishes the result set from generic purchase retrieval and points to get_orders for detail expansion.

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

Usage Guidelines4/5

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

It states the default behavior (only one-time product purchases) and the explicit condition for broadening it ('pass include_subscriptions for subscriptions too'), plus a clear hand-off rule ('Feed the orderIds to get_orders for details'). It stops short of naming alternatives for pulling a single purchase or for subscriptions-only listing, so no exclusions are given.

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