Skip to main content
Glama

Audit a freight invoice against the market

check_freight_bill
Read-only

FreightFA Invoice Audit: compare what a shipper was billed (or quoted) for a truckload or LTL load against today's market benchmark for the same lane. Use this whenever the user uploads, attaches, pastes, or describes a freight invoice, carrier or broker bill, rate confirmation, or BOL (PDF, image, photo, screenshot, or spreadsheet) and asks to audit it or check whether the price is fair. Read the fields off the uploaded document yourself in chat and call this tool with only those extracted fields — never pass the raw document, its text, company or people's names, street addresses, or invoice, PRO, BOL, or account numbers. If a document lists multiple separate loads, call this tool once per load. If the document doesn't say what kind of truck moved a truckload shipment, ask the user. Dry Van and LTL return a verdict (above_market, at_market, good_price, below_floor) against FreightFA's market quote, negotiation target, and walk-away floor, plus what negotiating would have saved. Reefer and Flatbed return FreightFA's estimate and the gap with no verdict (no_call). The comparison is all-in with fuel (linehaul + fuel surcharge); pass the invoice grand total in billed_total and put detention, lumper, liftgate, layover, or other extras in accessorials so they are excluded from the benchmark comparison. Bills older than 90 days are not judged. Takes places, not miles. Each call counts as one estimate toward the account's monthly FreightFA allowance.

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": {
      "mode": "<mode>",
      "origin": "<origin>",
      "destination": "<destination>",
      "billed_total": "<billed_total>"
    },
    "name": "check_freight_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesEquipment or service type. Map standard truckload/FTL/53' van to 'Dry Van', refrigerated/temp-controlled to 'Reefer', flatbed/step-deck to 'Flatbed', and less-than-truckload to 'LTL'.
originYesPickup / ship-from location: city and state, or ZIP (e.g. 'Chicago, IL 60601'). Never use the bill-to, remit-to, or broker address.
palletsNoLTL only (optional): pallet count, or omit/null.
ship_dateNoOptional. Ship or pickup date as YYYY-MM-DD. Omit or pass null if the invoice only shows an invoice date or no date.
weight_lbsNoLTL only (required for LTL, omit or null for truckload): shipment weight in pounds.
destinationYesDelivery / ship-to / consignee location: city and state, or ZIP.
accessorialsNoOptional. The part of billed_total that is extras (detention, lumper, liftgate, residential, layover, stop-off), in dollars. Omit or pass 0/null when none.
billed_totalYesInvoice grand total (linehaul + fuel + accessorials) in U.S. dollars.
freight_classNoLTL only (optional): NMFC freight class from the invoice such as '70' or '92.5', or omit/null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / accessorials / description
      Previous value: -"The part of billed_total that is extras (detention, lumper, liftgate, residential, layover), in dollars. Null or 0 when there are none."New value: +"Optional. The part of billed_total that is extras (detention, lumper, liftgate, residential, layover, stop-off), in dollars. Omit or pass 0/null when none."
    • changedInput schema / properties / billed_total / description
      Previous value: -"Everything on the bill, in U.S. dollars."New value: +"Invoice grand total (linehaul + fuel + accessorials) in U.S. dollars."
    • changedInput schema / properties / destination / description
      Previous value: -"Where the load delivered: city and state, or ZIP."New value: +"Delivery / ship-to / consignee location: city and state, or ZIP."
    • changedInput schema / properties / freight_class / description
      Previous value: -"LTL only: NMFC freight class from the bill such as '70' or '92.5', or null."New value: +"LTL only (optional): NMFC freight class from the invoice such as '70' or '92.5', or omit/null."
    • changedInput schema / properties / mode / description
      Previous value: -"What moved. A plain truckload or FTL bill is 'Dry Van'."New value: +"Equipment or service type. Map standard truckload/FTL/53' van to 'Dry Van', refrigerated/temp-controlled to 'Reefer', flatbed/step-deck to 'Flatbed', and less-than-truckload to 'LTL'."
    • changedInput schema / properties / origin / description
      Previous value: -"Where the load picked up: city and state, or ZIP. Example: 'Chicago, IL 60601'. Not the bill-to or remit-to address."New value: +"Pickup / ship-from location: city and state, or ZIP (e.g. 'Chicago, IL 60601'). Never use the bill-to, remit-to, or broker address."
    • changedInput schema / properties / pallets / description
      Previous value: -"LTL only: pallet count, or null."New value: +"LTL only (optional): pallet count, or omit/null."
    • changedInput schema / properties / ship_date / description
      Previous value: -"Ship or pickup date as YYYY-MM-DD, or null if the bill doesn't say."New value: +"Optional. Ship or pickup date as YYYY-MM-DD. Omit or pass null if the invoice only shows an invoice date or no date."
    • changedInput schema / properties / weight_lbs / description
      Previous value: -"LTL only: shipment weight in pounds. Null for truckload."New value: +"LTL only (required for LTL, omit or null for truckload): shipment weight in pounds."
    • changedInput schema / required
      Previous value: -[
      -  "mode",
      -  "origin",
      -  "destination",
      -  "billed_total",
      -  "accessorials",
      -  "ship_date",
      -  "weight_lbs",
      -  "pallets",
      -  "freight_class"
      -]New value: +[
      +  "mode",
      +  "origin",
      +  "destination",
      +  "billed_total"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which already declare read-only, open-world, non-idempotent, non-destructive), the description discloses mode-dependent return behavior: Dry Van/LTL yield a verdict against quote, negotiation target, and walk-away floor, while Reefer/Flatbed yield a bare estimate tagged no_call. It adds the 90-day staleness cutoff, the places-not-miles constraint, and a per-call monthly allowance cost — quota and output-shape context an agent cannot get from the structured fields.

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?

It is dense and front-loaded — purpose first, then extraction rules, then return behavior, then quota cost. Nearly every sentence carries operational weight, but the long privacy enumeration (raw document, text, names, addresses, invoice/PRO/BOL/account numbers) is wordy and could be compressed without losing meaning.

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

Completeness5/5

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

For a 9-parameter tool with no output schema, the description covers what is returned per mode, the 90-day cutoff, the accessorials exclusion rule, the multi-load loop, and the billing-allowance side effect. Nothing an agent needs to call this correctly or interpret the result is missing.

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 the baseline is 3, but the description contributes real argument semantics: billed_total must be the all-in grand total including fuel, and accessorials must be isolated so extras are excluded from the benchmark comparison. It also reinforces that locations are places rather than miles. The mode-to-verdict mapping is the main added value; the privacy instruction on origin duplicates the schema.

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?

The description opens with a specific verb-and-resource pairing ('compare what a shipper was billed ... against today's market benchmark for the same lane') and scopes it to truckload/LTL load audits. An agent can immediately distinguish this from the estimate_* and market-snapshot siblings because the input is an actual bill, not a hypothetical lane.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Trigger conditions are unusually explicit: uploads, attachments, pastes, described invoices, rate confirmations, BOLs, in any file format, and the audit/fairness intent. It also resolves two ambiguous branches ('call once per load' for multi-load documents, and 'ask the user' when equipment type is unclear). It does not name a sibling as the alternative for hypothetical quotes (e.g. estimate_truckload_rate), so this falls just short of a 5.

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