Skip to main content
Glama

Resale IQ

The most to pay for an item you plan to resell

calculate_max_buy_price
Read-onlyIdempotent

Given the price you expect to resell at, the marketplace and the profit you want to keep, return the most you can pay for the item after the platform's fees and your shipping. Pure arithmetic on the published fee schedule; it does not look up market prices (use check_vinted_item for that).

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": {
      "resale_price": "<resale_price>"
    },
    "name": "calculate_max_buy_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNoMarketplace you will sell on (default vinted-eu)
resale_priceYesPrice you expect to sell at, in the platform's currency
shipping_paidNoWhat you pay for the label (default 0)
target_profitNoProfit you want to keep on this item (default 0, which gives the break-even buy price)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the bar is lower; the description still adds real value by declaring the computation is 'pure arithmetic on the published fee schedule' and performs no external lookup. It does not mention platform-availability failures or what happens when fees exceed the resale price, which would have earned a 5.

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 defines the inputs and the returned figure, with the exclusion parenthetical placed after the core statement. No restatement of the title or filler.

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?

With no output schema present, the description does carry the burden of explaining the return, and it does so conceptually ('the most you can pay for the item after fees and shipping'). It stops short of describing the response shape (bare number vs. a fee breakdown), which is the one remaining gap for a computation tool.

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 coverage is 100% with per-parameter descriptions and enum values, so the baseline is 3; the description goes slightly beyond by clarifying that shipping_paid is the seller's label cost and that the fee deduction happens before the target profit is retained. It does not restate defaults or units, which the schema already covers.

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?

States a specific computed output (the maximum buy price) from named inputs (resale price, marketplace, desired profit) and explicitly contrasts itself with the sibling that looks up market data, so an agent can distinguish it from check_vinted_item 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 Guidelines5/5

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

Gives the invocation condition implicitly by naming the inputs the caller must already know, and explicitly excludes the market-lookup case with a named alternative ('use check_vinted_item for that'). The boundary between 'pricing arithmetic' and 'price discovery' is unambiguous.

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