Skip to main content
Glama

calculate_fees

Read-onlyIdempotent

Use when you already know WHICH marketplace a trading card will sell on and need its itemized seller fees, payout fee and net profit. Inputs: marketplace id (see list_marketplaces) and sale price, optional shipping, cost basis, tax rate and payout method. Read-only; returns fee lines, net profit, warnings, and an assumptions block naming every fee figure, payout fee, shipping rule and source used. Unpublished payout fees are null and flagged unverified. For comparing all sites use best_place; for buy-then-resell use evaluate_flip.

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>",
      "price": "<price>"
    },
    "name": "calculate_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault
vipNo
priceYesSale price (USD)
gradedNo
taxRateNoBuyer sales tax rate, e.g. 0.08 (affects eBay/TCGplayer/Whatnot fees)
costBasisNoWhat you paid for the item
comcServiceNo
marketplaceYes
payoutMethodNoHow you get paid. ebay: standard|express|ebay_balance; comc: paypal|check|store_credit; fanatics: cash|fancash; arenaclub: bank|debit_instant|wallet; tcgplayer: direct_deposit|paypal_international; whatnot: bank
shippingCostNoYour actual postage cost
shippingChargedNoShipping charged to buyer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is established. The description adds real value beyond that: it discloses the return payload (fee lines, net profit, warnings, an assumptions block naming every source) and the unverified-payout-fee behavior. It does not discuss caching, precision/rounding of currency values, or error handling for an unsupported marketplace/payout combination, so it stops short of full behavioral disclosure.

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?

Front-loaded with the when-to-use condition, then inputs, then return behavior, then sibling routing in one closing sentence. Dense but every sentence carries information; only the input enumeration partially restates the schema.

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, the description correctly takes on the burden of describing return values, warnings and the assumptions block, and it flags null/unverified payout fees. The residual gap is that vip, graded and comcService appear in the schema with no explanation anywhere, which matters for a tool whose fee math is tier-dependent.

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 60%, below the high-coverage baseline, and the description only glosses the inputs (marketplace id, sale price, optional shipping, cost basis, tax rate, payout method). It adds the useful cross-reference to list_marketplaces for the id, but three enum/boolean parameters (vip, graded, comcService) are undocumented in both schema and description, leaving real gaps.

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?

The description opens with a precise condition and verb-resource pair: compute itemized seller fees, payout fee and net profit for a known marketplace. It explicitly contrasts with siblings best_place (comparison across sites) and evaluate_flip (buy-then-resell), so an agent can separate the three tools without opening schemas.

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?

States the exact precondition for use (you already know which marketplace) and names the two alternative tools plus the condition that selects each. It also routes the agent to list_marketplaces for valid marketplace ids, covering the prerequisite step before invoking.

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