Skip to main content
Glama

search_amazon

Scrape Amazon search results for a product query and retrieve each matching item's title, price, rating, and image URL.

Instructions

Scrape Amazon search results for a query and return a list of matching products, each with its title, price, rating, and image URL.

This performs a live network scrape of Amazon's public search results pages (no login, no API key). It has no side effects beyond outgoing HTTP requests. Results reflect Amazon's current listings and may vary by region, availability, and anti-bot throttling. Returns a list of dicts, one per product, each shaped as {"title": str, "price": str, "rating": str, "image": str}; fields that Amazon omits for a listing come back as empty strings or None. Returns an empty list when the query yields no products or when scraping is blocked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesProduct search phrase, as a string. Example: "wireless headphones". No default (required).
max_pagesNoNumber of result pages to scrape, as an integer; higher values return more products but take longer and raise the chance of throttling. Example: 3. Default: 1.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
countNo
errorsNo
scraperNo
source_urlsNo
Behavior5/5

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

With no annotations provided, the description fully covers behavioral traits: it discloses no side effects ('no side effects beyond outgoing HTTP requests'), no auth requirements, network dependence, anti-bot throttling, and return behavior including empty list on block/no results. It also specifies the exact return shape and how missing fields are represented (empty strings or None). This is exceptionally transparent.

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?

The description is four sentences, each earning its place: purpose, operational context, return format, and failure behavior. It is front-loaded with the essential purpose, then adds necessary behavioral caveats, and ends with the output contract. No wasted words or repetition of schema content.

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?

The tool is moderately complex (live network scrape with variable results), and the description covers everything an agent needs to decide and execute: live scrape, no auth, no side effects, variability, exact return schema, empty list behavior, and blocking. The presence of the output shape in the description compensates for the lack of an explicit output schema in context. Completeness is high.

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%, and the schema already clearly documents both parameters (query and max_pages) with examples and defaults. The description itself does not add parameter-level meaning, but the schema does the heavy lifting. Per the rubric, a baseline of 3 is appropriate when schema coverage is high and no further param details are needed.

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?

The description opens with a specific verb and resource: 'Scrape Amazon search results for a query and return a list of matching products.' This clearly distinguishes the tool from its siblings (e.g., search_images, search_youtube) by naming Amazon as the target and defining the output. The scope is explicit and unambiguous.

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?

The description provides clear usage context: it is a live network scrape of Amazon's public search pages with no login/API key, and mentions that results vary by region/availability and may be affected by throttling. It implies when to use the tool (Amazon product searches) but does not explicitly name alternatives or state when not to use it. This qualifies as clear context without exclusions, matching a 4.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mldsveda/PyScrappy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server