How to Use the UTM Campaign Builder MCP in OpenAI Agents SDK
Build Flawless Tracking Links: UTM Campaign Builder for OpenAI Agents SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect UTM Campaign Builder MCP to OpenAI Agents SDK
Create your Vinkius account to connect UTM Campaign Builder to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Construct Perfect Marketing URLs
The `build_utm_url` tool safely constructs and encodes marketing tracking links. It forces the agent to provide a base landing page URL, source, and medium. This prevents your AI client from hallucinating broken query strings or mismanaging URL encoding. You get clean, ready-to-use URLs every time.
Adding Optional UTM Parameters
Need to track specific campaigns? The `build_utm_url` tool lets you optionally include campaign, term, and content parameters. Your agent handles merging these extra pieces into the base URL. It ensures that even if an optional parameter is missing, the resulting URL remains valid for Google Analytics.
Guaranteed Safe Encoding
Don't worry about special characters getting mangled. The `build_utm_url` tool engine handles all URL encoding and query string merging safely behind the scenes. It's built to prevent routing errors. This makes your agent system reliable for production marketing work; you don’t have to babysit the output.
Set up UTM Campaign Builder MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all UTM Campaign Builder tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives UTM Campaign Builder tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate UTM Campaign Builder tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="UTM Campaign Builder Agent",
instructions="You have access to UTM Campaign Builder tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Node URL. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about UTM Campaign Builder MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the UTM Campaign Builder MCP today
We host it, we monitor it, we maintain it. You just paste one token.