Skip to main content
Glama

Change campaign

update_campaign
DestructiveIdempotent

Change an existing campaign: its name, description, where links send people, status (active, or inactive to pause it), the commission, whether it is listed in the Discovery marketplace, whether new affiliates are approved automatically, or the recurring commission terms. Send only what changes; everything else stays as it is. Confirm the exact change with the user before calling, because affiliates see the new terms at once. Commission tiers, coupon codes, files and prices are changed on the dashboard. Returns the campaign and changed, the fields that actually changed. Requires Pro plan or higher; live keys only.

Input Schema

NameRequiredDescriptionDefault
nameNoNew campaign name, at least 2 characters
statusNoactive runs the campaign; inactive pauses it
isPublicNoList the campaign in the Discovery marketplace
targetUrlNoWhere affiliate links send people
campaignIdYesThe campaign to change
descriptionNoNew description shown to affiliates
commissionTypeNoPercentage of the sale, or a fixed amount per sale
commissionValueNoThe percent (e.g. 25) or the fixed amount in the campaign currency
autoApproveAffiliatesNoApprove affiliates who join through the join link without review
recurringCommissionModeNoLimit renewals by months since the first sale, or by number of payments
recurringCommissionTypeNoRenewals pay the same rate as the first sale, or a custom rate
recurringCommissionCountNoPayments that pay commission, including the first
recurringCommissionValueNoThe renewal rate when recurringCommissionType is custom
enableRecurringCommissionsNoAlso pay commission on subscription renewals
recurringCommissionDurationMonthsNoMonths of renewals that pay commission

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say this is destructive, idempotent and open-world; the description adds the substantive consequences: it is a partial update ('Send only what changes; everything else stays as it is'), changes are immediately visible to affiliates, and the response includes the campaign plus a `changed` field listing fields actually modified. That is real behavioral context beyond what any structured field conveys.

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?

A single dense paragraph, front-loaded with the verb and resource, then the mutable-field list, then the partial-update rule, then caveats. Nearly every clause maps to a distinct parameter or constraint, but the enumeration is long enough that tightening a few entries (e.g. the recurring-commission cluster) would improve scanability.

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 15-parameter mutation tool with no output schema, it covers the full picture: what can change, that only changed fields need sending, plan and key prerequisites, the affiliate-visibility side effect, and the shape of the return value. Nothing an agent needs in order to call this correctly is missing.

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 100%, so the schema already documents all 15 parameters and the baseline is 3. The description earns an extra point by grouping the patchable fields into meaningful clusters and clarifying semantics that matter for invocation — e.g. 'inactive to pause it' and the partial-update rule that determines which params to send — though it still largely mirrors schema text.

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?

Opens with a specific verb+resource ('Change an existing campaign') and then enumerates exactly which attributes are mutable (name, description, targetUrl, status, commission, Discovery listing, auto-approval, recurring terms). It also draws a hard boundary around what this tool does NOT touch, so an agent can distinguish it from create_campaign, update_conversion, or dashboard-only operations 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?

Explicit about when to use it and what to do instead: 'Commission tiers, coupon codes, files and prices are changed on the dashboard.' It also states required preconditions (Pro plan or higher, live keys only) and a mandatory confirm-with-user step before invoking — exactly the routing information an agent needs.

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