Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_operations_get_transaction_history

Read-onlyIdempotent

Retrieves the final status and delivery address of a completed or finalized transaction by ID. Use it to confirm CONFIRMED, DECLINED, FAILED, EXPIRED, or CANCELLED outcomes and get shipping details.

Instructions

[Merchant] Get history of completed/finalized transactions with final statuses.

Endpoint: GET /transactions-history/{transactionId} Use Case: Retrieve transactions with final statuses: CONFIRMED, DECLINED, FAILED, EXPIRED, CANCELLED. Note: For ACTIVE transactions, use 'payware_operations_get_transaction_status' instead.

📦 This is where the delivery address lives. For a SHIPPABLE transaction, deliveryAddress (fullName, streetAddressLine1/2, zipCode, city, region, country, phoneNumber, email) is returned here and only here. It was removed from the finalized callback on 2026-08-07: a callback is pushed to whatever URL is registered and its body stays in request logs and retry queues, which is acceptable for a transaction id and an amount and not for a shopper's home address. This endpoint is JWT-authenticated with your own credentials and tenant-scoped. So the pattern is: the callback tells you the shipment is ready, and this call gives you the address to ship to.

🧾 Lines and tip. A payment with lines carries items and total: what was sold. A tip is never a line: tip (absent without one) is yours, sent when you created the payment, or the payer's, added in their bank where your shop allows tips; tipEnteredBy (MERCHANT or PAYER) says which. The payer paid total + tip.

⚠️ Requires Standard or Premium. This endpoint was ungated until 2026-08-21 and is now on the same plan gate as the rest of the transaction surface, so a Basic merchant - or an ISV acting on behalf of one - now gets 403. If reading history started failing without a code change, this is why. Financial institutions are unaffected; banks are always Premium.

⏱️ Rate limited, like every payware endpoint. A 429 carries ERR_RATE_LIMIT_EXCEEDED and a Retry-After header, in seconds; the request was not processed, so the identical request is safe to retry once the window passes. The failure result exposes this as error.throttled, error.retryable and error.retryAfterSeconds.

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": "payware_operations_get_transaction_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
partnerIdNoPartner ID from payware dashboard. Can use PAYWARE_PARTNER_ID env var as default.partner_12345
privateKeyNoRSA private key for JWT token creation. Can use PAYWARE_PRIVATE_KEY_PATH env var as default.
useSandboxNoUse sandbox environment for testing
transactionIdYesThe pw transaction id. History looks the id up as given, so a product, placement, soundbite or POI id is not found: use the pw id the process response returned. Up to 32 characters (identifiers may grow beyond today's 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: a plan gate causing 403 for Basic merchants, tenant scoping via JWT, and 429 behavior with ERR_RATE_LIMIT_EXCEEDED, Retry-After, and exposed error.throttled/error.retryable/error.retryAfterSeconds fields. The one gap is that it does not state pagination or bounded result size for a 'history' listing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded well with endpoint and use case, and the section headers (delivery address, lines/tip, plan gate, rate limit) aid scanning. However it is padded with narrative justification (why the address was removed from the callback on 2026-08-07, the callback-body-in-logs rationale) and an aside that banks are always Premium, which do not change how the tool is called.

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?

No output schema exists, so the description carries the return-shape burden and does so concretely: deliveryAddress fields enumerated, items/total for lines, tip and tipEnteredBy semantics including who paid what. Combined with the plan-gate and throttling notes, an agent has everything needed to call this correctly and interpret failure modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning for transactionId: it must be the 'pw' id returned by the process response, and product, placement, soundbite or POI ids will not be found. That prevents a common mis-call. The auth-related parameters (partnerId, privateKey, useSandbox) get no additional treatment 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 ('Get history of completed/finalized transactions'), names the endpoint path, and explicitly separates itself from payware_operations_get_transaction_status which serves ACTIVE transactions. An agent can route between the two without opening either schema.

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?

Gives a positive use case (retrieve transactions with final statuses CONFIRMED, DECLINED, FAILED, EXPIRED, CANCELLED) and an explicit exclusion with a named alternative for ACTIVE transactions. It also describes the intended workflow (callback signals shipment ready, this call fetches the address).

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