Skip to main content
Glama

Change an affiliate link's token

rewardful_update_affiliate_link
Destructive

Change the token of an existing affiliate link. WARNING: the old token stops tracking immediately — links already shared with it break. Prefer rewardful_create_affiliate_link to add a second token. Rewardful: PUT /v1/affiliate_links/:id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesLink token, e.g. `jb007` for ?via=jb007. Letters, numbers and dashes only.
link_idYesThe affiliate link's id (UUID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes further by explaining the concrete consequence: the old token stops tracking immediately and already-shared links break. This is exactly the operational detail an agent needs before invoking an irreversible mutation.

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 tight sentences with the destructive warning front-loaded right after the purpose statement, so the risk is seen before the alternative. The trailing 'Rewardful: PUT /v1/affiliate_links/:id' is minor implementation detail that earns its place only marginally.

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

Completeness5/5

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

For a two-parameter mutation with no output schema, the description covers purpose, consequence, and the recommended alternative, with the schema handling parameter syntax. Nothing material is missing for correct invocation.

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 both link_id and token are fully documented in the schema, including the token pattern and example. The description adds no parameter-level detail beyond the schema, so the baseline 3 applies.

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+resource ('Change the token of an existing affiliate link'), naming the exact mutation being performed. It is trivially distinguishable from rewardful_create_affiliate_link and rewardful_get_affiliate_link without opening a schema.

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?

Gives an explicit when-not and a named alternative: 'Prefer rewardful_create_affiliate_link to add a second token.' The agent knows both the right tool and the reason to avoid this one in the common case.

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.