Skip to main content
Glama

open_product

Mark product stock as opened without consuming it, keeping expiration alerts accurate. Specify product name, barcode, or fragment and optional amount.

Instructions

Mark stock as opened, without consuming it.

Opened items usually keep for less time than the printed best-before date, so flagging them helps expiring_soon stay useful.

Args: product: Product name, description fragment, or barcode. amount: How many units were opened, in the product's stock unit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNo
productYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden; it discloses that this is a non-consuming status change and that it affects expiring_soon suggestions. It does not address reversibility or edge cases such as over-opening, but the core side effect is clearly stated.

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?

Every sentence serves a purpose: the first defines the action, the second justifies it, and the bulleted Args explain parameters. There is no filler and no repetition of schema metadata.

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 simple two-parameter tool with no annotations or output schema, the description gives enough to select and call it correctly: purpose, rationale, and parameter meaning. It omits return/undo details, but those are secondary for this operation.

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 description coverage is 0%, so the Args block is the only semantic source. It clarifies that product accepts a name, description fragment, or barcode, and that amount is denominated in the product's stock unit.

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 phrase 'Mark stock as opened' gives a concrete verb and resource, and 'without consuming it' explicitly separates it from the sibling consume_product. This is more specific than a generic 'open product' reading.

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?

It explains that opened items usually keep for less time than the printed best-before date and that flagging them helps expiring_soon stay useful, giving a clear use case. It stops short of naming an alternative like consume_product or listing explicit when-not-to-use conditions.

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