Skip to main content
Glama

Make a campaign link

create_campaign_link
Idempotent

Makes the tagged link the owner will share (an ad, a newsletter, a post, a QR code) and announces the campaign under the name they give it: it becomes one marker on the curve at its first visit, with nothing to sort. For the same campaign placed in several places, call it once per place with the same name. Ask where the link will be placed and what the owner calls the campaign; do not invent either.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "name": "<name>",
      "place": "<place>"
    },
    "name": "create_campaign_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
adNoThe ad's name in the owner's words, when one campaign runs several ads: one link per ad, same campaign name. Written in the link as utm_content; get_campaign_result then compares the ads.
nameYesThe campaign's name in the owner's words, e.g. "Paris workshop".
pageNoThe page of the site the link leads to: a full address or a path. Default: the home page.
paidNoTrue when it is a paid ad.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
otherNoWith place "other": where, in a word or two ("podcast").
placeYesWhere the link will be placed. "google_ads" is a Google ad (always paid, its own source apart from unpaid search); "print" is a QR code or anything printed; "other" needs `other`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / place / description
      Previous value: -"Where the link will be placed. \"print\" is a QR code or anything printed; \"other\" needs `other`."New value: +"Where the link will be placed. \"google_ads\" is a Google ad (always paid, its own source apart from unpaid search); \"print\" is a QR code or anything printed; \"other\" needs `other`."
    • changedInput schema / properties / place / enum
      Previous value: -[
      -  "facebook",
      -  "instagram",
      -  "linkedin",
      -  "youtube",
      -  "tiktok",
      -  "newsletter",
      -  "print",
      -  "other"
      -]New value: +[
      +  "facebook",
      +  "instagram",
      +  "linkedin",
      +  "youtube",
      +  "tiktok",
      +  "google_ads",
      +  "newsletter",
      +  "print",
      +  "other"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / ad
      Added value: +{
      +  "description": "The ad's name in the owner's words, when one campaign runs several ads: one link per ad, same campaign name. Written in the link as utm_content; get_campaign_result then compares the ads.",
      +  "maxLength": 60,
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavior beyond that: the campaign marker is created lazily at first visit ('nothing to sort'), and repeated calls with the same name across places consolidate into one campaign. It does not describe the returned link or any validation/failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded, but the prose is padded with indirect, figurative wording ('the tagged link the owner will share', 'one marker on the curve at its first visit, with nothing to sort') that takes a second pass to parse. The useful multi-place rule and the elicitation instruction are buried in the middle and end.

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 7-parameter creation tool with annotations but no output schema, the description covers the important angles: what is created, when the campaign materializes, how to handle multiple placements, and that two required inputs must be collected from the owner. Nothing essential to calling it 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 description coverage is 100%, so the baseline is 3, but the description adds cross-call meaning the schema cannot: `name` identifies a single campaign spanning multiple calls, and both `name` and `place` must come from the owner rather than being guessed. That is genuine semantic value beyond the field-level docs.

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?

States a specific verb and resource: it creates the shareable tagged link and registers the campaign under a given name, with the effect that it 'becomes one marker on the curve at its first visit.' The parenthetical examples (ad, newsletter, post, QR code) confirm scope. It is clear but relies on evocative phrasing ('one marker on the curve') rather than plainly naming the campaign object, so sibling differentiation from add_marker/sort_campaign is only hinted at.

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 invocation guidance for the multi-placement case: call once per place with the same name to keep one campaign. It also directs the agent to elicit the two key inputs from the owner rather than inventing them. It stops short of explicit when-not-to-use or naming an alternative tool for cases like adding a marker directly.

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