record_conversion

Record a post-scan conversion event (purchase, signup, etc.) for a QR code you own. Use this to track ROI — e.g., when a user scans a QR code and then makes a purchase, record a 'purchase' conversion with the order value. For client-side tracking without code, use the tracking pixel: <img src="ht...

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

What record_conversion does on QR for Agent

AI agents use record_conversion 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
event string Yes The conversion event name (e.g., "purchase", "signup", "add_to_cart"). Use consistent names to aggregate stats.
value number Optional monetary value of the conversion (e.g., 49.99).
metadata object Optional JSON metadata (e.g., product ID, order number).
short_id string Yes The short_id of the QR code this conversion is for.

Parameters from the server's own tool schema.

Why record_conversion needs a policy

This tool writes/creates a conversion event record tied to a QR code. It does not move money or commit financial obligations — it merely records that a financial event (e.g., a purchase) occurred elsewhere, which is an analytics/tracking write operation. Misuse could corrupt conversion tracking data or inflate/deflate reported ROI metrics, but the blast radius is limited to data integrity of analytics records.

From the tool's definition Record a post-scan conversion event (purchase, signup, etc.) for a QR code you own. Use this to track ROI — e.g., when a user scans a QR code and then makes a purchase, record a 'purchase' conversion with the order value.

Questions about record_conversion

What does the record_conversion tool do? +

Record a post-scan conversion event (purchase, signup, etc.) for a QR code you own. Use this to track ROI — e.g., when a user scans a QR code and then makes a purchase, record a 'purchase' conversion with the order value. For client-side tracking without code, use the tracking pixel: <img src="https://yourhost/t/{short_id}?event=purchase&value=49.99">. 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 record_conversion accept? +

record_conversion accepts 4 parameters: event, value, metadata, short_id. Required: event, short_id. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on record_conversion? +

Register the QR for Agent MCP server in PolicyLayer and add a rule for record_conversion: 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 record_conversion? +

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

Can I rate-limit record_conversion? +

Yes. Add a rate_limit block to the record_conversion 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 record_conversion completely? +

Set action: deny in the PolicyLayer policy for record_conversion. 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 record_conversion? +

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