Skip to main content
Glama

QRFLOW.codes

Set a GS1 product link

set_product_link
DestructiveIdempotent

Point one of a product's GS1 link types somewhere. A phone that scans the code goes to the default; an app asking for a specific type gets that one. Setting a batch scopes the link to codes carrying that batch only, which is how a recall is done without touching other stock. Re-running with the same type and batch replaces that link rather than adding a second.

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": {
      "gtin": "<gtin>",
      "link_type": "<link_type>",
      "url": "<url>",
      "title": "<title>"
    },
    "name": "set_product_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
gtinYes
batchNoScope this link to one batch or lot
titleYesShown in a scanner's menu. Required by the standard.
link_typeYesA GS1 link type such as gs1:pip for the product information page. Call get_account or read the docs for the full list.
is_defaultNoMake this where a phone lands

Output Schema

NameRequiredDescriptionDefault
idYes
gtinYesAlways 14 digits: a UPC-12 or EAN-13 is zero-padded
nameYes
brandNo
linksYes
page_urlNoThe hosted product page, when the brand has built one
created_atNo
digital_linkYesThe address printed inside the QR code on the pack

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered; the description still adds real value by naming the identity key (type + batch) under which a re-run replaces instead of appending, which explains exactly what the destructive bit means in practice. The batch scoping rule — affecting only codes carrying that batch — is behavioral context not present in the annotations or schema. It does not mention auth requirements or rate limits, keeping it short of a 5.

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?

Four compact sentences, each carrying distinct information: target semantics, default-vs-typed resolution, batch scoping, and replace-on-rerun. Nothing is padded. The opening phrase 'Point ... somewhere' is slightly informal but immediately disambiguated by the following sentence.

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?

For a 6-parameter mutation tool, the description covers the parts an agent could get wrong — link scoping, default resolution, and overwrite behavior — and an output schema exists so return values need no explanation. The remaining gap is permission/error behavior on an operation flagged destructive, which the description does not touch.

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?

With 67% schema coverage, the description compensates for the undocumented parameters: it explains how link_type interacts with is_default (default catches bare phone scans, typed requests get that one) and how batch narrows which codes are affected. That is genuine meaning beyond the schema's one-line property descriptions. It leaves url semantics (validation, scheme rules) and gtin unaddressed.

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 first two sentences give a concrete verb and resource: it sets a URL for one of a product's GS1 link types, and clarifies that a plain scanner lands on the default while an app requesting a type gets that specific one. That is more precise than the title alone. It never names a sibling tool, so it does not explicitly differentiate itself from the rest of the catalog.

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?

Usage is conveyed through scenarios rather than explicit routing: batch scoping is framed as the way to do a recall without touching other stock, which implies when to supply a batch. There is no statement of when not to use it, no prerequisite/permission guidance, and no named alternative (e.g. create_product or update_qr_code) for related tasks.

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