Skip to main content
Glama

Resale IQ

Selling fees and profit on one marketplace

calculate_resale_fees
Read-onlyIdempotent

Work out the selling fees, the payout and the profit of one sale on a resale marketplace (eBay US/UK/DE/FR/IT/ES/AU/CA, Vinted EU/UK, Depop, Poshmark, Mercari, Etsy, Grailed, Vestiaire Collective, Whatnot, Kleinanzeigen), from the platform's published fee schedule. Returns each fee line, total fees, net payout, profit, margin and the lowest sale price that breaks even, with the date the fees were read and the official source. Amounts are in the platform's own currency.

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": {
      "platform": "<platform>",
      "sale_price": "<sale_price>"
    },
    "name": "calculate_resale_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional fee category where the platform has one (the answer lists the ones available)
platformYesMarketplace and market
item_costNoWhat you paid for the item (default 0)
sale_priceYesPrice the item sells for, in the platform's currency
promoted_pctNoPromoted or boosted listing rate in % (default 0)
internationalNoInternational sale, where the platform charges an extra fee (default false)
shipping_paidNoWhat you pay for the label (default 0)
shipping_chargedNoShipping the buyer pays to you (default 0; 0 when the platform bills the buyer directly, as on Vinted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it read-only, idempotent, and non-destructive, but the description adds meaningful context: the official fee schedule source, fee-read date, returned fee lines, payout, profit, margin, break-even price, and currency. This is transparent behavior beyond the annotations without contradicting them.

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?

The definition is front-loaded and generally tight, with the core computation stated first. The long parenthetical platform list duplicates the schema enum and makes the opening sentence dense, though the remaining sentences earn their place.

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

Completeness5/5

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

Because there is no output schema, the description usefully explains return values, currency handling, and provenance. Together with annotations that cover safety, it gives an agent enough to invoke the tool correctly.

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%, so the baseline is 3. The description adds only currency context and platform coverage, while optional parameters such as promoted_pct, international, and shipping fields rely entirely on their schema descriptions.

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 precise verb and resource ('Work out the selling fees, the payout and the profit') and scopes it to 'one sale on a resale marketplace,' which separates it from lot-level and cross-platform siblings. It also names supported platforms and the fee-schedule basis.

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 intended context is clear: a single sale on one marketplace, using that platform's published fee schedule. However, it does not explicitly say when to choose this over calculate_lot_profit or compare_resale_platforms, nor does it state exclusions.

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