set_utm_params

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.

Server QR for Agent qr-for-agent
Category Write
Risk class Medium
Parameters 71 required

What set_utm_params does on QR for Agent

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.

ParameterTypeRequiredDescription
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.

Why set_utm_params needs a policy

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

Questions about set_utm_params

What does the set_utm_params tool do? +

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.

What parameters does set_utm_params accept? +

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.

How do I enforce a policy on set_utm_params? +

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.

What risk level is set_utm_params? +

set_utm_params is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit set_utm_params? +

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.

How do I block set_utm_params completely? +

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.

What MCP server provides set_utm_params? +

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.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.