get_instagram_reels
Retrieve Instagram Reels data from your Metricool account by specifying a date range and blog ID. Extract and analyze Reels content for insights and performance tracking.
Instructions
Get the list of Instagram Reels from your Metricool account.
Args: init date: Init date of the period to get the data. The format is YYYY-MM-DD end date: End date of the period to get the data. The format is YYYY-MM-DD blog id: Blog id of the Metricool brand account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blog_id | Yes | ||
| end_date | Yes | ||
| init_date | Yes |
Implementation Reference
- src/mcp_metricool/tools/tools.py:66-84 (handler)The handler function for the 'get_instagram_reels' tool. It is registered via the @mcp.tool() decorator and fetches Instagram Reels data from the Metricool API using a GET request to the specified endpoint. Includes input schema in the function signature and docstring.@mcp.tool() async def get_instagram_reels(init_date: str, end_date: str, blog_id: int) -> str | dict[str, Any]: """ Get the list of Instagram Reels from your Metricool account. Args: init date: Init date of the period to get the data. The format is YYYY-MM-DD end date: End date of the period to get the data. The format is YYYY-MM-DD blog id: Blog id of the Metricool brand account. """ url = f"{METRICOOL_BASE_URL}/v2/analytics/reels/instagram?from={init_date}T00%3A00%3A00&to={end_date}T23%3A59%3A59&blogId={blog_id}&userId={METRICOOL_USER_ID}&integrationSource=MCP" response = await make_get_request(url) if not response: return ("Failed to get Instagram Reels") return response