Skip to main content
Glama

getDayPassesTransactions

Read-only

List day passes 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 counted in whole day passes, so read type to tell an allocation from spending. Filter by 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": "getDayPassesTransactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by what moved the day passes: allocations add passes ('adminAllocation' granted by an admin, 'subscriptionAllocation' from a plan, 'purchaseAllocation' from a bought package); 'booking' and 'adminCharge' spend them; 'refund' returns them; 'expiration' and 'subscriptionExpiration' remove unused passes. Matches analytics report type filters. Comma-separated, one or more of: adminAllocation, adminCharge, booking, expiration, purchaseAllocation, refund, subscriptionAllocation, subscriptionExpiration.
limitNoMaximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
createDateNoFilter by create date (createDate). Provide gte, lte ISO datetimes.
customerRefNoUUID of the company or membership whose day pass transactions to list.
locationRefNoUUID of the location whose day pass 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. 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 readOnlyHint=true, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely non-obvious semantics about the result set: amount is always positive and denominated in whole day passes, so type must be read to distinguish allocation from spending. It does not discuss pagination behavior beyond what the schema's nextPageToken and limit fields already convey.

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

Conciseness5/5

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

Five short sentences, each carrying a distinct decision the agent needs: what it lists, the ref requirement, how to resolve refs, the exclusivity rule, and how to interpret amount. Nothing is padded and the core constraint is front-loaded.

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 an output schema present, the description needn't explain return shape, and annotations cover the safety profile, so the remaining burden is small. It covers the ref prerequisite and amount semantics well; only minor gaps remain, such as default ordering and how paging is expected to be driven.

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 the schema already documents type values, limit capping, createDate bounds and the UUID refs; the description's "Filter by type or createDate range" is largely restatement, which anchors this at the baseline 3. The one real addition is the mutual-exclusivity rule between customerRef and locationRef, which the schema does not encode.

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?

"List day passes transactions" names a specific verb and resource, and the description immediately narrows scope by declaring that a customerRef or locationRef must be supplied. An agent can distinguish this plural listing tool from the singular getDayPassesTransaction and from balance-oriented siblings like getDayPassesBalances without opening a schema.

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

Usage Guidelines4/5

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

It gives concrete prerequisites and routing: call getLocations or getLocation for a locationRef, and getCustomers for a customerRef. It also states an explicit when-not ("Set only one of them, not both") and names the filter axes. It stops short of saying when to prefer this tool over sibling transaction or balance readers, but the operational guidance for calling it is clear.

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