Calculate fees and profit
calculate_feesCalculate the seller fees, net payout, profit, margin and ROI for selling one item at a given price on one US marketplace, itemized fee by fee from the marketplace's official fee schedule. For Amazon FBA and Walmart WFS, include package dimensions to add fulfillment fees.
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": {
"marketplace": "<marketplace>",
"sale_price": "<sale_price>"
},
"name": "calculate_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | summary (default) returns totals and fee lines; full returns the complete REST response. | summary |
| options | No | Marketplace-specific options (e.g. ebay store_subscription, etsy offsite_ads_percent). See list_marketplaces for names and values. | |
| package | No | Packaged unit dimensions (inches) and unit weight (pounds), used to determine the fulfillment size tier, dimensional weight (L x W x H / 139) and shipping weight. Required for amazon_fba and walmart_wfs. | |
| category | No | Fee category; valid values depend on marketplace. amazon_fbm: default, 3d_printers, amazon_device_accessories, appliances_compact, appliances_full_size, automotive, baby, backpacks_handbags_luggage, base_equipment_power_tools, beauty, industrial, clothing_accessories, computers, consumer_electronics, electronics_accessories, eyewear, footwear, furniture, gift_cards, grocery, home_kitchen, jewelry, lawn_garden, lawn_mowers_snow_throwers, mattresses, media, merchant_fulfilled_services, musical_instruments_av, office_products, pet_supplies, pet_veterinary_diets, sports_outdoors, tires, tools_home_improvement, toys_games, video_games_accessories, video_game_consoles, watches | amazon_fba: default, 3d_printers, amazon_device_accessories, appliances_compact, appliances_full_size, automotive, baby, backpacks_handbags_luggage, base_equipment_power_tools, beauty, industrial, clothing_accessories, computers, consumer_electronics, electronics_accessories, eyewear, footwear, furniture, gift_cards, grocery, home_kitchen, jewelry, lawn_garden, lawn_mowers_snow_throwers, mattresses, media, merchant_fulfilled_services, musical_instruments_av, office_products, pet_supplies, pet_veterinary_diets, sports_outdoors, tires, tools_home_improvement, toys_games, video_games_accessories, video_game_consoles, watches | walmart: default, apparel, appliances_compact, appliances_major, automotive, baby, base_power_tools, beauty, books, camera_photo, collectibles, consumer_electronics, electronics_accessories, furniture, grocery, home_kitchen_decor_garden, industrial_scientific, jewelry_precious_metals, luggage_travel, music, musical_instruments, office_products, printer_cartridges, outdoor_power_tools, outdoors_sports, outdoor_optics, personal_computers, pet_supplies, plumbing_hvac, shoes_handbags_backpacks_sunglasses, software_video_games, tires_wheels, tools_home_improvement, toys_games, video_dvd, video_game_consoles, watches | walmart_wfs: default, apparel, appliances_compact, appliances_major, automotive, baby, base_power_tools, beauty, books, camera_photo, collectibles, consumer_electronics, electronics_accessories, furniture, grocery, home_kitchen_decor_garden, industrial_scientific, jewelry_precious_metals, luggage_travel, music, musical_instruments, office_products, printer_cartridges, outdoor_power_tools, outdoors_sports, outdoor_optics, personal_computers, pet_supplies, plumbing_hvac, shoes_handbags_backpacks_sunglasses, software_video_games, tires_wheels, tools_home_improvement, toys_games, video_dvd, video_game_consoles, watches | ebay: default, electronics, clothing, books_media, vinyl_records, guitars, jewelry, watches, handbags, athletic_shoes | tiktok_shop: default, jewelry_precious, jewelry_other, collectibles, pre_owned | etsy: default | facebook_marketplace: default | poshmark: default | mercari: default | depop: default | stockx: default | default |
| item_cost | No | Seller's cost of the item, in USD. Default 0. | |
| sale_price | Yes | Item price the buyer pays, in USD, excluding shipping and tax. | |
| marketplace | Yes | amazon_fbm = Amazon (Fulfilled by Merchant); amazon_fba = Amazon (Fulfilled by Amazon); walmart = Walmart Marketplace; walmart_wfs = Walmart Marketplace (Walmart Fulfillment Services); ebay = eBay; tiktok_shop = TikTok Shop (US); etsy = Etsy; facebook_marketplace = Facebook Marketplace; poshmark = Poshmark; mercari = Mercari; depop = Depop (US); stockx = StockX (Verified Marketplace) | |
| other_costs | No | Other per-item costs (packaging, ads, etc.), in USD. Default 0. | |
| shipping_cost | No | Seller's shipping label cost, in USD. Default 0. | |
| fulfillment_date | No | amazon_fba only: ship date (YYYY-MM-DD) that selects the FBA rate card. Defaults to today (UTC). Range 2026-01-15 to 2027-10-14. | |
| shipping_charged | No | Shipping the buyer pays, in USD. Default 0. | |
| estimated_sales_tax | No | Sales tax collected from the buyer, in USD (some marketplaces charge fees on it). Default 0. |