graph_call
Call any Meta Graph API endpoint directly. Specify HTTP method, endpoint, query parameters, and body to read or modify resources.
Instructions
Call any Graph API endpoint directly.
Args: method: GET, POST, or DELETE. endpoint: Path AFTER the version prefix, e.g. "act_123/campaigns" or "me/adaccounts". Do NOT include "https://graph.facebook.com/v21.0/" — that's added automatically. params: Query string parameters as a dict. data: Body parameters for POST as a dict. confirm: Required True for POST and DELETE.
Examples: - Read your user info: graph_call("GET", "me", {"fields": "id,name"}) - Get adaccount: graph_call("GET", "act_123", {"fields": "name,balance"}) - Pause ad: graph_call("POST", "12345", data={"status":"PAUSED"}, confirm=True)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>",
"endpoint": "<endpoint>"
},
"name": "graph_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| method | Yes | ||
| params | No | ||
| confirm | No | ||
| endpoint | Yes |