Skip to main content
Glama

Search Products By Uploaded Image

products.search.image_upload
Read-only

Upload a local image file (or base64 string) and search PoloPan products using the uploaded image URL. Returns products with available in-stock sizes, pricing, and verified purchase URLs (https://s.polopan.com/p/{handle}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination
sizeNoArray of sizes to filter by
genderNoTarget gender filter
vendorNoList of brand names
sort_byNoSorting criteriarelevance
page_sizeNoNumber of items to return per page
price_maxNoMaximum price
price_minNoMinimum price
image_pathNoLocal file system path to the image file
sort_orderNoSort order: 'asc' or 'desc'desc
personalizeNoWhether to personalize search ranking
content_typeNoMIME type of the image, e.g. 'image/jpeg', 'image/png'image/jpeg
expiry_hoursNoTemporary upload URL lifetime in hours
image_base64NoBase64-encoded image data string

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
productsYesMatching products
uploaded_image_urlYesTemporary URL of the uploaded image

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds that it uploads an image and uses a temporary URL, which is useful context, but does not disclose further behavioral details (e.g., statelessness, external calls). Given the annotations, a 3 is appropriate as the description adds some value but not a rich behavioral layer.

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 a single, front-loaded sentence with no extraneous information. It states the core action and expected return in a compact, efficient manner.

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 description covers the essential function, input requirements (local image or base64), and output contents (products with sizes, pricing, URLs). With an output schema present and high schema coverage, no critical information is missing for an agent to call the tool correctly.

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?

The schema provides descriptions for all 14 parameters (100% coverage), so the baseline is 3. The description only reiterates the image input options (local file or base64) which are already in the schema, adding minimal value beyond what the schema already provides.

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 action: upload a local image file (or base64) and search PoloPan products, clearly distinguishing it from text or URL-based search siblings. It also specifies what is returned (in-stock sizes, pricing, verified purchase URLs), leaving no ambiguity about the tool's core function.

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 clearly implies usage when you have a local image (file path or base64) and want to search by image. It does not explicitly mention when not to use it or contrast with siblings like image_url, but the context of uploading a local file is clear and sufficient for most agents to select the right 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.

Resources