Skip to main content
Glama

Set commission tiers

set_commission_tiers
Destructive

Set the seller's affiliate commission tiers (Pro): rates that lift an affiliate once they reach a number of sales or an amount of revenue (net of tax) in a calendar month (UTC), like 40% after 10 sales or 50% after 5000 in revenue. A tier never lowers an affiliate's own higher rate. Pass tiers: [] to remove them. Optionally set recurring commission on subscription renewals and payment plan instalments: "first" (first payment only), "all" (every renewal), or a number of months. Optionally switch on the affiliates' leaderboard (first names only). Applies to commissions written from then on; past ones don't change. While the program has an approved affiliate, nothing changes yet: it creates an approval request (status pending_approval) the seller approves in Swipefast; tell them and give them the approvalUrl.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_commission_tiers"
  }
}

Input Schema

NameRequiredDescriptionDefault
tiersNoEach tier: a rate and one threshold.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
recurringNo"first", "all", or a number of months renewals earn commission for.
leaderboardNoShow affiliates a leaderboard of this month's sales (first names and initials only).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a destructive, non-read mutation, and the description adds real behavioral payload: past commissions are untouched, a tier never lowers an affiliate's existing higher rate, and the approval-gate behavior (status pending_approval plus an approvalUrl to hand to the seller) is spelled out. That approval flow is exactly the kind of side effect an agent must know before calling; only the response shape is left implicit.

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?

Front-loads the core action and keeps every sentence substantive (tier mechanics, removal, recurring, leaderboard, retroactivity, approval). It is a dense single paragraph, though, and the optional-parameter sentences could be split for faster scanning.

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 destructive config write with four optional params and no output schema, the definition covers the important unknowns: retroactivity, the higher-rate preservation rule, and the pending-approval outcome with the approvalUrl. What is missing is minor — e.g. what happens on a rate above the schema's 1–90 bounds, or what a successful non-gated call returns.

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?

Schema coverage is already 100%, so the baseline is 3, but the description adds business meaning the schema lacks: tiers are evaluated per calendar month in UTC on revenue net of tax, and an empty array removes tiers rather than being a no-op. The recurring values 'first'/'all'/months are reinforced with their intent.

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+resource ('Set the seller's affiliate commission tiers') and immediately defines what a tier is. The resource is distinct enough from the set_* siblings (brand guide, link page, offer chain) that no explicit contrast is needed, though none is offered.

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

Usage Guidelines4/5

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

Gives concrete operational guidance: pass tiers: [] to remove, optionally configure recurring and leaderboard, and note that changes only affect future commissions. It stops short of naming when a different tool would be preferred (e.g. a read-back or preview tool), but the context for calling it is unambiguous.

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.