Skip to main content
Glama

run_inventory_sweep

Automates inventory maintenance by evaluating collection rarity, restocking low scouted finds, and optimizing stale pricing.

Instructions

Perform an automated inventory maintenance sweep (evaluates collection rarity, restocks scouted finds if low, optimizes stale pricing). Consumes 1 base Auto-Credit plus 1 credit per restocked item (up to 5).

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": "run_inventory_sweep"
  }
}

Input Schema

NameRequiredDescriptionDefault
store_idYesThe ID or slug of your store
items_to_scoutNoItems to scout if restocking (1 to 5, 1 credit per item)
min_inventory_targetNoMinimum active inventory target

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.0
    • changedInput schema / properties / items_to_scout / description
      Previous value: -"Items to scout if restocking"New value: +"Items to scout if restocking (1 to 5, 1 credit per item)"
  2. First observedv2.0.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden, and it does disclose the two most consequential behaviors: the credit cost model (1 base plus 1 per restocked item, capped at 5) and that the tool mutates inventory and pricing. It does not state what happens on insufficient credits, whether changes are reversible, or how the sweep reports outcomes.

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?

Two compact sentences; the action summary is front-loaded and the cost sentence is separated cleanly. The parenthetical of three sub-actions is dense but each clause carries distinct information, so there is little waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating, credit-consuming batch tool with no annotations and no output schema, the definition covers the essential cost and side-effect picture but leaves gaps: no return-value description and no failure or idempotency behavior. An agent could call it, but would be guessing at what it gets back.

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 description coverage is 100%, so all three parameters are already documented, which sets the baseline at 3. The description adds only a minor correlation between items_to_scout and the per-item credit cost, without explaining scouting behavior or how min_inventory_target interacts with restocking.

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 specific operation (automated inventory maintenance sweep) and enumerates the three sub-actions it performs: rarity evaluation, restocking scouted finds, and stale pricing optimization. That is well beyond a restatement of the name. It stops short of differentiating itself from siblings like run_pricing_audit or scout_store_items, whose functions partially overlap.

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?

The word 'automated' and 'maintenance sweep' imply a periodic batch operation rather than a targeted single-item action, which is implicit usage guidance. However, there is no explicit statement of when to call this versus run_pricing_audit (pricing-only) or scout_store_items (scouting-only), and no preconditions such as required credit balance are given.

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