Skip to main content
Glama

List the month's guest stays to invoice

list_stays_to_invoice
Read-only

The guest stays of a month to invoice, as Invoicing › Invoice the month › Guest stays lists them: every short stay ending in the month in the homes you can edit that invoice their rentals (company-owned, or managed homes let in the manager's own name), each with its amount, the invoice that already covers it (a draft is rebuilt, an issued one left alone), the invoice it would get — simplified (F2, no customer) or full (F1) to the renter or guest named in customerFrom — and a warning when it cannot be invoiced yet (noIssuer, noPrice) or needs the guest's details completed (needsCustomer, over 3,000 €). Draft each with create_stay_invoice_draft. Requires the invoicing feature.

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": {
      "month": "<month>"
    },
    "name": "list_stays_to_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthYesThe month, YYYY-MM (a stay belongs to the month it ends in)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavior beyond them: existing drafts are rebuilt while issued invoices are left alone, and each row carries a warning state (noIssuer, noPrice, needsCustomer, over 3,000 €). It also discloses the feature-flag prerequisite, which annotations cannot express.

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

Conciseness3/5

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

The content is dense and front-loaded, but it is delivered as one long run-on sentence with em-dashes and parentheticals that make it hard to parse. Every clause carries information, yet the structure could be broken into shorter statements without losing anything.

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 tool with no output schema, the description covers what is returned (amount, covering invoice, prospective invoice type, warnings), the invoice variants (F1/F2), and the next action. Nothing an agent needs to call it correctly is missing.

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 coverage is 100% and the single month parameter is already documented with its YYYY-MM pattern and the 'belongs to the month it ends in' rule. The description restates that rule and introduces customerFrom, but that is not an input parameter, so it adds little parameter-level meaning beyond the schema.

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 ('guest stays of a month to invoice') and pins the scope precisely: stays ending in the month, in homes you can edit that invoice their rentals. It is clearly distinguishable from list_invoices, which lists invoices rather than candidate stays.

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?

Gives the operative precondition ('Requires the invoicing feature') and routes the agent to the follow-up action ('Draft each with create_stay_invoice_draft'). It does not explicitly state when to prefer list_invoices or get_invoice instead, but the scope statement makes the boundary inferable.

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.