Skip to main content
Glama

Find Consolidation Savings

consolidate
Read-only

Find consolidation savings across 2-12 upcoming loads: clusters loads sharing an origin+destination zip whose pickup dates fall within window_days (default 3) that together fit one 53' dry van, then prices each cluster BOTH ways — one combined FTL vs the sum of per-load LTLs — through real quotes with bookable quote ids. Use when the user has several loads to ship this week, asks if anything can ride together, or wants to cut freight spend. Loads that can't consolidate come back with the reason (no lane partner / outside window / exceeds trailer / cluster full) — relay reasons honestly. A truck pricing above its LTLs is shown with recommended:false; don't hide it. To act on a proposal, call book with the consolidated truck's quote_id. Auth optional — works keyless like the quote tools.

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": {
      "loads": "<loads>"
    },
    "name": "consolidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadsYesThe loads you plan to ship
window_daysNoLoads picking up within this many days of each other may ride together (default 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Adds real value beyond the readOnly/non-destructive annotations: keyless auth, bookable quote ids returned, dual pricing comparison, and the instruction to relay failure reasons and show recommended:false honestly. That said, the honesty/relay sentence is policy guidance rather than behavior, and it never explains cost or latency of generating live quotes or what the cluster response shape looks like. Annotations already cover the safety profile, so a 3 fits.

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

Conciseness5/5

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

Front-loaded with the clustering-and-pricing mechanism, then trigger conditions, then the honesty caveat, then the handoff to `book`, then auth — every sentence carries distinct information and none repeats the schema. Density is high but no clause is wasted.

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?

With no output schema, the description carries the return-value burden and covers the essentials: clusters, savings via FTL-vs-LTL comparison, recommended:false flags, and non-consolidatable reasons. It stops short of describing the actual response fields (savings amount, per-cluster load references), so an agent knows the shape but not the keys.

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 per-field meaning is already documented; the description still contributes by explaining how parameters interact — loads are matched on origin+destination zip and clustered only when pickup dates fall inside window_days (default 3) and they fit one trailer. It doesn't add anything about where ref/width/height land in the response, but the added clustering semantics exceed 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?

States a specific verb and resource (find consolidation savings) plus the exact mechanism: cluster loads sharing origin+destination zip within window_days that fit one 53' dry van, priced both as combined FTL and summed LTL. The scope (2-12 loads) and dual-pricing behavior make it unmistakably distinct from siblings like ltl_quote, ftl_quote, or batch_quote.

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?

Gives concrete trigger conditions — several loads to ship this week, asking whether anything can ride together, or wanting to cut freight spend — and an explicit next step (call `book` with the consolidated truck's quote_id). It does not say when NOT to use it (e.g., unrelated loads that obviously won't cluster, or single-load quoting), leaving that inference to the agent.

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.