Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_order_profit

Read-onlyIdempotent

Calculate ecommerce, wholesale and viral-order contribution margin from selling price, cost, delivery, payment/platform fees, ads and units. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

Input Schema

NameRequiredDescriptionDefault
ordersNoNumber of orders, default 1
unit_costYesGoods cost per order
ads_per_orderNoAd spend attributed per order, default 0
selling_priceYesSelling price per fulfilled order
shipping_costNoShipping and packing cost per order, default 0
platform_fee_pctNoPercentage platform/payment fee on selling price, default 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources