Skip to main content
Glama

Create a product (or a business) from photos, a product page or a website

create_product

Creates a product from one or more photos (base64 JPG, PNG or WebP, up to 15 MB each; extra photos from other angles make the images more accurate) or from a product page link (Amazon, Etsy, Shopify or any shop: its photos and text are used), and analyses it: name, category, materials, colours, selling points, the closest category recipe, facts read from the label, and up to 5 missingFacts (each with a question and an example) to ask the person. A service business without a product (a gym, salon, studio, restaurant) works from its website as product_url: it is detected from the page (or set kind "business"), its photos and text are read, and it gets social media ads (pack social) of the place and its people; the product’s profile.kind says which. Free. Returns the product id for answer_facts and plan_image_set, and analysis: when ok is false, tell the person the problem (e.g. a blurry photo) and offer better photos before planning. Examples: {"product_url": "https://example.com/products/mug"}, {"product_url": "https://example-gym.com"}

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoUsually leave out: detected from product_url. business: a service business’s website (social ads only)
nameNoProduct name, if the person gave one
descriptionNoWhat the person says about the product (guides the analysis)
product_urlNoA product page link instead of photos; with kind "business", the business’s website
image_base64NoThe main photo, base64-encoded (a data: URL prefix is fine)
extra_images_base64NoMore photos of the same product from other angles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Usually leave out: detected from product_url. business: a service business’s website (social ads only)",
      +  "enum": [
      +    "product",
      +    "business"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / product_url / description
      Previous value: -"A product page link, instead of photos"New value: +"A product page link instead of photos; with kind \"business\", the business’s website"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent behaviour; the description adds what annotations cannot: the call is free, it returns a product id plus an analysis payload, up to 5 missingFacts are generated, and the ok=false error path requires user-facing handling. It does not disclose latency or rate limits, and a same-input call producing a new product (non-idempotent) could be stated more explicitly, so it falls just short of the top score.

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?

The core purpose is front-loaded, but the body is a single very long run-on sentence with stacked parentheticals and semicolons that is hard to scan. The trailing JSON examples are useful, though they duplicate the schema's own shape. Information density is high but structure is poor.

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 no output schema, the description correctly carries the burden of describing what comes back: the product id, the analysis fields, the missingFacts list, and profile.kind. It also covers the error path. The only real gap is the relationship between the photo and URL inputs when both are provided.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning: accepted base64 image formats and the 15 MB per-photo limit, that extra angles improve accuracy, which sites product_url supports, and that kind is normally inferred from the URL. It does not explain how image_base64 and product_url interact when both are supplied, which is the main remaining ambiguity.

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?

Opens with a specific verb and resource ('Creates a product') and immediately enumerates the two input modes (photos or product page link), plus a distinct business-website variant. It names the concrete outputs of the analysis (name, category, materials, colours, selling points, recipe, label facts, missingFacts), which lets an agent distinguish this from siblings like edit_product or plan_image_set without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the conditions: photos for physical products, product_url for a shop page, and a website URL (or kind "business") for service businesses without a product. It also gives failure-path guidance ('when ok is false, tell the person the problem ... and offer better photos before planning') and points to the downstream tools (answer_facts, plan_image_set) that consume the returned id.

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.