Agent Utilities

Price comparison

Compare pack prices without hiding missing costs

A larger pack can have a lower unit price but a higher checkout total. Give your agent separate answers for the product offer, the price per unit, and the costs that are still unknown.

$0.0018 for one successful call to each of the 3 tools below.

Compare whole checkout totals

Already have checkout snapshots? Use the Python comparison recipe to include shipping and discounts, preserve unknown costs and compare complete totals. Two supplied carts cost at most $0.001 to reconcile. Get the runnable comparison.

01

Keep the price attached to its source

Extract each supplied product page. Use an individual Offer price and currency, retaining its source pointer. Do not replace an individual price with an AggregateOffer lowPrice or choose a conditional member price without checking eligibility.

commerce.offer-extract · $0.0008 per call ↗
02

Compare the same quantity

Map each individual offer price to the price field. Supply verified packCount, quantity and unit explicitly; package size is not inferred from a product title. For example, $8.99 for 500 g is $1.798 per 100 g, while $16.49 for 1 kg is $1.649 per 100 g. All prices must be in the same declared currency.

commerce.unit-price · $0.0005 per call ↗
03

Reconcile what the cart actually includes

Pass the selected whole-pack price as unitPrice, plus item count and explicit line and order discounts. Declare the currency decimal places and provide shipping, tax and fees as amounts or null when unknown. The example with two $16.49 bags, a $2 discount and $4.99 shipping has a known total of $35.97; unknown tax keeps the final total null.

commerce.price-components · $0.0005 per call ↗

What you get

An exact unit-price comparison and a separately reconciled cart. The lowest unit price is not a recommendation about product quality or final delivered cost. These tools never place orders, convert currencies or calculate tax from local law.

These are separate API calls that your agent orchestrates, not an automatic bundled workflow. Review each tool's example and contract; input fields must be mapped explicitly between steps.

A small first step

Pick a useful tool.
Give it a real task.

Review its example and price, then create an API key and save your recovery key. Add $5 in service credits through Stripe and call the API from your agent.