Skip to main content
Glama

extract_product_image

Read-onlyIdempotent

Find a product image from a product URL. Prefers Product structured data; page_preview is a candidate to inspect before using. If extraction fails, upload the product image or use a direct image URL.

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": {
      "workspaceId": "<workspaceId>",
      "productUrl": "<productUrl>"
    },
    "name": "extract_product_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
productUrlYes
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered structurally. The description adds the extraction strategy and failure fallback, which is useful, but says nothing about the result shape, whether null is returned on failure, or any network/latency behavior of fetching arbitrary URLs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose, so it is compact. But the middle sentence about page_preview is vague enough that it costs the reader more than it earns, and the fallback sentence mixes two different remedies.

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

Completeness3/5

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

For a two-required-param, read-only extraction tool with no output schema, the definition should explain what comes back (image URL, structured-data fields) and what a failure looks like. It gestures at failure handling but leaves the return value and the workspaceId requirement unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the burden. It only hints at productUrl ('product URL') and says nothing at all about workspaceId, a required parameter, nor about URL format or whether storefront URLs versus direct image URLs are accepted.

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 first sentence names a specific verb (find/extract) and resource (product image) with the input (product URL), which is clear enough for selection. It does not differentiate against siblings, but the siblings listed are image mutation/generation tools, so the read-only extraction intent is implicitly distinct.

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?

It gives a preference order (Product structured data first) and a fallback path (upload the image or use a direct image URL) when extraction fails. However, 'page_preview is a candidate to inspect before using' is cryptic without saying what page_preview is or how to inspect it, and there is no explicit statement of when not to use this tool.

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.