Skip to main content
Glama
BuyWhere

BuyWhere

Official

get_affiliate_link

Generate a trackable affiliate link for a product that logs referrals and redirects to the merchant page.

Instructions

Get the click-tracked BuyWhere affiliate link for a product. Share this link with users — it logs the referral and redirects to the merchant page. Always use this instead of raw product URLs when sharing links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesThe BuyWhere product ID
Behavior4/5

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

Discloses that the link logs referrals and redirects, which is key behavioral info. With no annotations, this is nearly sufficient; could mention if any authentication is needed but acceptable for a simple tool.

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?

Two efficient sentences with no filler. Front-loads the core action and immediately provides usage 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?

Covers purpose, usage, and behavioral aspects adequately for a simple tool with one parameter and no output schema. Slightly lacking on return value details but sufficient.

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 already fully describes the only parameter (product_id) as 'The BuyWhere product ID'. Description does not add extra semantic detail beyond the schema.

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?

Clearly states the action ('get') and the specific resource ('click-tracked BuyWhere affiliate link'). Distinguishes from sibling tools like get_product or get_price by focusing on affiliate link generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises to use this tool instead of raw product URLs when sharing links, and explains why (referral logging, redirect). Provides clear context for when to use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BuyWhere/buywhere-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server