Set UTM tracking parameters on a URL QR code. These parameters are automatically appended to the target URL on every scan redirect. Use this to track QR code scans in Google Analytics or other analytics tools. Set 'clear' to true to remove all UTM parameters.
AI agents use set_utm_params to create or update resources in QR for Agent — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your QR for Agent environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
term | string | — | utm_term value (paid search keyword). |
clear | boolean | — | Set to true to remove all UTM parameters from this QR code. |
medium | string | — | utm_medium value (e.g. 'print', 'qr', 'social'). |
source | string | — | utm_source value (e.g. 'flyer', 'email', 'poster'). |
content | string | — | utm_content value (A/B test variant). |
campaign | string | — | utm_campaign value (e.g. 'summer_2026'). |
short_id | string | Yes | The short ID of the QR code (must be type='url'). |
Parameters from the server's own tool schema.
This tool creates or modifies data reversibly—it updates UTM parameters on existing QR codes without deleting or permanently removing the QR codes themselves. Changes can be undone by calling the tool again with different parameters or by using the clear option. While it affects tracking behavior, it does not execute arbitrary code, delete data, or create financial obligations.
From the tool's definition The tool modifies QR code tracking parameters through 'Set UTM tracking parameters' action. The description explicitly states parameters are 'automatically appended to the target URL on every scan redirect,' indicating persistent modification of QR code…
Risk signalsAccepts raw HTML/template content (content) · Bulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
Set UTM tracking parameters on a URL QR code. These parameters are automatically appended to the target URL on every scan redirect. Use this to track QR code scans in Google Analytics or other analytics tools. Set 'clear' to true to remove all UTM parameters. It is categorised as a Write tool in the QR for Agent MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
set_utm_params accepts 7 parameters: term, clear, medium, source, content, campaign, short_id. Required: short_id. The full parameter table on this page comes from the server's own tool schema.
Register the QR for Agent MCP server in PolicyLayer and add a rule for set_utm_params: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches QR for Agent. Nothing to install.
set_utm_params is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the set_utm_params rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for set_utm_params. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
set_utm_params is provided by the QR for Agent MCP server (qr-for-agent). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →