Skip to main content
Glama

Resale IQ

Profit and break-even of a job lot or bale

calculate_lot_profit
Read-onlyIdempotent

For a job lot, bale or bundle bought to resell piece by piece: cost per piece, net per sale, how many pieces must sell to break even, and the profit at the expected sell-through rate and at 15 points below and above it.

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": {
      "lot_price": "<lot_price>",
      "pieces": "<pieces>",
      "avg_sale_price": "<avg_sale_price>"
    },
    "name": "calculate_lot_profit"
  }
}

Input Schema

NameRequiredDescriptionDefault
piecesYesNumber of pieces in the lot
fee_pctNoMarketplace fee in % of the sale price (default 0, as for private sellers on Vinted)
lot_priceYesPrice of the whole lot
sell_rate_pctNoShare of the pieces you expect to sell, in % (default 70)
avg_sale_priceYesAverage price you expect per piece sold
inbound_shippingNoShipping you pay to receive the lot (default 0)
shipping_per_pieceNoShipping you pay per piece sold (default 0)
other_cost_per_pieceNoOther cost per piece sold, such as packaging (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered without description help. The description adds real value by disclosing the computation set, including a sensitivity band at 15 points below and above the expected sell-through rate — a behavior an agent could not guess from the name. It still says nothing about defaults (fee_pct=0, sell_rate_pct=70) being applied silently, which materially changes results.

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 sentence that front-loads the scoping clause 'For a job lot, bale or bundle bought to resell piece by piece' before listing outputs. It is dense and largely waste-free, though the colon-and-comma list structure makes the output set slightly harder to scan than a short enumerated list would.

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?

With eight parameters, no output schema, and only three required, the description does a reasonable job of conveying what comes back, which partially compensates for the missing output schema. It is not complete, though: it omits that fee_pct and sell_rate_pct default silently, and it does not indicate how shipping and other per-piece costs fold into the net-per-sale figure.

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 100% with all eight parameters individually documented, including defaults and units, so the baseline of 3 applies. The description's phrase 'expected sell-through rate' loosely maps to sell_rate_pct but adds no format, default, or interpretation guidance beyond the schema. The 15-point sensitivity band is the only semantic addition, and it is about output, not inputs.

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 names the resource precisely (a job lot, bale or bundle bought to resell piece by piece) and enumerates the outputs: cost per piece, net per sale, break-even piece count, and profit at expected and shifted sell-through. That is far more specific than a restated title. It does not explicitly differentiate itself from siblings like calculate_max_buy_price or calculate_resale_fees, so it stops short of a 5.

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 opening clause 'bought to resell piece by piece' implies the applicable scenario (bulk sourcing for per-item resale), which is genuine usage context. However, there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool for single-item or fee-only calculations, so the agent must infer routing from sibling names alone.

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.

Resources