Skip to main content
Glama

Rechnungssummen berechnen

rechnung_summen

Computes invoice totals from line items with quantity, unit price, item discount and VAT rate: line totals, net per VAT rate, VAT per rate (rounded per rate as on German invoices), overall discount, gross total and amount due. Rechnungsrechner. Preis $0.005 (x402).

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": {
      "positionen": "<positionen>"
    },
    "name": "rechnung_summen"
  }
}

Input Schema

NameRequiredDescriptionDefault
positionenYes[{"bezeichnung":"…","menge":2,"preis":9.5,"ust":19,"rabatt_prozent":0}]
preise_bruttoNoEinzelpreise sind brutto
bereits_bezahltNobereits_bezahlt
rabatt_prozent_gesamtNorabatt_prozent_gesamt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does useful work: it discloses the rounding rule ('VAT per rate, rounded per rate as on German invoices') and the commercial context ('Preis $0.005 (x402)'), which signals a paid/payment-gated call. It stops short of describing error behavior for malformed line items or the response shape/keys.

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?

One dense but front-loaded sentence enumerating the computed outputs, followed by a domain tag and price. No filler; every clause conveys scope, behavior, or cost.

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?

There is no output schema, so the description must and does enumerate all returned values (line totals, net per rate, VAT per rate, overall discount, gross total, amount due). Missing only the concrete response structure/key names and failure modes, which are minor for a pure calculator.

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 the baseline is 3. The description does add meaning to the nested line-item fields (quantity, unit price, item discount, VAT rate) and its mention of 'amount due' implicitly ties to 'bereits_bezahlt', but it never explains the effect of 'preise_brutto' (gross vs net unit prices) beyond the schema's own label.

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 ('Computes invoice totals from line items') and enumerates the exact outputs produced, so the agent knows precisely what the tool returns. It does not explicitly differentiate itself from the generic sibling 'rechnen', which keeps it short of a 5.

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?

Usage is only implied by the domain framing ('Rechnungsrechner') and the item-level input model. There is no explicit statement of when to prefer this over the generic calculator sibling, nor any prerequisite or exclusion guidance.

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