Skip to main content
Glama

grocy_stock_merge_products

DestructiveIdempotent

Merge two stock products by keeping one ID and removing the other; omit confirm for a dry-run preview and set confirm true to execute.

Instructions

Merge two products into one. POST /api/stock/products/{productIdToKeep}/merge/{productIdToRemove}. Omit confirm for a dry-run.

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": {
      "product_id_to_keep": "<product_id_to_keep>",
      "product_id_to_remove": "<product_id_to_remove>"
    },
    "name": "grocy_stock_merge_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected.
product_id_to_keepYes
product_id_to_removeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the agent knows the operation is a destructive write. The description adds the dry-run behavior, but it does not explain what 'merge' does to stock entries, lots, or the removed product, which is valuable context for a destructive operation.

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 three short sentences with no waste. The purpose is front-loaded, followed by the endpoint and the dry-run instruction in a logical order.

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 destructive merge operation with no output schema and incomplete parameter descriptions, the definition covers invocation basics but omits important context: what happens to the removed product's stock, whether the merge is reversible, and what a successful response contains. Annotations help with safety, but the description remains thin on consequences.

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 only 33%: the two product ID parameters have no descriptions. The description partially compensates by showing the path placeholders productIdToKeep and productIdToRemove, which clarify their roles, but it does not add meaning beyond the self-descriptive property names.

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 states a specific verb and resource: "Merge two products into one." This clearly distinguishes the tool from sibling stock operations such as transfer, consume, or inventory. An agent can identify the operation 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 Guidelines3/5

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

The description gives a concrete invocation guideline: "Omit confirm for a dry-run." However, it does not say when to choose this tool over alternatives such as stock transfer or product update, nor does it state exclusions or prerequisites. Usage is therefore implied rather than fully guided.

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