Skip to main content
Glama

BRAINIAC Brand Protection

Compare product images

brand-protection_product-image-similarity-check
Read-onlyIdempotent

Decode the supplied reference and listing images and compare their pixels when investigating a listing or seller. Images that cannot be decoded are not compared, and a visual match is not proof of counterfeiting. Call with optional text, json, csv, file, brands, products and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when investigating a listing or seller, text, csv, file, brands, products, listings, images, authorizedSellers, registrations, rules, checkedAt, pairs, requestsSent, accountAccessed.

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": "brand-protection_product-image-similarity-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNocsv, string, length 0 to 200000. Optional.
fileNofile, object. Optional.
jsonNojson, string, length 0 to 200000. Optional.
textNotext, string, length 0 to 200000. Optional.
rulesNorules, array. Optional.
brandsNobrands, array. Optional.
imagesNoimages, array. Optional.
listingsNolistings, array. Optional.
productsNoproducts, array. Optional.
registrationsNoregistrations, array. Optional.
authorizedSellersNoauthorizedSellers, array. Optional.

Output Schema

NameRequiredDescriptionDefault
pairsNopairs. Array.
statusNostatus. String.
findingsNofindings. Array.
checkedAtNocheckedAt. String.
limitationsNolimitations. Array.
requestsSentNorequestsSent. Number.
listingRemovedNolistingRemoved. Boolean.
accountAccessedNoaccountAccessed. Boolean.
captchaBypassedNocaptchaBypassed. Boolean.
legalConclusionNolegalConclusion. Boolean.
counterfeitConfirmedNocounterfeitConfirmed. Boolean.
authenticationBypassedNoauthenticationBypassed. Boolean.
infringementDeterminedNoinfringementDetermined. Boolean.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed66 schema fields changed
    • addedInput schema / properties / authorizedSellers / description
      Added value: +"authorizedSellers, array. Optional."
    • addedInput schema / properties / authorizedSellers / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / authorizedSellers / items / properties / name / description
      Added value: +"name, string, length 1 to 160. Required."
    • removedInput schema / properties / authorizedSellers / maxItems
      Removed value: -40
    • addedInput schema / properties / brands / description
      Added value: +"brands, array. Optional."
    • addedInput schema / properties / brands / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / brands / items / properties / name / description
      Added value: +"name, string, length 1 to 120. Required."
    • addedInput schema / properties / brands / items / properties / owner / description
      Added value: +"owner, string, length 0 to 160. Optional."
    • removedInput schema / properties / brands / maxItems
      Removed value: -20
    • addedInput schema / properties / csv / description
      Added value: +"csv, string, length 0 to 200000. Optional."
    • addedInput schema / properties / file / description
      Added value: +"file, object. Optional."
    • addedInput schema / properties / file / properties / fileBase64 / description
      Added value: +"fileBase64, string, length 1 to 12000000. Required."
    • addedInput schema / properties / file / properties / filename / description
      Added value: +"filename, string, length 1 to 180. Optional."
    • addedInput schema / properties / file / properties / mediaType / description
      Added value: +"mediaType, string, one of text/plain, text/csv, application/json. Required."
    • addedInput schema / properties / images / description
      Added value: +"images, array. Optional."
    • addedInput schema / properties / images / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / images / items / properties / fileBase64 / description
      Added value: +"fileBase64, string, length 0 to 2200000. Optional."
    • addedInput schema / properties / images / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / images / items / properties / listingId / description
      Added value: +"listingId, string, length 0 to 80. Optional."
    • addedInput schema / properties / images / items / properties / mediaType / description
      Added value: +"mediaType, string, one of image/png, image/jpeg, image/webp, image/gif. Optional."
    • addedInput schema / properties / images / items / properties / productId / description
      Added value: +"productId, string, length 0 to 80. Optional."
    • addedInput schema / properties / images / items / properties / role / description
      Added value: +"role, string, one of reference, listing. Optional."
    • addedInput schema / properties / images / items / properties / url / description
      Added value: +"url, string, length 0 to 2000. Optional."
    • removedInput schema / properties / images / maxItems
      Removed value: -8
    • addedInput schema / properties / json / description
      Added value: +"json, string, length 0 to 200000. Optional."
    • addedInput schema / properties / listings / description
      Added value: +"listings, array. Optional."
    • addedInput schema / properties / listings / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / listings / items / properties / brand / description
      Added value: +"brand, string, length 0 to 120. Optional."
    • addedInput schema / properties / listings / items / properties / currency / description
      Added value: +"currency, string, length 0 to 12. Optional."
    • addedInput schema / properties / listings / items / properties / description / description
      Added value: +"description, string, length 0 to 2000. Optional."
    • addedInput schema / properties / listings / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / listings / items / properties / imageUrl / description
      Added value: +"imageUrl, string, length 0 to 2000. Optional."
    • addedInput schema / properties / listings / items / properties / marketplace / description
      Added value: +"marketplace, string, length 0 to 80. Optional."
    • addedInput schema / properties / listings / items / properties / observed / description
      Added value: +"observed, string, length 0 to 40. Optional."
    • addedInput schema / properties / listings / items / properties / price / description
      Added value: +"price, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / listings / items / properties / productId / description
      Added value: +"productId, string, length 0 to 80. Optional."
    • addedInput schema / properties / listings / items / properties / seller / description
      Added value: +"seller, string, length 0 to 160. Optional."
    • addedInput schema / properties / listings / items / properties / sku / description
      Added value: +"sku, string, length 0 to 80. Optional."
    • addedInput schema / properties / listings / items / properties / title / description
      Added value: +"title, string, length 0 to 300. Optional."
    • addedInput schema / properties / listings / items / properties / url / description
      Added value: +"url, string, length 0 to 2000. Optional."
    • removedInput schema / properties / listings / maxItems
      Removed value: -40
    • addedInput schema / properties / products / description
      Added value: +"products, array. Optional."
    • addedInput schema / properties / products / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / products / items / properties / brand / description
      Added value: +"brand, string, length 0 to 120. Optional."
    • addedInput schema / properties / products / items / properties / currency / description
      Added value: +"currency, string, length 0 to 12. Optional."
    • addedInput schema / properties / products / items / properties / description / description
      Added value: +"description, string, length 0 to 2000. Optional."
    • addedInput schema / properties / products / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / products / items / properties / imageUrl / description
      Added value: +"imageUrl, string, length 0 to 2000. Optional."
    • addedInput schema / properties / products / items / properties / price / description
      Added value: +"price, number, from 0 to 1000000000. Optional."
    • addedInput schema / properties / products / items / properties / sku / description
      Added value: +"sku, string, length 0 to 80. Optional."
    • addedInput schema / properties / products / items / properties / title / description
      Added value: +"title, string, length 0 to 300. Optional."
    • removedInput schema / properties / products / maxItems
      Removed value: -20
    • addedInput schema / properties / registrations / description
      Added value: +"registrations, array. Optional."
    • addedInput schema / properties / registrations / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / registrations / items / properties / id / description
      Added value: +"id, string, length 0 to 80. Optional."
    • addedInput schema / properties / registrations / items / properties / mark / description
      Added value: +"mark, string, length 0 to 160. Optional."
    • addedInput schema / properties / registrations / items / properties / office / description
      Added value: +"office, string, length 0 to 120. Optional."
    • addedInput schema / properties / registrations / items / properties / status / description
      Added value: +"status, string, length 0 to 80. Optional."
    • removedInput schema / properties / registrations / maxItems
      Removed value: -20
    • addedInput schema / properties / rules / description
      Added value: +"rules, array. Optional."
    • addedInput schema / properties / rules / items / description
      Added value: +"item, object. Required."
    • addedInput schema / properties / rules / items / properties / name / description
      Added value: +"name, string, length 1 to 40. Required."
    • addedInput schema / properties / rules / items / properties / value / description
      Added value: +"value, string, length 0 to 40. Required."
    • removedInput schema / properties / rules / maxItems
      Removed value: -8
    • addedInput schema / properties / text / description
      Added value: +"text, string, length 0 to 200000. Optional."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "accountAccessed": {
      +      "description": "accountAccessed. Boolean.",
      +      "type": "boolean"
      +    },
      +    "authenticationBypassed": {
      +      "description": "authenticationBypassed. Boolean.",
      +      "type": "boolean"
      +    },
      +    "captchaBypassed": {
      +      "description": "captchaBypassed. Boolean.",
      +      "type": "boolean"
      +    },
      +    "checkedAt": {
      +      "description": "checkedAt. String.",
      +      "type": "string"
      +    },
      +    "counterfeitConfirmed": {
      +      "description": "counterfeitConfirmed. Boolean.",
      +      "type": "boolean"
      +    },
      +    "findings": {
      +      "description": "findings. Array.",
      +      "items": {
      +        "description": "Item. String.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "infringementDetermined": {
      +      "description": "infringementDetermined. Boolean.",
      +      "type": "boolean"
      +    },
      +    "legalConclusion": {
      +      "description": "legalConclusion. Boolean.",
      +      "type": "boolean"
      +    },
      +    "limitations": {
      +      "description": "limitations. Array.",
      +      "items": {
      +        "description": "Item. String.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "listingRemoved": {
      +      "description": "listingRemoved. Boolean.",
      +      "type": "boolean"
      +    },
      +    "pairs": {
      +      "description": "pairs. Array.",
      +      "items": {
      +        "additionalProperties": {},
      +        "description": "item. Object.",
      +        "properties": {
      +          "counterfeitConfirmed": {
      +            "description": "counterfeitConfirmed. Boolean.",
      +            "type": "boolean"
      +          },
      +          "detail": {
      +            "description": "detail. String.",
      +            "type": "string"
      +          },
      +          "distance": {
      +            "description": "distance. Number.",
      +            "type": "number"
      +          },
      +          "distanceSupplied": {
      +            "description": "distanceSupplied. Boolean.",
      +            "type": "boolean"
      +          },
      +          "listingId": {
      +            "description": "listingId. String.",
      +            "type": "string"
      +          },
      +          "listingImageId": {
      +            "description": "listingImageId. String.",
      +            "type": "string"
      +          },
      +          "listingUrl": {
      +            "description": "listingUrl. String.",
      +            "type": "string"
      +          },
      +          "productId": {
      +            "description": "productId. String.",
      +            "type": "string"
      +          },
      +          "referenceId": {
      +            "description": "referenceId. String.",
      +            "type": "string"
      +          },
      +          "referenceRetrievedAt": {
      +            "description": "referenceRetrievedAt. String.",
      +            "type": "string"
      +          },
      +          "referenceUrl": {
      +            "description": "referenceUrl. String.",
      +            "type": "string"
      +          },
      +          "retrievedAt": {
      +            "description": "retrievedAt. String.",
      +            "type": "string"
      +          },
      +          "visualSimilarity": {
      +            "description": "visualSimilarity. String.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "requestsSent": {
      +      "description": "requestsSent. Number.",
      +      "type": "number"
      +    },
      +    "status": {
      +      "description": "status. String.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive), the description discloses three non-obvious behaviors: undecodable images are silently excluded from comparison, a visual match is not conclusive evidence, and billing depends on HTTP status (200 with complete/partial/failed still charged, 4xx/5xx not charged). That billing and failure-semantics detail is exactly the kind of context the agent cannot get from structured fields.

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?

Core purpose, caveat, and billing rules are front-loaded and earn their place, but the trailing 'Keywords:' dump repeats words already in the description and schema and ends with return-field names that belong to the output schema. The 'Call with optional ... and others' enumeration is also low-value filler that dilutes the useful opening.

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

Completeness2/5

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

For an 11-parameter, deeply nested tool with zero required parameters, the description never explains what inputs are actually needed for a meaningful run (e.g. at least one reference and one listing image, or url vs fileBase64 alternatives) or how text/listings/products/brands inputs influence the comparison. The output schema covers return values, but the practical input requirements remain unexplained.

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 the schema already documents all 11 parameters including the reference/listing role enum. The description only enumerates parameter names ('text, json, csv, file, brands, products and others') without clarifying which combination is actually needed to produce a comparison, so it adds little beyond the schema. Baseline 3 applies.

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 description uses a specific verb pair ('decode ... and compare their pixels') on a specific resource ('supplied reference and listing images'), which is far more informative than the title alone. It does not, however, distinguish itself from close siblings such as brand-protection_marketplace-listing-compare or brand-protection_product-listing-match, so an agent must still infer the boundary.

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 scopes the tool to 'when investigating a listing or seller', giving implied usage context, and adds a useful interpretive caveat that a visual match is not proof of counterfeiting. There is no explicit when-not guidance and no named alternative for adjacent tasks like listing-field comparison, so routing between siblings is left to inference.

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