Marginrule pricing agent
v0.3.2Fee-accurate prices, fees and payouts for Payhip, Ko-fi, Gumroad, Etsy and more. US sellers. Free.
Endpoint health
online- Last checked
- 11/20/2026, 4:16:05 AM
- Latency
- 204 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:com.marginrule%2Fpricing
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"com.marginrule/pricing": {
"url": "https://mcp.marginrule.com/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
5 shown · authentication unknown
Fee data version and sources
data_version
Dataset version, fees-as-of date per platform and processor, SHA-256 of the embedded fee data and engine, and every source URL. Use it to cite or cache answers.
Schema valid · SHA-256 a56cc00e1563…
View input schema
{ "type": "object", "properties": {}, "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false }What a discount does to fees and profit
discount_impact
Effect of a percentage or fixed-dollar discount (a sale or promo code) on one item: discounted price, fees and profit at list and at the discounted price, the profit lost per sale, and how many discounted sales it takes to earn the same profit as 100 sales at list. With an optional target_margin it also returns the deepest discount that still keeps that margin after fees. Rates and margins are FRACTIONS (0.25 = 25% off). US sellers only. Read-only; sells nothing.
Schema valid · SHA-256 9015d1ccbe80…
View input schema
{ "type": "object", "properties": { "platform": { "type": "string", "enum": [ "etsy", "shopify-basic", "payhip-free", "payhip-plus", "payhip-pro", "gumroad-direct", "gumroad-discover", "ko-fi-shop", "notion-marketplace", "square-online", "square-in-person" ], "description": "Platform and plan id from list_platforms, e.g. \"etsy\", \"payhip-free\", \"gumroad-direct\", \"ko-fi-shop\"." }, "list_price": { "type": "number", "minimum": 0.01, "maximum": 1000000000, "description": "Regular price in USD before the discount and before buyer sales tax, in whole cents, e.g. 20." }, "cost": { "type": "number", "minimum": 0, "maximum": 1000000000, "description": "Optional cost per item in USD, so profit and margin are included. Default 0." }, "discount_rate": { "description": "Percentage off as a FRACTION: 0.25 means 25% off, used to 6 decimals. Send this OR discount_usd, not both. The dollar amount off is rounded to the cent, half away from zero.", "type": "number", "exclusiveMinimum": 0, "exclusiveMaximum": 1 }, "discount_usd": { "description": "Fixed dollars off per item, in whole cents, e.g. 5. Send this OR discount_rate, not both.", "type": "number", "exclusiveMinimum": 0, "maximum": 1000000000 }, "target_margin": { "description": "Optional target profit margin as a FRACTION (0.30 = 30%). If sent, the answer also gives the deepest discount off list_price that still keeps it, and whether this discount keeps it.", "type": "number", "minimum": 0, "exclusiveMaximum": 1 }, "processor": { "description": "Card processor for platforms where the seller adds their own (Payhip plans, Ko-fi Shop). \"stripe\" = 2.9% + $0.30 (default). \"paypal\" = PayPal Checkout or Guest Checkout, 3.49% + $0.49. Ignored, with a note, for platforms that charge their own processing (Etsy, Shopify, Gumroad, Notion, Square).", "type": "string", "enum": [ "stripe", "paypal" ] }, "region": { "description": "Buyer location relative to a US seller. \"us\" (default) = domestic. \"international\" is only modelled with processor \"paypal\" (adds PayPal's 1.50% international fee, so 4.99% + $0.49); other combinations return an error rather than a guess.", "type": "string", "enum": [ "us", "international" ] }, "buyer_tax_rate": { "description": "Buyer's sales tax as a FRACTION, e.g. 0.07 for 7%. Default 0. Tax is never profit; it only raises card processing on platforms that charge processing on the tax-inclusive total (see each platform's tax_base).", "type": "number", "minimum": 0, "exclusiveMaximum": 1 }, "processor_rate": { "description": "Advanced override: your own card processor percentage as a FRACTION (0.029 = 2.9%). Only for platforms where the seller adds their own processor. Replaces the preset's rate.", "type": "number", "minimum": 0, "maximum": 0.2 }, "processor_fixed_usd": { "description": "Advanced override: your card processor's fixed fee per sale in USD, e.g. 0.30. Replaces the preset's fixed fee.", "type": "number", "minimum": 0, "maximum": 5 } }, "required": [ "platform", "list_price" ], "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false }
Connections
streamable-http
https://mcp.marginrule.com/mcp