Skip to main content
Glama

get_transaction_history

Retrieve complete purchase history for a customer using any transaction ID, with filters for product type, date range, and product ID; returns decoded transaction details.

Instructions

Get complete purchase history for a customer. Supports filtering by product type, date range, and product ID. Returns decoded transaction details.

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_transaction_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSort order for results
endDateNoFilter transactions before this timestamp (milliseconds)
maxPagesNoMaximum pages to fetch (default: 10, max: 50)
productIdNoFilter by specific product ID
startDateNoFilter transactions after this timestamp (milliseconds)
productTypeNoFilter by product type
transactionIdYesAny transaction ID from the customer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does little beyond implying a read. It says nothing about pagination behavior (despite a maxPages parameter), whether the required transactionId acts only as a customer seed, permission or auth requirements, rate limits, or whether results are eventually consistent.

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 short sentences with the core purpose front-loaded and no redundant filler. The closing sentence about decoded transaction details is slightly vague but does add return-value context rather than repeating the name.

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 seven-parameter, unannotated tool with no output schema, the description covers purpose, filters, and a hint at return content, which is the minimum viable. It leaves meaningful gaps around pagination, the role of the required transactionId as a seed versus a filter, and error or empty-result behavior.

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%, so every parameter including sort, maxPages, and the timestamp formats is already documented in the schema. The description restates product type, date range, and product ID filters but adds no syntax, defaults, or interaction semantics beyond that, making the baseline 3 appropriate.

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 ('Get complete purchase history for a customer') and notes filtering dimensions, so the intent is clear. It does not distinguish itself from nearby siblings such as get_transaction_info or get_refund_history, and the shift from 'transaction history' in the name to 'purchase history' in the text is a small mismatch.

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 rather than get_transaction_info or get_refund_history, and no stated exclusions or prerequisites. The reader can infer it is a history/listing tool, but nothing in the text tells an agent which alternative to pick.

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