Skip to main content
Glama

Rechnungen anzeigen

get_invoices
Read-only

Rechnungen des Kunden abrufen. Die Liste ist bewusst ein Ausschnitt: ALLE offenen Rechnungen (Unpaid, Payment Pending, Collections; höchstens 100) und zusätzlich die 25 neuesten abgeschlossenen (bezahlt, storniert, erstattet, Entwurf) — ältere abgeschlossene Rechnungen fehlen in der Liste. Die Antwort nennt deshalb immer die Gesamtzahl aller Rechnungen sowie Anzahl und Summe GETRENNT für offen und bezahlt; diese Zahlen gelten für den gesamten Bestand. Fragen nach Gesamtbeträgen ("wie viel habe ich bezahlt?", "was ist noch offen?") ausschließlich aus diesen Summen beantworten und niemals die aufgelisteten Zeilen aufaddieren. Storno, Erstattung und Entwurf stehen nur mit ihrer Anzahl da, weil eine Summe über gemischte Status nichts aussagt. Rechnungen ohne Rechnungsnummer werden mit ihrer Beleg-ID genannt; unter dieser ID findet der Kunde sie im Kundencenter wieder. Entwürfe sind noch nicht gestellte Rechnungen und nicht zu zahlen.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), yet the description adds substantial behavioral context the agent could not otherwise know: the list is deliberately truncated (max 100 open, 25 newest completed, older completed ones absent), totals/counts/sums in the response cover the entire inventory, and drafts are unissued and not payable.

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?

Purpose is front-loaded and most sentences carry distinct, necessary information about truncation and aggregation. It is slightly verbose and repeats the 'entire inventory' caveat twice, which is the only real padding.

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, the description fully carries the burden of explaining return values: totals, split counts and sums, status semantics, and the ID fallback. Nothing an agent needs to call and interpret this zero-parameter read tool is 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?

The tool takes zero parameters, so the baseline is 4. The description instead clarifies response semantics (separate counts and sums for open vs. paid, document-ID fallback for invoices without a number), which compensates for the absent output 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 ('Rechnungen des Kunden abrufen') and immediately delimits scope: all open invoices plus the 25 newest completed ones. No sibling tool in the list covers invoices, so an agent can place it unambiguously.

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 clear operational guidance on how to answer amount questions ('ausschließlich aus diesen Summen beantworten und niemals die aufgelisteten Zeilen aufaddieren') and explains why some statuses appear only as counts. It does not, however, name a competing tool or state explicit when-not-to-use conditions, though none exist among the siblings.

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