Skip to main content
Glama

Show one invoice

lw_invoice_details
Read-onlyIdempotent

Retrieve one invoice with line items grouped by asset for client resale billing, or preview an unbilled invoice; payment method details are never returned.

Instructions

Show one invoice with line items (bleed Billing/Invoice/details). The compact view groups charges by asset uniq_id so you can match them to clients for resale billing. Never returns payment method details. preview=true reads an invoice preview instead.

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": {
      "id": "<id>"
    },
    "name": "lw_invoice_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesInvoice id from lw_invoice_list.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
previewNoRead the invoice preview (unbilled) instead.
verboseNoReturn the raw (scrubbed) invoice.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real behavioral context beyond them: the compact view groups charges by asset uniq_id for resale matching, and payment method details are never returned. The verbose-mode behavior ('raw (scrubbed) invoice') is left to the schema, which is a minor gap.

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?

Four short sentences, front-loaded with the core action and return shape, with no filler. The '(bleed Billing/Invoice/details)' fragment is cryptic internal notation that costs a little clarity without adding much for an agent.

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 need not explain return values, yet it still characterizes the compact grouping and the payment-method exclusion. It is nearly complete for a four-parameter read tool; only the verbose mode's purpose is unaddressed outside the schema.

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%, so all four parameters are already documented, and the description largely echoes the schema's preview semantics (adding only '(unbilled)'). It adds no meaning for verbose or context, and does not explain how compact versus verbose output interact.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Show one invoice with line items') and hints at the underlying endpoint via '(bleed Billing/Invoice/details)'. It is clearly a single-invoice fetch, distinguishable from list-style siblings, though it never names lw_invoice_list as the companion tool (only the schema does).

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

Usage Guidelines3/5

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

Gives one useful routing rule: 'preview=true reads an invoice preview instead', which tells the agent when to flip that flag. It offers no explicit when-not guidance, no mention of how this relates to lw_invoice_list, and no explanation of when to choose verbose over the compact view.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools