Prerequisites
Before you begin, create an account and get your API Key.
Getting started
Connect to Plai to create and manage Facebook, Instagram, and LinkedIn ad campaigns through AI agents.1
Install the SDKs (optional)
2
Create a server instance
Response Information: The API returns:
serverUrl
: The URL for connecting your MCP client to PlaiinstanceId
: Unique identifier for your server instance
3
Configure API Key
🎉 Your Plai MCP Server is ready! You can now use your MCP server URL with any MCP-compatible client.
Available Tools
Tools Information
Tools Information
Tool Name | Description |
---|---|
plai_create_user_profile | Create a new user profile on the Plai platform. This allows onboarding new users into the system. |
plai_get_user_profile | Retrieve the current user profile using their email address. |
plai_create_link | Generate a link that allows users to connect their Ad accounts (Facebook/Instagram or LinkedIn). |
plai_create_leads_dynamic | Create a dynamic Facebook Lead Ad campaign. Lead generation ads collect contact information directly from users on Meta platforms. |
plai_get_campaign_insights | Fetch campaign insights for a specific campaign with performance metrics. |
plai_update_campaign_status | Update the status of a campaign (pause, activate, or delete). |
plai_check_leadform_tos | Check whether the user has accepted the Terms of Service for their connected Facebook page. |
plai_create_leadform | Create a lead form for Facebook Lead Ads with predefined questions (EMAIL and FULL_NAME). |
plai_get_leadform_list | Get a list of all lead forms for the user. |
plai_search_targeting_locations | Search for advertising target locations based on search query. This helps in identifying relevant locations to improve the accuracy and effectiveness of ad targeting. |
For more details about tool input schema, use the get_tools API.