build_utm
Assemble a campaign URL with consistent UTM tagging, normalise the values so they do not split into duplicate rows in analytics, and report every correction made and every risk found. Also flags a source or medium that departs from the conventional value for the platform, which silently breaks channel grouping.
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": {
"base_url": "<base_url>",
"source": "<source>",
"medium": "<medium>",
"campaign": "<campaign>"
},
"name": "build_utm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | Optional keyword or audience term. | |
| medium | Yes | Traffic medium, for example 'cpc' or 'paid_social'. | |
| source | Yes | Traffic source, for example 'google' or 'facebook'. | |
| content | No | Optional creative or variant identifier. | |
| base_url | Yes | Landing page URL, with or without an existing query string. | |
| campaign | Yes | Campaign name. | |
| platform | No | Optional platform key, used to check source and medium against the conventional values. | |
| convention | No | Naming convention applied to every value. | lowercase_underscore |