Skip to main content
Glama

set_item_price_cents

DestructiveIdempotent

Update an item's price in cents using optimistic locking: provide the expected current price to prevent stale overwrites, and optionally preview changes with dry_run.

Instructions

Modifies merchant data. Set an item's price (in cents, absolute value).

Optimistic lock: refuses the write unless the item's current price equals expected_current_price_cents (prevents stale-context overwrites). Bounds: 0 <= new_price_cents <= 100_000_000. dry_run=True previews the PUT body (still performs one read to fetch current price/name) and never writes. Requires INVENTORY_R and INVENTORY_W.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo
item_idYes
new_price_centsYes
expected_current_price_centsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond the annotations (which already mark it as destructive and idempotent), the description discloses the optimistic lock mechanism, the absolute price bounds, the dry_run semantics (still performs a read but never writes), and permission requirements. This provides substantial behavioral detail that annotations alone do not convey.

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?

The description is succinct yet information-dense. It opens with the core purpose, then uses bullet-like lines for the lock, bounds, dry_run, and permissions. Every sentence contributes necessary behavioral or semantic detail with no fluff.

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

Completeness5/5

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

For a mutation tool with optimistic locking, the description covers all critical aspects: the write semantics, the stale-context protection, the range constraints, the dry_run option, and required scopes. An output schema exists, so return values need not be described. The description is fully sufficient for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 0%, the description fully compensates by explaining the meaning of each parameter: item_id (implicit), new_price_cents (bounds defined), expected_current_price_cents (used for optimistic lock), and dry_run (preview mode). This goes far beyond the bare schema, making parameter usage clear.

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 clearly states 'Set an item's price (in cents, absolute value)', identifying the exact verb, resource, and unit. It distinguishes from sibling tools like set_item_stock_quantity or update_item_name by focusing on price modification, making the tool's purpose unambiguous.

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 gives clear context for use: it specifies the optimistic locking requirement, the valid price bounds, the dry_run preview behavior, and required permissions (INVENTORY_R and INVENTORY_W). It does not explicitly name alternatives or exclude other tools, but the guidance is strong enough for an agent to know when this tool is appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SBolivarLoL/clover-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server