Skip to main content
Glama

Loyverse MCP by usefulapi

Set inventory levels

loyverse_set_inventory_levels
Destructive

Set the ABSOLUTE stock (stock_after) of one or more variants at given stores — e.g. after a stock count. This overwrites the current level rather than adding to it; read the current levels with loyverse_list_inventory first so they can be restored. Loyverse: POST /inventory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inventory_levelsYesThe stock levels to set.

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
Behavior4/5

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

Annotations declare destructiveHint=true, so the danger signal is already present; the description adds real value on top by explaining that this overwrites rather than adds and advising a pre-read so levels can be restored. It stops short of covering rate limits, partial-failure behavior on large batches, or what the call returns, so it is strong but not exhaustive.

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?

Three tight sentences with no redundancy; the absolute/overwrite constraint is front-loaded before the recovery advice, and the endpoint note is a compact implementation anchor rather than padding.

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?

With no output schema, the description still supplies the operationally critical facts: absolute semantics, the destructive overwrite, and the pre-read recovery step. It omits return shape and multi-item failure semantics for the up-to-250 array, which are minor gaps for a single-parameter tool.

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 100%, so the schema already documents store_id, variant_id and stock_after, giving a baseline of 3. The description earns an extra point by nailing down the semantics of stock_after as an absolute target level rather than a delta, which is the one interpretation an agent could plausibly get wrong.

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 ('Set the ABSOLUTE stock of one or more variants at given stores') with the concrete example of a stock count, and the word 'absolute' immediately separates it from any incremental/upsert sibling. An agent can distinguish it from loyverse_list_inventory without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit trigger ('e.g. after a stock count'), names the read counterpart ('read the current levels with loyverse_list_inventory first'), and states the overwrite-vs-add distinction that determines whether this tool is the right one. Nothing about when to choose it is left to inference.

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.