Skip to main content
Glama

Bps stock at date

bps_stock_at_date
Read-only

BPS-Bestand zum Stichtag (Tagesende Europe/Berlin) je Artikel mit Bewertung zum Einkaufspreis, z. B. Inventur 31.12.2025 fuer den Jahresabschluss. Liegt ein Snapshot vor: dessen Wert. Sonst Rueckrechnung = Bestand erster Snapshot + Ausgaenge(Stichtag..Snapshot) − Eingaenge(Stichtag..Snapshot). BPS liefert keine Wareneingaenge: ohne Parameter inbound ist das Ergebnis eine OBERGRENZE (kenntlich in ergebnis_art/hinweise). Einkaufspreis: purchase_prices (Parameter) > bps_artikel.ek > lieferant_artikel.ek der Basis-EAN × Packungsgroesse; sonst ek=null, ek_quelle 'kein Einkaufspreis im System', Wert leer. Voraussetzung: bps_sync 'voll' (Auftraege + Bestand). Nur lesend.

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": {
      "date": "<date>"
    },
    "name": "bps_stock_at_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesStichtag YYYY-MM-DD, z. B. 2025-12-31
limitNoZeilen, Vorgabe 2000 (Summe immer ueber alle)
barcodeNo
inboundNoWareneingaenge (auch Retouren) zwischen Stichtag und erstem Snapshot, z. B. aus dem BPS-Portal-Export
store_idNo
nur_mit_bestandNoZeilen mit Bestand 0 weglassen
purchase_pricesNoEinkaufspreise netto je Barcode (gehen vor gespeicherte)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly annotation, the description discloses the calculation method, snapshot precedence, the upper-bound caveat when inbound is omitted, the purchase-price fallback chain, and the sync prerequisite. These are substantive behavioral details an agent needs before invoking the tool.

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 description is front-loaded and dense with relevant domain logic rather than filler. It is semicolon-heavy and repeats the read-only fact already in annotations, but almost every sentence contributes useful behavior.

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?

For a complex 7-parameter tool with no output schema, it covers calculation logic, prerequisites, price fallback, and partial result semantics. It does not fully describe the return shape or explicitly contrast with sibling stock tools, leaving a modest completeness gap.

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 71%, and the description adds important meaning for inbound (without it the result is an upper bound) and purchase_prices (precedence over stored purchase prices). It leaves barcode and store_id largely to the schema, which is acceptable given the coverage level.

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 resource and scope: BPS stock at a cutoff date, valued at purchase price, with explicit snapshot vs. back-calculation behavior. It is clearly more specific than the sibling name bps_stock and gives an example use case (inventory at 31.12.2025).

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 provides clear usage context: year-end inventory, snapshot preference, and the prerequisite bps_sync 'voll'. It does not explicitly say when to use bps_stock or bps_movements instead, so it lacks full alternative routing.

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