Skip to main content
Glama

Check Price Against History

price_check
Read-only

Judge a price against what THIS account has actually paid on the same lane and mode (its own bookings over the last 180 days, cancelled excluded; LTL compared per pallet). Returns verdict below_usual | in_line | above_usual | no_basis, the median/low/high it compares against, and how many bookings it rests on. Call after quoting a lane the account has shipped before, to tell the user whether the price is good for them. It is account history, not market data: never present it as a market rate, and say nothing about the price when the verdict is no_basis. Auth required.

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_zip": "<origin_zip>",
      "destination_zip": "<destination_zip>",
      "price_usd": "<price_usd>"
    },
    "name": "price_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesMode of the price being judged
palletsNoPallet count (LTL is compared per pallet when given)
price_usdYesThe price to judge, in USD
origin_zipYesOrigin ZIP
destination_zipYesDestination ZIP

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (readOnly, non-destructive, closed-world), it discloses the data window (180 days), the exclusion of cancelled bookings, the per-pallet LTL comparison rule, the auth requirement, and the verdict set. With no output schema, it also sketches what comes back (verdict, median/low/high, sample size), though it does not describe the response shape in detail.

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?

Dense but front-loaded: the core action comes first, then what it returns, then when to call it, then the misuse warning. Every clause carries information an agent needs; nothing is padding.

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 read-only five-parameter lookup with no output schema, the definition covers basis of comparison, data window, exclusions, return contents, preconditions, and an explicit framing constraint. Nothing required to call it correctly or interpret it safely 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 earns more: 'same lane and mode' ties origin/destination and mode to the comparison basis, and 'LTL compared per pallet' explains why the optional pallets parameter matters and what happens if it is omitted.

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: judge a price against this account's own paid history on the same lane and mode. It also draws an explicit boundary against the thing an agent might mistake it for (market rates), so it is distinguishable from market-oriented siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives a clear trigger ('call after quoting a lane the account has shipped before') plus explicit when-not guidance: never present as a market rate, and stay silent on price when the verdict is no_basis. That is a usable rule set, not an implied one.

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.