Skip to main content
Glama

Build an AliExpress basket within a budget

build_basket
Read-onlyIdempotent

Plan a set of complementary products for one need ("home gym starter set", "kit to start baking bread", "camping cooking gear") and fill it with real AliExpress listings whose total stays within the budget. Each item has a role (what it is for), price, rating, order count, a link and a few alternatives. Prices are for delivery to the given country, in its currency. By default only free-shipping listings are used, so the total is what the buyer pays for the items. Links are affiliate links (OneFindMe may earn a commission; the price is the same for the buyer).

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": {
      "need": "<need>",
      "budget": "<budget>"
    },
    "name": "build_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
needYesWhat the basket is for, in any language.
budgetYesTotal budget in the delivery country's currency.
countryNoISO 3166-1 alpha-2 delivery country, e.g. US, GB, DE, IL. Default US.
languageNoLanguage for role names (ISO 639-1). Default: detected from the need, else en.
priorityNoWhat to favour. Default quality.
recipientNoWho or what it is for, if relevant.
free_shipping_onlyNoOnly free-shipping listings (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses materially useful context: what each returned item contains (role, price, rating, order count, link, alternatives), that prices are localized to the delivery country's currency and include delivery, that free shipping is the default so the total equals what the buyer pays, and that links are affiliate links with no buyer price impact. That is a lot of behavioral value the structured fields do not carry.

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?

Four sentences, front-loaded with what the tool produces before drilling into item fields and pricing/affiliate caveats. Dense but nearly every clause carries decision-relevant information; the parenthetical commission note could be trimmed slightly.

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

Completeness4/5

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

With no output schema, the description takes on the burden of describing the return shape, which it does well (per-item fields, alternatives, localized pricing). All seven parameters are documented in the schema, so the only real gap is the missing guidance on how this relates to search_products for single-item lookups.

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; the description still adds meaning by explaining that budget is a hard total ceiling, that pricing is in the delivery country's currency, and that free_shipping_only is a default filter on listings rather than a cosmetic flag. Only 'priority' and 'recipient' semantics are left entirely to the schema.

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?

The description names a specific verb (plan/fill) and resource (a basket of complementary products) with concrete example needs ("home gym starter set", "camping cooking gear") and budget scoping. An agent knows exactly what it gets, but the definition never contrasts itself with the sibling search_products, so the distinction (one-need multi-item basket vs. per-query product search) is left to inference.

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

Usage Guidelines4/5

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

Clear context for use: a single need plus a budget, resulting in a complementary set rather than a single product. Exclusions and the alternative (search_products) are not stated, keeping it below a 5.

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