Skip to main content
Glama
technolife-mcp

technolife-mcp

by sepehr071

Price a basket

tl_price_basket
Read-onlyIdempotent

Calculate the exact total for a set of seller items, including discounts, insurance, quantity limits, and cash or installment pricing before checkout.

Instructions

Get the exact total for a set of seller items: discounts, insurance, quantity limits, cash vs installment price.

Priced as a guest; nothing is saved. over_max_count means the site refuses that quantity. Each seller_item_id may appear once: price cash and installment in separate calls.

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": "tl_price_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesFrom tl_product offers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.0
    • changedInput schema / $defs / BasketItem / properties / insured_count / description
      Previous value: -"How many of the units get device insurance."New value: +"Units with device insurance."
    • changedInput schema / $defs / BasketItem / properties / payment / description
      Previous value: -"cash, installment (LOAN cluster) or bnpl (buy now pay later)."New value: +"Price list: cash, installment or bnpl (buy now pay later)."
    • changedInput schema / $defs / BasketItem / properties / seller_item_id / description
      Previous value: -"seller_item_id from tl_product offers, e.g. '68a8a44fd66b224721bea068'."New value: +"From tl_product offers, e.g. '68a8a44fd66b224721bea068'."
    • changedInput schema / properties / items / description
      Previous value: -"Seller items to price, from tl_product offers."New value: +"From tl_product offers."
  2. Changed8 schema fields changedv0.3.0
    • removedInput schema / $defs / BasketItem / properties / count / title
      Removed value: -"Count"
    • removedInput schema / $defs / BasketItem / properties / insured_count / title
      Removed value: -"Insured Count"
    • removedInput schema / $defs / BasketItem / properties / payment / title
      Removed value: -"Payment"
    • removedInput schema / $defs / BasketItem / properties / seller_item_id / title
      Removed value: -"Seller Item Id"
    • removedInput schema / $defs / BasketItem / title
      Removed value: -"BasketItem"
    • removedInput schema / properties / items / title
      Removed value: -"Items"
    • removedInput schema / title
      Removed value: -"tl_price_basketArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "tl_price_basketDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.7/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 the description still adds non-obvious behavior: pricing is done as a guest, nothing persists, and 'over_max_count' signals the site refusing a quantity. That is genuine disclosure beyond the structured hints, though the response payload shape is left unstated.

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?

Three short sentences with the core purpose front-loaded and no filler. The terse phrasing of 'over_max_count means the site refuses that quantity' is slightly under-contextualized (it never says where that field appears), costing a point on structure.

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

Completeness3/5

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

For a one-parameter pricing tool with no output schema, the description covers inputs and side effects well but says nothing about what the returned total looks like — whether per-item breakdowns, discount lines, or installment schedules come back. Without an output schema that gap is not covered elsewhere.

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 would be 3; the description earns one more by explaining price-list semantics ('cash vs installment price'), the dedupe constraint on repeated seller_item_id values, and the meaning of the quantity-limit failure mode, all of which the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and outcome ('Get the exact total for a set of seller items') and enumerates what the total accounts for: discounts, insurance, quantity limits, cash vs installment. An agent can distinguish this from catalog-looking siblings like tl_product or tl_search, though no sibling is named explicitly.

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?

Gives real operational rules: 'Priced as a guest; nothing is saved' and 'price cash and installment in separate calls,' plus the one-occurrence-per-seller_item_id rule. What is missing is when to choose this over tl_compare or tl_find_cheapest, so the when-to-use axis is only implied by the described capability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.