Skip to main content
Glama

Calculate All-In Surplus Margin & Max Safe Bid

calculate_all_in_margin
Read-only

Run SurplusMargin's exact government auction all-in landed cost calculator (buyer's premium + sales tax on hammer and premium + card fee + SF-97/title fees + tow + selling fees) and backward-solve the clearfills Max Safe Hammer Bid to avoid negative-margin traps.

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": {
      "agency": "<agency>",
      "hammer_bid_dollars": "<hammer_bid_dollars>",
      "sold_comp_dollars": "<sold_comp_dollars>"
    },
    "name": "calculate_all_in_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
agencyYesAuction platform/agency fee profile: 'gsa' (0% premium), 'municibid' (8.5%), 'publicsurplus' (10%), 'govdeals' (12.5%), or 'govplanet' (15% + $125 SF-97).
tow_dollarsNoEstimated towing, transport, or freight cost in USD. Defaults to 300.
state_tax_pctNoCombined state + municipal sales tax percentage (e.g. 7 for 7.0%). Defaults to 7.0%.
selling_channelNoResale channel: 'local_fb' (0% fee), 'dealer_wholesale' (5% fee), or 'ebay' (13% fee). Defaults to 'ebay'.
sold_comp_dollarsYesVerified realized resale comp price in USD (e.g. 5000).
hammer_bid_dollarsYesWinning or target hammer bid in USD (e.g. 4000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context by disclosing the exact fee-stacking logic and the backward-solve for max safe bid, but it never says whether defaults are applied silently, what the response object contains, or how the two outputs are labeled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the core action and cost list, with no filler. It loses a point for unexplained jargon ('clearfills') and for packing the fee enumeration parenthetically instead of surfacing the negative-margin safeguard earlier.

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

Completeness4/5

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

For a calculator with no output schema, the description does name both computed results (all-in landed cost and Max Safe Hammer Bid), covering the essential return semantics. It stops short of describing output structure or how the margin verdict is presented, which leaves a modest gap for a tool whose whole value is its returned numbers.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description goes beyond the schema by clarifying that sales tax applies to 'hammer and premium' (not just the hammer bid) and that SF-97/title fees are part of the agency profile. That materially changes how state_tax_pct, agency, and hammer_bid_dollars interact and is not stated in the schema itself.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a precise verb+resource pair: 'Run SurplusMargin's exact government auction all-in landed cost calculator' and 'backward-solve ... Max Safe Hammer Bid.' It also enumerates the cost components (buyer's premium, sales tax, card fee, SF-97/title, tow, selling fees), so the agent knows exactly what is being computed and how it differs from search/comp/lookup siblings.

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 only implied: 'to avoid negative-margin traps' hints at the scenario (evaluating a candidate bid before committing), but there is no explicit when-to-use, when-not-to-use, or named alternative such as lookup_turf_comp or search_surplus_deals. An agent must infer the workflow position itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources