Skip to main content
Glama

Set the line mode of a tracked product

set_product_line_mode
DestructiveIdempotent

Sets what Sweeprice does with the prices of one tracked product: alert_only (watch and alert), repricing (recommend a price against the same marketplace), cross_marketplace (against every marketplace, Pro plan and up) or discovery (find the price buyers accept for a product with no direct competitor). With channelId, the mode applies to that marketplace only.

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": {
      "productId": "<productId>",
      "mode": "<mode>"
    },
    "name": "set_product_line_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
channelIdNo
productIdYes

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

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the mutation profile is known. The description adds beyond that: the plan-tier gate on cross_marketplace and the marketplace-scoping effect of channelId. It still does not say what happens to the prior mode or to price data when a mode is switched, which matters for a destructive write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that leads with the verb and resource, then spends its remaining length on necessary enum definitions. The parenthetical list is dense but every clause carries information; it could be split for readability but contains no filler.

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?

There is no output schema, so the description would need to say what the caller gets back or what state change occurs; it does not. For a destructive, idempotent write with three parameters at 0% schema coverage, an agent still lacks the return/confirmation picture and any guidance on invalid or downgraded mode combinations.

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 0%, so the description must carry parameter meaning. It explains mode exhaustively via its four enum values and gives channelId effect semantics ('the mode applies to that marketplace only'), but says nothing about productId, what a channelId is or how to obtain it, or whether omitting channelId applies the mode across all marketplaces.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Sets') and resource ('what Sweeprice does with the prices of one tracked product'), and the four named modes make the effect concrete. It does not name or contrast with siblings such as set_product_price_bounds, so the differentiation is inferred rather than stated.

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 parenthetical glosses for alert_only, repricing, cross_marketplace and discovery effectively tell an agent which mode fits which situation, and the 'Pro plan and up' note sets an eligibility precondition. It stops short of saying when to call this tool versus add_tracked_product or set_product_price_bounds.

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.