{
  "slug": "profit-margin",
  "mcpServerUrl": "https://plugins-worker.demos.42a.ai/profit-margin/mcp",
  "interface": {
    "displayName": "Handy Profit Margin Calculator",
    "shortDescription": "Margin, markup and pricing",
    "longDescription": "Work out profit margin, markup and the right selling price, exactly, including marketplace and payment fees.\n\nGive any two of cost, price, margin or markup and the card solves the rest, with a clear split of the price into cost, fees and profit. Add percentage and per-unit fees (card processing, marketplace referral fees) to see your real net margin, fixed costs to see break-even units and revenue, and test discounts to see the new margin and how many more sales you need to earn the same profit. Or start from a cost and a target margin to get the lowest price that hits it after fees, with charm-price options like 19.99 and their exact margins.\n\nSliders for price and percentage off update the numbers instantly, and a CSV table shows margin at a range of price points. Margin vs markup is spelled out every time, so the two never get mixed up.",
    "category": "Finance",
    "defaultPrompt": [
      "I buy a product for $40 and sell it for $65. What is my margin and markup?",
      "What price do I need for a 60% margin on an $18 item after a 15% marketplace fee?",
      "Cost $30, price $50: what happens to my margin with a 20% discount?"
    ],
    "capabilities": [
      "Solves cost, price, margin or markup from any two",
      "Net margin after percentage and per-unit fees",
      "Break-even units and revenue from fixed costs",
      "Discount impact and the sales lift needed",
      "Price for a target margin, with charm prices",
      "Price and discount sliders; CSV price table"
    ],
    "logo": "https://plugins-worker.demos.42a.ai/profit-margin/icon.svg",
    "websiteURL": "https://plugins-worker.demos.42a.ai/profit-margin/",
    "supportURL": "https://plugins-worker.demos.42a.ai/support",
    "privacyPolicyURL": "https://plugins-worker.demos.42a.ai/privacy",
    "termsOfServiceURL": "https://plugins-worker.demos.42a.ai/terms",
    "developerName": "42a"
  },
  "keywords": [
    "profit margin calculator",
    "margin calculator",
    "markup calculator",
    "margin vs markup",
    "what price for 40% margin",
    "gross margin",
    "break even calculator",
    "pricing calculator",
    "net margin after fees"
  ],
  "tools": [
    {
      "name": "calculate_margin",
      "title": "Calculate margin",
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "price_for_margin",
      "title": "Price for a target margin",
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    }
  ],
  "dataSources": [],
  "review": {
    "positiveTestCases": [
      {
        "description": "Margin and markup from cost and price",
        "prompt": "I buy a product for $40 and sell it for $65. What is my margin and markup?",
        "tools_triggered": [
          "calculate_margin"
        ],
        "expected_behavior": "$25 profit per unit: 38.46% margin and 62.5% markup."
      },
      {
        "description": "Price from a cost and a target margin",
        "prompt": "My cost is $12 and I want a 40% margin. What price, and what markup is that?",
        "tools_triggered": [
          "calculate_margin"
        ],
        "expected_behavior": "Price $20.00, $8 profit, which is a 66.67% markup."
      },
      {
        "description": "Net margin after payment fees",
        "prompt": "I sell an online course for $49.99, it costs me $18.50 per student, and card processing takes 2.9% + $0.30. Net margin?",
        "tools_triggered": [
          "calculate_margin"
        ],
        "expected_behavior": "Fees $1.75 per sale; net profit $29.74 and net margin 59.49% (gross margin 62.99%)."
      },
      {
        "description": "Discount impact and break-even",
        "prompt": "Cost $30, price $50, I sell about 400 a month with $5,000 fixed costs. What does a 20% discount do to my margin, and where do I break even?",
        "tools_triggered": [
          "calculate_margin"
        ],
        "expected_behavior": "40% margin now; break-even at 250 units. A 20% discount cuts the margin to 25% and needs 100% more sales (800 units) for the same profit."
      },
      {
        "description": "Price for a margin after a marketplace fee",
        "prompt": "What price do I need for a 60% margin on an $18 item after a 15% marketplace referral fee?",
        "tools_triggered": [
          "price_for_margin"
        ],
        "expected_behavior": "At least $72.00 (18 ÷ (1 - 0.15 - 0.60)); charm price $72.99 gives a 60.34% margin."
      }
    ],
    "negativeTestCases": [
      {
        "prompt": "How much sales tax is on a $200 purchase in Texas?",
        "expected_behavior": "Does not call Handy Profit Margin Calculator: Sales tax is a different calculation."
      },
      {
        "prompt": "What return did my stock make if I bought at $40 and sold at $65?",
        "expected_behavior": "Does not call Handy Profit Margin Calculator: Investment return, not a product margin."
      },
      {
        "prompt": "Write a pricing page for my SaaS product.",
        "expected_behavior": "Does not call Handy Profit Margin Calculator: Copywriting needs no margin maths."
      }
    ]
  }
}