Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

read_ad

Retrieve detailed information about a specific Meta ad to analyze performance metrics, targeting parameters, and creative elements for campaign optimization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ad_idYes
meta_access_tokenNo

Implementation Reference

  • The `read_ad` function fetches ad details from the Meta API using the provided `ad_id` and optional `meta_access_token`. It includes standard ad fields and a preview shareable link.
    @mcp_server.tool()
    @meta_api_tool
    async def read_ad(ad_id: str, meta_access_token: Optional[str] = None) -> str:
        if not ad_id:
            return _json({"error": "No ad ID provided"})
    
        payload = await make_api_request(
            ad_id,
            meta_access_token,
            {"fields": _AD_FIELDS + ",preview_shareable_link"},
        )
        return _json(payload)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EfrainTorres/armavita-meta-ads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server