Skip to main content
Glama

Build a UTM-tagged link

build_utm_link
Read-onlyIdempotent

Add UTM campaign tags to a link: utm_source (required), utm_medium, utm_campaign, utm_term, utm_content and utm_id, written in lower case with underscores so analytics tools group them, replacing any UTM tags already on the address. Answers the tagged link, the tags and notes. Answers from what you send alone: nothing is fetched or stored.

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": {
      "url": "<url>",
      "source": "<source>"
    },
    "name": "build_utm_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoutm_id: the campaign's ID.
urlYesThe page the link goes to (https://…).
termNoutm_term: paid keyword.
mediumNoutm_medium: the kind of channel (email, social, cpc, referral).
sourceYesutm_source: where the visit comes from (newsletter, x, reddit).
contentNoutm_content: tells two links in one campaign apart.
campaignNoutm_campaign: what is being promoted.
keepCaseNoKeep capitals and spaces as typed (default: lower case, underscores).

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, yet the description still adds real behavior: existing UTM tags on the address are replaced, values are lower-cased with underscores, and the response contains the tagged link, the tags and notes. It also states nothing is fetched or stored, which is useful reassurance for a link-rewriting call.

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, front-loaded with the purpose and the tag list, then behavior, then return values. The return-value sentence partly duplicates the output schema, which is minor waste but also aids quick scanning.

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 pure-computation tool with a full output schema, full parameter coverage and complete annotations, the description covers purpose, transformation rules, replacement semantics and statelessness — nothing an agent needs to call it correctly is missing.

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 coverage is 100%, including a description for keepCase that already explains the lower-case/underscore default, so the schema carries the parameter burden. The description adds only the aggregate naming convention and the replace-existing-tags behavior, not per-parameter meaning beyond the schema.

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 opens with a specific verb and resource ('Add UTM campaign tags to a link') and then enumerates the exact tags handled plus the normalization rule, so an agent knows precisely what the tool produces without opening the schema.

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?

Usage is implied (building campaign-tagged URLs) and the description clarifies replacement and statelessness, but it never states when to use this versus an alternative or any prerequisites/caveats such as URL validity or unsupported schemes.

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