Skip to main content
Glama

diffbot.products.extract

Extract structured product data from e-commerce URLs, including title, price, brand, specifications, and images, without requiring custom integration for different retailers.

Instructions

Extract structured product data from any e-commerce URL — title, price, brand, specs, images, reviews. Works on any retailer without custom integration (Diffbot)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesProduct page URL to extract data from (any e-commerce site)
discussionNoInclude product reviews and comments (default false)
timeoutNoRequest timeout in milliseconds (5000-30000, default 15000)
Behavior3/5

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

With no annotations, the description carries full burden. It successfully discloses the scope ('any retailer') and output fields (title, price, reviews, etc.), but omits auth requirements, rate limits, error behavior for non-product URLs, and safety characteristics.

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?

Single, efficiently structured sentence with em-dash separation. Information is front-loaded with the core action, and every clause earns its place by specifying either output fields or operational scope.

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?

Given no output schema exists, the description effectively compensates by enumerating extracted fields (title, price, images, etc.). For a 3-parameter tool with simple types and no nested objects, this provides sufficient context for invocation.

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%, establishing baseline 3. The description mentions 'reviews' which semantically links to the 'discussion' parameter, but otherwise adds minimal syntax or format guidance beyond what the schema already provides for 'url' and 'timeout'.

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 states a specific verb ('Extract') and resource ('structured product data') and clearly distinguishes from sibling tools like 'diffbot.articles.extract' by specifying 'e-commerce URL' and listing product-specific fields (price, brand, specs).

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?

The phrase 'Works on any retailer without custom integration' provides implied usage context (use when universal retailer coverage is needed), but lacks explicit when-not-to-use guidance or comparison to specific alternatives like 'ecommerce.amazon.product'.

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/whiteknightonhorse/APIbase'

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