Skip to main content
Glama

FreightFA

Calculate freight margin

calculate_margin
Read-onlyIdempotent

Margin on a load from the buy rate (carrier cost) and sell rate (what the shipper pays): margin in dollars and percent of sell, the per-mile spread when miles are given, and the sell price needed to hit a target margin. Pure arithmetic; does not count toward the allowance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buyYesCarrier cost (buy rate) for the load, all-in, in dollars.
sellYesShipper price (sell rate) for the load, all-in, in dollars.
milesYesLoaded miles, or null.
target_margin_pctYesTarget margin as a percent of sell, e.g. 15, or null.

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