Skip to main content
Glama

bufo.world

Price a cart with shipping

quote_cart
Read-onlyIdempotent

Price a cart exactly as the bufo.world cart and Stripe Checkout will: line prices, merchandise subtotal, shipping per package group (each group ships separately; some US sticker packages ship free from US$20) and the total before tax. Unknown or invalid items are listed in rejected with the reason.

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": {
      "items": "<items>"
    },
    "name": "quote_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesCart lines, at most 50; at most 50 items in total.
countryNoShipping country: US (prices in USD) or CA (prices in CAD).US

Output Schema

NameRequiredDescriptionDefault
noteYes
linesYes
countryYes
combinedYes
currencyYes
rejectedYes
shippingYes
item_countYes
total_before_taxYesAmount in major units, e.g. 7.99
merchandise_subtotalYesAmount in major units, e.g. 7.99

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: totals are before tax, shipping is computed per package group because groups ship separately, and invalid items are surfaced in a rejected collection with reasons rather than failing outright.

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?

Two sentences, front-loaded with the verb and the full output scope, then a short clause on rejected items. The enumerated result components all earn their place by telling the agent what to expect; the parenthetical about sticker packages is the only slightly incidental detail.

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?

An output schema exists, so return values need no elaboration, and the description still flags the tax exclusion and the rejected list, which are the two things an agent most needs to interpret the response. Combined with the currency-by-country note in the schema, nothing material is missing for a two-parameter read-only pricing tool.

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

Parameters3/5

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

Schema description coverage is 100%, so both the items array and the country enum are already documented with examples, defaults, and bounds. The description adds business meaning around shipping and the free-sticker threshold, but gives no extra detail on parameter shape or formatting beyond what the schema provides, making the baseline 3 appropriate.

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 ("Price a cart") and enumerates exactly what the result contains: line prices, merchandise subtotal, per-package-group shipping, and pre-tax total. It also anchors behavior to a concrete reference implementation (bufo.world cart and Stripe Checkout), which separates it from siblings like checkout_with_link or create_cart_link that act on a cart rather than simulate pricing.

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 implied rather than stated: an agent can infer this is the pre-checkout pricing/validation step, and the "rejected" mention hints at validating unknown items. However, the description never explicitly says when to call this instead of checkout_with_link or create_cart_link, nor does it state prerequisites such as needing slugs from search_products and variant ids from get_product.

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