Skip to main content
Glama

Takehome eBay Fee & Profit Calculator

eBay price for a target profit

ebay_price_for_target_profit
Read-onlyIdempotent

The lowest item price (to the cent) that reaches a target profit in dollars or a target margin in percent on eBay.com (US), after all eBay fees and costs. Use target_profit 0 for the break-even price.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ebay_price_for_target_profit"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNoeBay Store subscription: none, starter, basic, premium, anchor or enterprise. Default none.none
categoryNoeBay category key. See ebay_fee_rates for the list. Default most_categories.most_categories
quantityNoNumber of identical items in the order. Default 1.
item_costNoWhat one item cost the seller, in dollars. Default 0.
other_costsNoPackaging, supplies or other costs for this order, in dollars. Default 0.
seller_levelNoBelow Standard seller surcharge, if any. Default none.none
insertion_feeNoInsertion fee in dollars, only if the free listing allowance is used up (often $0.35). Default 0.
internationalNoTrue for an international sale that does not use eBay International Shipping (1.65% fee).
sales_tax_pctNoBuyer's sales tax rate in percent (eBay charges fees on it too). Typical US range 5-10. Default 0.
target_profitNoTarget profit per order in dollars. 0 means break-even.
top_rated_plusNoTrue if the listing gets the Top Rated Plus 10% final value fee discount.
shipping_chargedNoShipping the buyer paid, in dollars. 0 for free shipping. Default 0.
target_margin_pctNoTarget margin in percent of item price + shipping. Use instead of target_profit.
shipping_label_costNoWhat the seller paid for the shipping label, in dollars. Default 0.
item_not_as_describedNoSurcharge for a Very High 'item not as described' rate in this category. Default none.none
promoted_listings_pctNoPromoted Listings (general) ad rate in percent, if the sale came from an ad. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish it as read-only, idempotent, non-destructive, and not open-world. The description adds the fee/cost basis and cent-level output, but does not discuss assumptions, rate validity, or edge cases.

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?

Two sentences, front-loaded with output definition and fee basis, with no 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?

For a 16-parameter calculator, the rich schema covers inputs and the description clearly states the result. It is slightly incomplete on tool-selection guidance but adequate overall.

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 coverage is 100%, so all 16 parameters are already documented. The description only restates that target profit can be dollars or margin percent and mentions target_profit 0, adding little beyond schema.

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 states a specific computed output — the lowest item price to the cent that reaches a target profit or margin — and scopes it to eBay.com (US) after fees and costs. It is clear what the tool does, though it does not explicitly mention the sibling profit calculator or otherwise route between them.

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?

It implies the tool is for pricing when a target profit or margin is known, and gives the target_profit 0 break-even hint. But it does not explicitly say when to use this instead of ebay_profit_calculator or fee tools.

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