Skip to main content
Glama

aliexpress_search

Read-only

Search AliExpress's public keyword catalog and return one page (up to 60) of normalized product results: product id, title, URL, image, US/USD price, rating, sold text, discount, SKU id, ship-from country, and store name when listed. Use q as free-text keywords, e.g. wireless earbuds; page is 1-indexed. Optional sort (best_match, orders, price_asc, price_desc), min_price/max_price in USD, free_shipping, choice, and attr (- values from aliexpress_search_filters for the same q) narrow the results.

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": {
      "q": "<q>"
    },
    "name": "aliexpress_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesRequired. Free-text search keywords, e.g. 'wireless earbuds'.
attrNoOptional. Attribute filter as <attributeId>-<valueId>, copied from aliexpress_search_filters for the same q. Several values may be comma separated (at most 5).
pageNoOptional. 1-indexed page number, defaults to 1. Each page returns up to 60 products.
sortNoOptional. One of best_match (default), orders (most sold first), price_asc, price_desc.
cat_idNoOptional. AliExpress web category id to search within, the number in a /category/<id>/<slug>.html URL (e.g. 5090301 for Cellphones). Omit for the whole site.
choiceNoOptional. Only products in AliExpress's Choice program.
max_priceNoOptional. Maximum price in USD (0 to 1000000); must not be below min_price.
min_priceNoOptional. Minimum price in USD (0 to 1000000).
free_shippingNoOptional. Only products with free shipping to the US.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cat_id
      Added value: +{
      +  "description": "Optional. AliExpress web category id to search within, the number in a /category/<id>/<slug>.html URL (e.g. 5090301 for Cellphones). Omit for the whole site.",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, and non-idempotent, so the safety profile is covered. The description adds useful behavior beyond that: result pagination cap of 60, normalization of prices to US/USD, and the caveat that store name (and by extension some fields) appear only 'when listed'. No mention of rate limits or error handling, keeping it below a 5.

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?

Front-loads purpose, then pagination, then the narrowing filters, in a compact three-sentence block with no filler. The long enumerated field list is dense but earns its place by telling the agent what a result contains.

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 an output schema present the description need not enumerate return fields, yet it does so helpfully, and it covers pagination, currency, and the cross-tool dependency for attr. The only gap is that cat_id is never mentioned in prose, leaving that filter to the schema alone.

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 the baseline is 3 and the schema already documents every parameter including cat_id, which the description omits entirely. The description reinforces the meaning of q, page, sort, and the USD price bounds, and notes the attr provenance, but adds little that the schema does not already state.

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 ('Search AliExpress's public keyword catalog') plus scope ('one page, up to 60') and the normalized fields returned, so the agent knows exactly what comes back. It also names the sibling aliexpress_search_filters as the source for attr values, which differentiates it from that tool.

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?

Gives concrete usage context: q is free-text with an example, page is 1-indexed, and the optional filters are described as narrowing results. It also states the prerequisite that attr values must be copied from aliexpress_search_filters for the same q. It stops short of saying when to prefer category-based or suggestion siblings instead, so it is clear but not fully routing.

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.