Skip to main content
Glama

Sync marketplace stock

sync_marketplace_stock

Bestand der Hood-, eBay-, Kaufland-, OTTO- bzw. Amazon-Angebote aus dem BPS-Lager abgleichen (Kaufland/OTTO: Angebote per EAN/SKU aus schritt lesen; Amazon: eigene aktive Artikel mit SKU), damit Ausverkauftes nicht online bleibt. Angebote werden per EAN dem BPS-Artikel zugeordnet; Soll = freie Stueck (lose + Packungen × Groesse) minus offene, noch nicht an BPS gegebene Bestellungen aller BPS-Shops (bezahlt; unbezahlt 48 h). Nach jedem Bestellimport senkt der Abgleich die verkauften Artikel automatisch. Geaendert werden nur Angebote mit BPS-Artikel, deren Hood-Menge abweicht oder die bei 0 nicht ausgeblendet werden (ifIsSoldOut endless → hide); Angebote ohne BPS-Artikel bleiben unveraendert (Anzahl wird gemeldet). schritt 'lesen' frischt zuerst die Angebotsliste von Hood auf (neue Angebote per itemDetail, max je Aufruf). Vorgabe dry_run=true: Zusammenfassung und Beispiele, schreibt nichts. dry_run=false = Freigabe (Hood itemUpdate, je 5). nur_ausverkauft=true meldet nur die mit Bestand 0. Nur Inhaber/Admins.

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": {
      "store_id": "<store_id>"
    },
    "name": "sync_marketplace_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNomax. Aenderungen je Aufruf, Vorgabe 500
dry_runNoVorgabe true (Probelauf)
schrittNoVorgabe abgleich
store_idYes
max_lesenNonur schritt lesen: Angebote per itemDetail, Vorgabe 100, max 300
marktplatzNoVorgabe hood. eBay: SKU (alte Produktnummer) → EAN ueber Hood-Angebote/Altbestellungen; Menge 0 blendet aus (Out-of-stock-Control), beendet nicht
nur_ausverkauftNo
ohne_quelle_ausblendenNoauch Angebote ohne BPS-Artikel auf 0 + ausblenden, wenn die EAN bei keinem Lieferanten und in keinem Shop vorkommt (nicht lieferbar); Vorgabe false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses exactly which records get mutated (only listings that have a BPS article and whose Hood quantity differs or that aren't hidden at 0 via ifIsSoldOut endless → hide), which are left untouched (listings without a BPS article, count reported back), and permission requirements. It also gives concrete throughput limits (500 changes per call, itemUpdate in batches of 5, max_lesen 100/300), which the annotations do not cover. No contradiction with readOnlyHint=false, destructiveHint=false or idempotentHint=false.

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 purpose is front-loaded in the first clause and nearly every sentence carries operational information (formula, mutation scope, dry-run semantics, limits). However, it is a single dense run-on paragraph with heavy parenthetical nesting, which costs readability for a tool with eight parameters.

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 an eight-parameter, multi-marketplace write operation with no output schema, the description covers scope, safety model, permissions, batching limits and the dry-run report ('Zusammenfassung und Beispiele'). What it lacks is any statement about error or partial-failure behavior across the five marketplaces, which matters for a non-idempotent (idempotentHint=false) sync.

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 75%, so the schema already documents most parameters. The description still adds real meaning: dry_run's default and its no-write guarantee, the 500-change cap for limit, what schritt 'lesen' actually refreshes (Hood listing list via itemDetail), the eBay SKU→EAN mapping path, and that setting quantity 0 hides but does not end a listing. Those are operational details the schema alone doesn't convey.

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?

The description names a concrete verb and resource: it balances ('abgleichen') marketplace listing stock for Hood, eBay, Kaufland, OTTO and Amazon against BPS warehouse stock so sold-out items don't stay online. It even explains the target-quantity formula (free pieces minus open paid orders, 48h for unpaid), so an agent can tell it apart from a generic listing updater. It never explicitly contrasts itself with siblings like bps_sync or sync_shop_connection, so it falls 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 Guidelines4/5

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

The description states the operational trigger ('Nach jedem Bestellimport senkt der Abgleich die verkauften Artikel automatisch') and the safe workflow (dry_run=true gives a summary and examples, dry_run=false is the release). It also states a hard prerequisite ('Nur Inhaber/Admins'). There is no explicit statement of when NOT to use it or which sibling tool to use instead, which keeps it from a 5.

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