Skip to main content
Glama

Find the product behind a supplier link

resolve_supplier_link
Read-onlyIdempotent

Use this when a seller pastes a supplier product link (Printify, Printful, Gelato, Prodigi, Apliiq, Artelo, CustomCat, Fourthwall, Inkthreadable or merchOne). Returns the matching POD Benchmark product and any colour the link selects, ready for compare_product with yourSupplier set to that supplier. It never opens the link.

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": {
      "url": "<url>"
    },
    "name": "resolve_supplier_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA supplier's product page, such as a Printify or Printful product link.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "matches": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "canonicalProductId": {
      -              "type": "string"
      -            },
      -            "choices": {
      -              "additionalProperties": {
      -                "type": "string"
      -              },
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "name": {
      -              "type": "string"
      -            },
      -            "supplierId": {
      -              "type": "string"
      -            },
      -            "supplierProductName": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "url": {
      -              "format": "uri",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "canonicalProductId",
      -            "name",
      -            "supplierId",
      -            "supplierProductName",
      -            "url",
      -            "choices"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "enum": [
      -          "resolved",
      -          "ambiguous",
      -          "unsupported",
      -          "no-match",
      -          "configuration-unavailable",
      -          "unavailable"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "status",
      -      "matches",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "enum": [
      -              "invalid_input",
      -              "not_found",
      -              "product_not_found",
      -              "invalid_option",
      -              "comparison_unavailable",
      -              "unavailable",
      -              "rate_limited"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "retryable"
      -        ],
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "matches": {
      +        "description": "The matched product, or every candidate when ambiguous; empty when nothing matched.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "canonicalProductId": {
      +              "description": "The product's id, to pass to compare_product.",
      +              "type": "string"
      +            },
      +            "choices": {
      +              "additionalProperties": {
      +                "type": "string"
      +              },
      +              "description": "What the link selects, ready for compare_product `choices`; empty for the product's usual choice.",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "name": {
      +              "description": "The product's name.",
      +              "type": "string"
      +            },
      +            "supplierId": {
      +              "description": "The supplier the link points at.",
      +              "type": "string"
      +            },
      +            "supplierProductName": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The product's name at that supplier; null when unknown."
      +            },
      +            "url": {
      +              "description": "The product's page on POD Benchmark.",
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "canonicalProductId",
      +            "name",
      +            "supplierId",
      +            "supplierProductName",
      +            "url",
      +            "choices"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "message": {
      +        "description": "What to do next, in words.",
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "description": "resolved when one product matched, ambiguous when several did, otherwise why nothing matched.",
      +        "enum": [
      +          "resolved",
      +          "ambiguous",
      +          "unsupported",
      +          "no-match",
      +          "configuration-unavailable",
      +          "unavailable"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "status",
      +      "matches",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "description": "The error this call returned instead of a result.",
      +        "properties": {
      +          "code": {
      +            "description": "The machine-readable reason the call failed.",
      +            "enum": [
      +              "invalid_input",
      +              "not_found",
      +              "product_not_found",
      +              "invalid_option",
      +              "comparison_unavailable",
      +              "unavailable",
      +              "rate_limited"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "description": "What went wrong, in words, and what to do next.",
      +            "type": "string"
      +          },
      +          "retryable": {
      +            "description": "Whether calling again could succeed.",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "retryable"
      +        ],
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The line "It never opens the link" adds real value because it tells the agent the URL is not fetched, which matters for arbitrary third-party URLs. Beyond that it says nothing about failure modes for unsupported or unresolvable links.

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?

Three short sentences, front-loaded with the triggering condition, then the return contract, then the silent-failure-prevention note. Nothing is repeated from the annotations and every sentence carries a distinct piece of information.

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 needn't restate the return shape, and it correctly limits itself to when to call and what is guaranteed. The one remaining gap is behavior on a link from an unsupported supplier or an unresolvable product, which is not described.

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% and the url parameter is already documented as a supplier product page. The description still adds meaning by naming the ten supported suppliers, which tells the agent which URLs are in scope, and by noting that any colour the link selects is captured.

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?

States a specific verb and resource: resolve a pasted supplier product link to the matching POD Benchmark product. It enumerates the ten supported suppliers and contrasts itself with the downstream compare_product call, so an agent can identify it without opening any schema.

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?

"Use this when a seller pastes a supplier product link" gives an explicit trigger condition, and it names the follow-up step (compare_product with yourSupplier set to that supplier). It does not say when not to use it, e.g. when you already hold a product ID or slug and should call get_product instead, so the alternative path is left implicit.

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.