Skip to main content
Glama

ShopAt UK Deals

Wrap a product URL

wrap_link
Read-only

Turn any https product/store URL into a ShopAt-tracked Digidip or Amazon outbound link. Prefer a published deal go_url when ShopAt already lists that merchant URL; otherwise returns a Digidip/Amazon-wrapped URL. Never exposes third-party affiliate tags. Returns url, optional go_url, network, merchant_guess and disclosure.

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

Input Schema

NameRequiredDescriptionDefault
urlYesDirect https:// product or store page URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already declared, the description adds real value: it discloses that no third-party affiliate tags are exposed, that the result may include a canonical go_url rather than always a wrapped link, and it enumerates the returned fields (url, go_url, network, merchant_guess, disclosure). It omits error behavior for non-https input and any rate or caching notes.

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?

Three sentences, front-loaded with the core action, then the fallback rule, then the return contract. The wrapped-link concept is restated twice ('Digidip or Amazon outbound link' then 'Digidip/Amazon-wrapped URL'), a small redundancy, but nothing else is wasted.

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?

There is no output schema, and the description compensates by listing the returned fields, so an agent knows what to expect. For a single-parameter read-only tool that is nearly sufficient; only failure handling for invalid or non-https URLs is unaddressed.

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?

Only one parameter exists and schema description coverage is 100%, with format: uri and a clear field description, so the schema already carries the semantics. The phrase 'any https product/store URL' reinforces the same constraint but adds no syntax or edge-case detail beyond the schema.

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?

Opens with a specific verb and resource: turning an https product/store URL into a ShopAt-tracked Digidip or Amazon outbound link. The transformation is unambiguous and clearly distinct from search/browse siblings. It stops short of naming a sibling it might be confused with, but the wrapping action is unique enough to stand alone.

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 gives an input-selection rule ('prefer a published deal go_url when ShopAt already lists that merchant URL'), which implies you should wrap only when a deal URL isn't already available. It does not name alternative tools or state explicit when-not conditions, so an agent must infer routing from the sibling catalog.

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