Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

search_interests

Discover relevant audience interests for Meta Ads targeting by entering keywords to find matching topics and categories.

Instructions

Find audience interests by keyword.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
meta_access_tokenNo
page_sizeNo
page_cursorNo

Implementation Reference

  • The implementation of the `search_interests` tool which searches for audience interests using the Meta API.
    @mcp_server.tool()
    @meta_api_tool
    async def search_interests(
        query: str,
        meta_access_token: Optional[str] = None,
        page_size: int = 25,
        page_cursor: str = "",
    ) -> str:
        """Find audience interests by keyword."""
        if not str(query or "").strip():
            return _as_json({"error": "No query provided"})
    
        params: Dict[str, Any] = {
            "type": "adinterest",
            "q": query,
            "page_size": int(page_size),
        }
        if page_cursor:
            params["page_cursor"] = page_cursor
    
        payload = await make_api_request("search", meta_access_token, params)
        return _as_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