Skip to main content
Glama

get_orders

Read-only

Retrieve Google Play order details by order ID, including status, purchase token, line items, totals, and refund history. Use when you have receipt IDs; order listing/search is unavailable.

Instructions

Look up one or more orders by order ID (the 'GPA.1234-5678-9012-34567' number on the buyer's receipt and in Play Console > Order management). Each order has orderId, state (PENDING, PROCESSED, CANCELED, PENDING_REFUND, PARTIALLY_REFUNDED, REFUNDED), purchaseToken, lineItems (productId, productTitle, listingPrice, total, tax and subscription or one-time purchase details), total, tax, developerRevenueInBuyerCurrency, buyerAddress (country), createTime, lastEventTime and orderHistory with refund and cancellation events. The API cannot list or search orders: you need the IDs, e.g. from a customer's receipt or list_voided_purchases. Orders that are not found are left out of the result.

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_ids": "<order_ids>"
    },
    "name": "get_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idsYesOrder IDs to look up, e.g. ['GPA.3345-1234-5678-90123'] (1 to 1000)
package_nameNoApp package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, the description discloses that missing orders are silently dropped from the result and enumerates the returned state values (PENDING through REFUNDED) and nested fields. It does not cover pagination or error behavior, but for a read-only lookup the disclosed semantics are substantial.

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?

Front-loaded with the action and identifier format, and every clause is informational rather than filler. The long field enumeration is dense but justified because there is no output schema; a bullets or semicolon structure would read slightly better.

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 spelling out the response shape (lineItems, totals, buyerAddress, orderHistory) and the not-found omission rule. Combined with the 100%-documented two-parameter schema, an agent has everything needed to call it and interpret results.

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 both parameters already carry examples and the 1–1000 bound, so the description adds little beyond repeating the GPA-style ID format. The package_name parameter and its GOOGLE_PLAY_PACKAGE_NAME default are never mentioned in the description.

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 ('look up one or more orders by order ID') and pins down the identifier format with a concrete example. The it-cannot-list sentence cleanly separates it from the list_* siblings in the catalog.

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

Usage Guidelines5/5

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

Explicitly says the API cannot list or search orders and tells the agent where to obtain IDs instead ('from a customer's receipt or list_voided_purchases'). It also names the alternative source, satisfying the when/when-not bar rather than leaving the agent to infer it.

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