Skip to main content
Glama

EasyStore MCP by usefulapi

Set inventory level

easystore_set_inventory_level
DestructiveIdempotent

WRITE. Set the stock of one variant at one location to an exact number (quantity 0 or more). Omit location_id for the primary location. Overwrites the current quantity; use easystore_adjust_inventory_level for a relative change. Needs write_products. PUT /api/4.0/inventory_levels/set.json.

Input Schema

NameRequiredDescriptionDefault
quantityYesThe exact available quantity to set.
variant_idYesVariant id (see easystore_list_product_variants).
location_idNoLocation id (see easystore_list_locations). Default: the primary location.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description reinforces this with "Overwrites the current quantity" plus the write_products permission requirement and the concrete endpoint. It stops short of describing the response body or error modes, which keeps it from a 5.

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?

Front-loaded with the "WRITE" marker and the core operation, then the alternative, then the auth and endpoint. No sentence is wasted and nothing important is buried.

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 three-parameter, two-required write tool with no output schema, the description covers action, scope, defaulting, auth, and the destructive overwrite semantics. The only gap is what the call returns, which is minor since no output schema is promised.

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 quantity bounds, variant_id, and the primary-location default are all documented in the schema. The description repeats the location default and the 0-or-more bound but adds no format or semantic detail beyond that, so baseline 3 applies.

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 with exact scope: "Set the stock of one variant at one location to an exact number." The leading "WRITE" marker plus the contrast with the sibling adjust tool makes it unambiguous without opening the 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?

Explicitly names the alternative ("use easystore_adjust_inventory_level for a relative change") and the condition that selects it, plus the location_id omission behavior. An agent can route correctly from this sentence alone.

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.