Skip to main content
Glama

shelfsignal_margin_defense

Computes deterministic profit margin, floor price, max safe voucher, and recommended pricing action against competitor signals to defend margins.

Instructions

Compute deterministic profit margin, floor price, max safe voucher, and recommended pricing action against a competitor signal.

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": {
      "own_price": "<own_price>",
      "cogs": "<cogs>"
    },
    "name": "shelfsignal_margin_defense"
  }
}

Input Schema

NameRequiredDescriptionDefault
cogsYes
currencyNoUSD
own_priceYes
min_margin_pctNo
competitor_priceNo
fulfillment_costNo
platform_fee_pctNo
competitor_availabilityNoin_stock

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does contribute one meaningful trait: 'deterministic' signals a pure, side-effect-free calculation rather than a mutation, which is genuinely useful. It also names the four computed outputs, partially compensating for the absent output schema. However, it says nothing about error behavior when competitor_price is missing, how defaults (currency=USD, min_margin_pct=20, platform_fee_pct=3) alter the result, or any auth/rate considerations.

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?

A single front-loaded sentence starting with the verb, with no filler, hedging, or repetition. Every clause (deterministic, the four outputs, the competitor-signal context) adds information.

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

Completeness2/5

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

For an 8-parameter calculation tool with zero annotation coverage, no output schema, and no parameter documentation, the description is too thin: the agent knows what kinds of numbers come out but not how to populate the inputs, what the defaults imply, or what an edge case returns. It does not do enough to stand in for the missing structured metadata.

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

Parameters2/5

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

All 8 parameters have 0% schema description coverage, so the description must supply the meaning. It only gestures at the inputs through its output list (margin, floor price, voucher, competitor signal), leaving fulfillment_cost, platform_fee_pct, currency, min_margin_pct, and especially competitor_availability (a string with no enum) completely unexplained. An agent cannot tell what values are valid for competitor_availability or how fee and fulfillment inputs enter the calculation.

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?

The description opens with a concrete verb, 'Compute', and enumerates the concrete outputs: profit margin, floor price, max safe voucher, and recommended pricing action, plus the input context ('against a competitor signal'). That distinguishes it from the sibling fetch/list/match tools, which all retrieve data rather than calculate a decision. It stops short of 5 only because the term 'shelfsignal_margin_defense' itself carries meaning the description never unpacks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use statement, no prerequisites (e.g. requires own_price and cogs, optional competitor_price), and no exclusion or alternative named among the eight siblings. An agent can infer that this is the calculation tool rather than a data-retrieval tool, but it must guess the trigger conditions and whether competitor_price is optional.

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