Skip to main content
Glama

getCreditsTransactions

Read-only

List credits transactions. Provide customerRef or locationRef. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Set only one of them, not both. amount is always positive and already in credits, so report it as is, and read type to tell an allocation from spending. Filter by status, type, or createDate range.

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

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by what moved the credits: allocations add credits ('adminAllocation' granted by an admin, 'subscriptionAllocation' from a plan, 'purchaseAllocation' from a bought package); 'booking', 'order', 'eventTicket' and 'adminCharge' spend them; 'refund' returns them; 'expiration' and 'subscriptionExpiration' remove unused credits. Matches analytics report type filters. Comma-separated, one or more of: adminAllocation, adminCharge, booking, eventTicket, expiration, order, purchaseAllocation, refund, subscriptionAllocation, subscriptionExpiration.
limitNoMaximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
statusNoFilter by payment status: 'succeeded' completed, 'pending' awaiting payment, 'processing' being settled by the gateway, 'failed' did not go through, 'canceled' called off before completion. Comma-separated, one or more of: canceled, failed, pending, processing, succeeded.
createDateNoFilter by create date (createDate). Provide gte, lte ISO datetimes.
customerRefNoUUID of the company or membership whose credits transactions to list.
locationRefNoUUID of the location whose credits transactions to list.
nextPageTokenNoToken to retrieve the next page of results.

Output Schema

NameRequiredDescriptionDefault
transactionsYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / transactions / items / properties / endingBalance
      Added value: +{
      +  "description": "Total credits balance of the customer right after the transaction. Not returned for transactions created before the field was introduced, or for the expiration of credits that lapsed on their expiration date.",
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly=true, destructive=false, openWorld=false, so the safety profile is covered. The description adds interpretation context not in annotations: amount is always positive and already denominated in credits, and type must be read to distinguish allocation from spending. It omits pagination behavior, but the nextPageToken parameter and output schema cover that.

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?

The core action is front-loaded, followed by prerequisites, the exclusivity constraint, and result-interpretation notes in a logical order. Several sentences are dense run-ons (the amount/type sentence), but no sentence is pure filler.

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?

For a read-only, 7-parameter filtered list tool with full schema coverage and an output schema, the description covers selection, prerequisites, filter axes, and how to interpret returned values. Pagination and response shape are left entirely to structured fields, which is acceptable given the output schema exists.

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 semantics the schema lacks: the mutual exclusivity of customerRef and locationRef, and the fact that type/status/createDate are the supported filter axes. The detailed per-value meanings of type and status live in the schema, so credit here is for the added constraint rather than restated field docs.

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?

Opens with a specific verb+resource ("List credits transactions") and immediately scopes it to transactions filtered by status, type, or createDate range, which separates it from balance-oriented siblings like getCreditsBalances. It does not explicitly distinguish itself from the singular getCreditsTransaction or from getMoneyTransactions, so the differentiation is good but not complete.

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?

States a hard usage rule ("Provide customerRef or locationRef... Set only one of them, not both") and routes the agent to the right helpers: getLocations/getLocation for location IDs and getCustomers for valid customerRef values. This is explicit when-to-use and prerequisite guidance rather than inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources