Skip to main content
Glama

Make a cart link

cart_link
Read-onlyIdempotent

Build a link that opens agrodiler.com with these items in the cart and the order form shown. Use it when the buyer prefers to finish on the site or your client cannot call place_order. Do not use it to get prices (use quote). Quantities below the minimum order quantity are raised to it; raised_to_moq lists the affected handles. Returns url, the final items and a note. Fails with unknown_skus if a handle is not orderable on the chosen lang site. Does not place an order: nothing is ordered until the buyer submits the form.

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

Input Schema

NameRequiredDescriptionDefault
langNoSite language and market (optional, default uk). uk = Ukrainian site and ru = Russian site: Ukraine market, prices in UAH, Nova Poshta delivery, no ship_to. en = English site (site root): EU market, prices in EUR excluding VAT, delivery to EU countries, ship_to is required for quote and place_order. Use the market of the buyer; the range, prices and product handles differ between markets, so keep the same lang across search_products, get_product, quote, cart_link and place_order.uk
itemsYesOrder lines, 1 to 50, e.g. [{"handle": "ct-6205-2rs", "qty": 10}]. Each handle at most once (merge duplicates into one line).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / items / description
      Added value: +"Order lines, 1 to 50, e.g. [{\"handle\": \"ct-6205-2rs\", \"qty\": 10}]. Each handle at most once (merge duplicates into one line)."
    • changedInput schema / properties / items / items / properties / handle / description
      Previous value: -"Product handle from search_products"New value: +"Product handle: the \"handle\" field of an item returned by search_products (lowercase latin letters, digits, . _ -; e.g. \"ct-6205-2rs\" for a bearing, \"diskator-deft-1-8-pruzhinnaya-stoyka\" for a machine). Required; do not invent handles, a handle that is not orderable on the chosen lang site is rejected."
    • addedInput schema / properties / items / items / properties / qty / description
      Added value: +"Quantity in pieces: integer from 1 to 9999. Must not be below the product minimum order quantity (moq from get_product)."
    • changedInput schema / properties / lang / description
      Previous value: -"Site language and market: uk (Ukrainian, default) and ru (Russian) = Ukraine, prices in UAH, Nova Poshta delivery; en (English, site root) = EU market, prices in EUR, delivery to EU countries (ship_to is required for quote and place_order)."New value: +"Site language and market (optional, default uk). uk = Ukrainian site and ru = Russian site: Ukraine market, prices in UAH, Nova Poshta delivery, no ship_to. en = English site (site root): EU market, prices in EUR excluding VAT, delivery to EU countries, ship_to is required for quote and place_order. Use the market of the buyer; the range, prices and product handles differ between markets, so keep the same lang across search_products, get_product, quote, cart_link and place_order."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses real behavior: sub-MOQ quantities are silently raised and reported in raised_to_moq, unknown handles fail with unknown_skus, and crucially 'nothing is ordered until the buyer submits the form.' It also names the return payload shape, which the annotations cannot convey.

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?

Packed but front-loaded: purpose first, then usage, then behavioral caveats, then the explicit non-mutation guarantee. Every sentence carries distinct, actionable information with no filler.

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?

Even without an output schema, the description names the return values (url, final items, note, raised_to_moq) and the failure mode (unknown_skus). For a two-parameter, non-destructive tool this covers everything an agent needs to call and interpret it.

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 coverage is 100%, so both items and lang are already documented in detail, including the lang market implications and handle pattern. The description adds the MOQ-raising rule for qty, but otherwise relies on the schema, which is the correct baseline-3 situation.

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 artifact: 'Build a link that opens agrodiler.com with these items in the cart and the order form shown.' This is clearly distinct from place_order (which submits) and quote (which prices), so an agent can separate it from siblings without opening schemas.

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?

Explicit positive condition ('when the buyer prefers to finish on the site or your client cannot call place_order') and an explicit exclusion routing to an alternative ('Do not use it to get prices (use quote)'). Both when-to-use and when-not-to-use are named.

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