Skip to main content
Glama
erayendes

Heimdall App Store Connect MCP

storekit__get_transaction_history

Read-only

Get a customer's full purchase history from any one of their transaction IDs. Supports filtering by product type, product ID and date range.

Instructions

Get a customer's full purchase history from any one of their transaction IDs. Supports filtering by product type, product ID and date range. Returns Apple's SIGNED transactions (JWS strings) unless ASC_APPLE_ROOT_CERTS is set, in which case they arrive verified and decoded. [App Store Server API]

Input Schema

NameRequiredDescriptionDefault
appNoWhich app: its name, bundle ID or Apple ID. Optional when the account has one app or ASC_BUNDLE_ID is set.
rawNoReturn Apple's signed JWS payloads instead of decoded fields, to verify them yourself. Ignored when ASC_APPLE_ROOT_CERTS is unset — the payloads are all there is then.
sortNo
revokedNoFilter by revoked status.
max_pagesNoPages to fetch, 20 transactions each (default 5). The result carries hasMore and a revision cursor when Apple still has more than this fetched.
product_idNoFilter to one product ID.
environmentNoWhich App Store environment to query. Defaults to the server-configured environment (ASC_ENVIRONMENT). A transaction ID belongs to one environment only.
product_typeNoFilter by product type.
transaction_idYesAny transaction ID belonging to the customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.6.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint. The description adds real behavioral value: the return format depends on whether ASC_APPLE_ROOT_CERTS is set (signed JWS strings vs verified/decoded), which materially affects how an agent consumes the result. It stops short of disclosing pagination/auth behavior, but that is largely in the 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?

Three tight sentences, front-loaded with the core action and scoping, then filters, then return format. Every sentence carries information, though the trailing '[App Store Server API]' tag adds little.

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?

With no output schema, the description usefully explains the return shape (signed vs decoded) and it covers the filter surface and the originating API. For a read-only tool with strong annotation coverage, this is nearly complete; only pagination/auth prerequisites are unaddressed.

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 89%, so the schema already documents most parameters. The description restates the filter categories (product type, product ID, date range) without adding syntax or edge-case meaning; notably 'date range' filtering is mentioned but no date parameter appears in the schema, a minor mismatch. Baseline 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?

States a specific verb and resource ('Get a customer's full purchase history') and scopes it via transaction ID, which distinguishes it from siblings like storekit__get_transaction_info. It does not explicitly contrast itself with the closest siblings, keeping it 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?

Mentions supported filters, implying how to narrow results, but offers no when-to-use/when-not guidance or explicit alternative (e.g., get_transaction_info for a single transaction vs this for history). Usage is inferable but not stated.

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