Skip to main content
POST
/
meta
/
mcp#compare_meta_performance
Compare Meta Performance
curl --request POST \
  --url 'https://api.adside.ai/meta/mcp#compare_meta_performance' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "<string>",
  "method": "<string>",
  "params": {
    "name": "<string>",
    "arguments": {
      "object_ids": [
        "<string>"
      ],
      "level": "campaign",
      "date_preset": "today",
      "time_range": {
        "since": "<string>",
        "until": "<string>"
      },
      "metrics": [
        "impressions",
        "clicks",
        "spend",
        "ctr",
        "cpc"
      ]
    }
  },
  "id": "1"
}
'
{
  "jsonrpc": "<string>",
  "id": "<string>",
  "result": {
    "content": [
      {
        "type": "<string>",
        "text": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via the web app's workspace settings.

Body

application/json
jsonrpc
string
required
Allowed value: "2.0"
method
string
required
Allowed value: "tools/call"
params
object
required
id
string
Example:

"1"

Response

JSON-RPC response with tool result

jsonrpc
string
Allowed value: "2.0"
id
string
result
object