Skip to main content
Glama

Price for a target payout

price_for_target

Calculate the minimum sale price, rounded up to the cent, that nets your target amount after fees on Gumroad, Stripe, PayPal, or Etsy.

Instructions

Lowest price (rounded up to the cent) that leaves at least the target amount after 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": {
      "platform": "<platform>",
      "target": "<target>"
    },
    "name": "price_for_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoEtsy: items in the order
typeNoPayPal payment type (default checkout)
targetYesAmount you want to keep per sale, USD
discoverNoGumroad: sale came through Gumroad Discover (flat 30%, processing included)
platformYes
shippingNoEtsy: shipping charged to the buyer
extra_pctNoStripe: extra % for international cards or currency conversion
gift_wrapNoEtsy: gift wrap charged
label_costNoEtsy: shipping label cost
processingNoGumroad direct: add card processing 2.9% + $0.30 (default card)
high_volumeNoGumroad: 5% + $0.50 tier (paid sales this calendar month reached $20,000)
offsite_adsNoEtsy: Offsite Ads fee (std 15%, low 12%)
cost_per_itemNoEtsy: your cost per item
internationalNoPayPal: international buyer (+1.50%)
sales_tax_pctNoEtsy: sales tax % on the order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a genuinely useful behavior: rounding up to the cent and guaranteeing 'at least' the target (a conservative, never-short result). It does not state that the operation is side-effect free, nor what the output form is, so the disclosure is partial.

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 sentence, front-loaded with the core computation and immediately qualified with the rounding/guarantee caveat. Nothing is wasted and nothing important is buried.

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

Completeness3/5

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

For a 15-parameter tool spanning four platforms with conditional fields, the description says nothing about platform-varying fee models, but the schema's per-parameter platform notes carry that load. No output schema exists, yet the description effectively states the returned quantity and its rounding, so the core gap is the absence of cross-platform behavioral framing.

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 93%, so the schema already documents all 15 parameters, including which platform each applies to. The description adds no parameter meaning beyond that, so baseline 3 is appropriate.

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 computation — the lowest price that leaves at least the target amount after fees — with a clear rounding policy. This makes it distinguishable in spirit from a forward fee calculator, but it never names or contrasts the siblings (fee, payout) that an agent must choose between.

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?

Usage is implied by the framing: use this when you have a desired take-home and need the gross price to charge. There is no explicit when-to-use/when-not guidance and no routing against fee, payout, or compare, so the agent must infer the selection criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools