Skip to main content
Glama

addDayPasses

Add day passes to a customer's day pass balance at no charge, as an administrator allocation. Returns the created day passes transaction. Day passes must be turned on for the location; pass the customer's location as transaction.locationRef. Omit transaction.expirationDate for day passes that never expire; otherwise pass an ISO datetime within the expiration day in the location's timezoneId, and the day passes expire at the end of that day. Each call creates a new transaction: when a call fails or times out, list the customer's transactions before calling again, so the same amount is not applied twice. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Never invent UUIDs; only use values from prior tool responses.

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": {
      "transaction": "<transaction>"
    },
    "name": "addDayPasses"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionYesDay passes to add.

Output Schema

NameRequiredDescriptionDefault
transactionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare the generic non-read-only, non-destructive, non-open-world profile. The description goes well beyond that by disclosing that each call creates a new transaction (so retrying risks double-applying), that day passes must be enabled for the location, and that expiration is end-of-day in the location's timezone. It does not discuss authorization requirements for an 'administrator allocation' beyond the phrase itself.

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?

Front-loads the purpose, then layers prerequisites, expiration rules, and idempotency in a logical order with no filler. It is dense and long for a single top-level parameter, so it falls just short of perfect economy, but every sentence carries operational information.

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?

Output schema exists, so the return value need not be explained, and the description still notes it returns the created day passes transaction. For a mutation with one nested parameter object, the failure/retry, expiration, and reference-lookup guidance leave nothing material missing.

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 baseline is 3, but the description adds real meaning the schema does not: locationRef must be the customer's location, and expirationDate should be omitted for never-expiring passes or given as an ISO datetime within the expiration day in the location's timezoneId. The end-of-day expiration semantics are not derivable from the schema text.

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 ('Add day passes to a customer's day pass balance') plus the key qualifier 'at no charge, as an administrator allocation'. This is immediately distinguishable from the sibling deductDayPasses, which does the opposite operation.

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 explicit routing rules for dependencies: call getLocations or getLocation for locationRef and getCustomers for valid customerRef values, and never invent UUIDs. It also covers the retry case — 'when a call fails or times out, list the customer's transactions before calling again' — which is exactly the when-to-use guidance an agent needs for an ambiguous failure.

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