Skip to main content
Glama

getDayPassesBalances

Read-only

Get the day passes balances of one customer by customerId. Each balance has an amount, an allocation, and an expirationDate when the day passes expire. Get customerId from getCustomers. 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": {
      "customerId": "<customerId>"
    },
    "name": "getDayPassesBalances"
  }
}

Input Schema

NameRequiredDescriptionDefault
customerIdYesThe id of the customer.

Output Schema

NameRequiredDescriptionDefault
balancesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, closed-world behavior, and the description reinforces this by describing the shape of each returned balance (amount, allocation, expirationDate). The provenance constraint ('only use values from prior tool responses') adds a behavioral rule not captured in annotations.

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?

Three short sentences, front-loaded with the core action, followed by return-field context and the provenance constraint. No filler.

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?

For a single-parameter, read-only lookup with an output schema and full annotation coverage, the description supplies everything needed: what it returns, how to source the ID, and the anti-hallucination rule.

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 UUID format is already documented. The description adds meaning beyond the schema by telling the agent where the customerId must come from (getCustomers output) and forbidding fabricated values.

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 the day passes balances of one customer') and scopes it to a single customerId, which clearly distinguishes it from sibling balance tools like getCreditsBalances and from transaction tools.

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?

Explicitly routes the agent to getCustomers to obtain the customerId and warns against inventing UUIDs, which is genuine when/how guidance. It does not state when to prefer alternative balance or transaction tools, but the positive guidance 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