Raw Instagram API query
query_instagram_apiRun read-only GET requests against Instagram Graph API paths to retrieve raw JSON for account insights, media, comments, or other endpoints when no specialized tool fits.
Instructions
Run any read-only GET on Meta's Instagram Graph API for the connected account and return Meta's raw JSON: the escape hatch when no other tool fits. Account insights allow at most 30 days between since and until (Unix seconds) and go back 2 years. Pagination: pass 'after' from paging.cursors. Meta's error message is returned if a request is invalid.
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": {
"path": "<path>"
},
"name": "query_instagram_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Graph API path, relative: 'me' is the connected account, e.g. 'me/insights', 'me/media', '<media-id>/insights', '<media-id>/children'. | |
| params | No | Query parameters, e.g. {'metric': 'views,reach', 'period': 'day', 'metric_type': 'total_value', 'since': '1730000000', 'until': '1732000000'}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||