Skip to main content
Glama

LockTrip Hotels

Get Credit-Line Statement

get_credit_line_statement
Read-only

Returns the signed-in partner's own credit-line statement: balance (the real-time balance due and pending, ALWAYS for the whole credit line, not filtered by the dates), account details (name, currency, creditLimit, periodType), and the booking rows whose due date falls between from and to (default: the current month; at most 93 days). Each row carries bookingReferenceId, hotelName, guestName, dates, amount, currency, bucket (current = due, pending = not due yet), dueDate, paid, outstanding, paymentStatus, settledBy, and lineType (booking, or cancellation_fee for a late-cancellation charge). Read-only. Needs a signed-in partner credit-line account session; guest sessions have no credit line. Takes no account identifier: the credit line is always the caller's own.

Input Schema

NameRequiredDescriptionDefault
toNoLast due date to include, YYYY-MM-DD (at most 93 days after `from`).
fromNoFirst due date to include, YYYY-MM-DD. Pass with `to`; omit both for the current month.
sessionTokenNoOptional guest-checkout token returned by `guest_login`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, yet the description adds substantive behavior beyond them: `balance` is always the whole credit line and is explicitly NOT filtered by the date range, and the tool is scoped to the caller's own credit line with no account parameter. It also discloses the auth prerequisite (partner credit-line session) and the guest-session limitation, which the annotations do not cover.

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 definition is a single dense paragraph but the most decision-relevant facts (what it returns, balance-not-filtered caveat, read-only, auth requirement, no account identifier) are front-loaded. The long enumeration of row fields is verbose, though it substitutes for a missing output schema.

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?

With no output schema available, the description fully spells out the return shape: top-level balance and account fields plus every row field including bucket semantics (`current` vs `pending`) and lineType (`booking` vs `cancellation_fee`). Auth requirements, defaults, and range limits are all covered, leaving nothing an agent needs to call it correctly.

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 both date parameters are already documented, making 3 the baseline. The description still adds meaning by framing `from`/`to` as due-date bounds with a default of the current month and a 93-day cap, and by implying the `sessionToken` is irrelevant here since guest sessions have no credit line.

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?

The description names a specific verb and resource ("Returns the signed-in partner's own credit-line statement") and immediately enumerates the three components returned: balance, account details, and booking rows. Combined with the note that it takes no account identifier, an agent can distinguish this from sibling tools like list_settlements or get_statement_document without opening the 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 clear conditions for use: requires a signed-in partner credit-line session, guest sessions have no credit line, and the date range defaults to the current month with a 93-day ceiling. It stops short of naming alternatives, so it never explicitly says when to prefer get_statement_document or list_settlements instead.

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