Skip to main content
Glama

search_product_recalls_from_image

Read-onlyIdempotent

Photo (beta): identify products in a public HTTPS image URL, data:image/...;base64 URI, or MCP image content part. Local files are not supported. Each product includes match (upc, model, text, category) and confidence. Category matches omit recalls unless include_category_matches=true. Requires an API key or x402; not included in the free anonymous per-IP quota.

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": "search_product_recalls_from_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoalias for image_url
limitNonumber of recalls to return per product, 1-100, default 3
image_urlNophoto (beta). HTTPS URL or data:image/...;base64 URI of a photo containing products. Local file paths are not supported.
include_category_matchesNoif true, attach keyword recalls for generic items such as cups; default false

Output Schema

NameRequiredDescriptionDefault
recallsYes
productsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / products / items / properties / recalls / items / properties / displayTitle
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / recalls / items / properties / displayTitle
      Added value: +{
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / image_url / description
      Previous value: -"HTTPS URL or data:image/...;base64 URI of a photo containing products. Local file paths are not supported."New value: +"photo (beta). HTTPS URL or data:image/...;base64 URI of a photo containing products. Local file paths are not supported."
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The description goes well beyond the annotations by disclosing a beta status, accepted image encodings, the API-key-or-x402 payment requirement, and that this endpoint is excluded from the free anonymous per-IP quota. Those are exactly the operational facts annotations cannot carry. It does not cover rate limits, cost of an x402 call, or behavior when no product is detected.

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

Conciseness4/5

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

Dense and front-loaded: the input forms come first, then match shape, then the category-match caveat, then the access requirement. No filler sentences, though the auth/quota sentence is compressed into a fragment that reads as a trailing note rather than structured guidance.

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 an output schema present, the description rightly omits return-value details and instead spends its budget on input formats, the category-match default, and access constraints — the parts an agent cannot read from structure. Remaining gaps are minor for a beta tool: no guidance on multiple products per image or on empty-match results.

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%, so all four parameters are already documented in the schema, including the data:image URI form and the category-match flag. The description adds one genuine nuance — that category matches omit recalls unless include_category_matches=true, i.e. the flag changes output presence, not just attachment — but says nothing about the url/image_url aliasing ambiguity.

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?

"Photo (beta): identify products in a public HTTPS image URL..." gives a specific verb (identify) plus resource (products in a photo) and implicitly separates itself from the UPC/text siblings by its image input. It stops short of explicitly naming a sibling or stating that the end result is a recall list, so an agent must infer the recall payload from the later sentence about category matches.

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?

Useful preconditions are stated: accepted input forms, "Local files are not supported", and the auth/credit requirement. However there is no explicit when-to-use-vs-alternative guidance such as "use search_product_recalls_by_upc when you already have a code" — the negative constraint is stated without routing to another 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