Skip to main content
Glama

generate_affiliate_link

Generate a tracked affiliate link for referral-based vendors using vendor ID, product ID, and optional affiliate ID. No payment required.

Instructions

Generate a tracked affiliate link for a referral-link or query-param-link vendor. No payment required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vendor_idYesVendor ID (must be a link-based affiliate, not x402)
product_idYesProduct ID within the vendor
affiliate_idNoOverride affiliate ID (env var used if omitted)
Behavior2/5

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

With no annotations provided, the description fully bears the burden of behavioral disclosure. It states 'Generate a tracked affiliate link' and 'No payment required,' but omits details on idempotency, side effects, authentication needs, or rate limits. The constraint on vendor type is only in the schema, not integrated into the description.

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?

The description is two sentences long, front-loads the primary action, and contains no unnecessary words. It is highly concise and structurally efficient.

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

Completeness3/5

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

Given no output schema and 3 parameters, the description covers the basic purpose and a key constraint (no payment). However, without annotations, it lacks details on behavioral aspects like mutability or error conditions, which affects completeness for an agent to use it correctly.

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 baseline is 3. The description adds no additional parameter meaning beyond what the schema provides; it mentions 'No payment required' but does not elaborate on how that relates to parameters. The schema descriptions are adequate but minimal.

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?

The description clearly states the tool generates a tracked affiliate link and specifies vendor types ('referral-link or query-param-link vendor'), distinguishing it from sibling tools like 'call_affiliate_product' or 'estimate_commission'.

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?

The description includes the note 'No payment required,' which provides a condition, but it does not explicitly state when to use this tool versus alternatives like 'call_affiliate_product' or 'get_best_route.' Some guidance is present in the schema (vendor_id must be link-based), but not in the description itself.

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/forgemeshlabs/affiliate-router-mcp'

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