Skip to main content
Glama
metricool

mcp-metricool

Official
by metricool

post_schedule_post

Schedule posts on Metricool for specific dates and times, ensuring compliance with platform-specific requirements for content, formats, and character limits. Automates publishing based on user-provided data.

Instructions

Schedule a post to Metricool at a specific date and time. To be able to schedule the post, you need to maintain the structure. You can use the tool get_best_time_to_post to get the best time to post for a specific provider if the user doesn't specify the time to post. If the post include Instagram, is a must to have at least one image or video. Posts must include an image or a carousel, Reels must include a video, and Stories can include either an image or a video. If you don't have more information, you can ask the user about it and wait until you have the information. If the post include Pinterest, is a must to have a image and the board where to publish the pin. If you don't have more information, you can ask the user about it and wait until you have the information. If the post include Youtube, is a must to have a video, select the audience (if it's video made for kids or not) and the title of the video. If you don't have more information, you can ask the user about it and wait until you have the information. If the post include Tiktok, is a must to have at least one image or video. If you don't have more information, you can ask the user about it and wait until you have the information. If the post is Facebook Reel, is a must to have a video. If is Facebook Story, image or video is needed. If you don't have more information, you can ask the user about it and wait until you have the information. If the post is Bluesky, make sure the text does not exceed 300 characters. If the content exceeds that limit, do not retry and return an error informing the user: "Error: The text exceeds the 300-character limit allowed on Bluesky. Please edit it." If the post is for X (formerly Twitter), make sure before posting that the text does not exceed 280 characters. You must NOT split the message into multiple tweets or threads, the message must be evaluated strictly against a 280-character limit. If the text exceeds 280 characters, do not retry and return only the following error message and stop processing: "Error: The text exceeds the 280-character limit allowed on X. Please edit it." The date can't be in the past. DO NOT modify the text if there's any error, just notify the user.

Args: date: Date and time to publish the post. The format is YYYY-MM-DDT00:00:00 blog id: Blog id of the Metricool brand account. info: Data of the post to be scheduled. Should be a json object with the following fields: autoPublish: True or False, default is True. descendants: list with the args of the other posts if it is a thread with the format [args of the second post, args of the third post,... ], default is empty list if there is no thread. draft: True or False, default is False. firstCommentText: Text of the first comment of the post. Default "" hasNotReadNotes: True or False, default is False. media: default is empty list. mediaAltText: default is empty list. providers: always need at least one provider with the format [{"network":""}]. Use "twitter" for X posts. publicationDate: Date and timezone of the post. The format is {dateTime:"YYYY-MM-DDT00:00:00", timezone:"Europe/Madrid"}. Use the timezone of the user extracted from the get_brands tool. shortener: True or False, default is False. smartLinkData: default is {ids:[]} text: Text of the post. Always you need to add the networkData for the posts, as empty if you don't have more information. Only include the networkData for the networks you have in the providers list. The format is "twitterData": {"tags":[]}, Tags is used for tagging people on the images of the post, not hashtags. "facebookData": {"type":"", "title":"", "boost":, "boostPayer":"", "boostBeneficiary":""}, Facebook type can be "POST", "REEL" or "STORY" Facebook title is only available for Facebook videos (This is separate from the main text of the post). Facebook boost, boostPayer, and boostBeneficiary are only included if they are promoted posts. "instagramData": {"type": "" (default = POST), "collaborators":[{username: "string", deleted: false}]], "showReelOnFeed": "" (default = true), "boost":, "boostPayer":"", "boostBeneficiary":""}, Instagram type can be "POST", "REEL" or "STORY". There could be more than one collaborator, following the same structure. "linkedinData": {"documentTitle": "", "publishImagesAsPDF": "" (default = false), "previewIncluded": "" (default = true), "type": "" (default = post), "poll": {"question": "", "options": [{"text": ""}, {"text": ""}], "settings": {"duration": ""}}}, Linkedin type can be "post" or "poll". If there is a documentTitle in Linkedin, publishImagesAsPDF must be true. Linkedin poll duration can be "ONE_DAY", "THREE_DAYS", "SEVEN_DAYS " or "FOURTEEN_DAYS ". "pinterestData": {"boardId":"", "pinTitle":"","pinLink":"", "pinNewFormat":""}, "youtubeData": {"title": "", "type": "" (default = video), "privacy": "" (default = public), "tags": [ "", "" ], "category": "" (optional field), "madeForKids": ""}, Youtube type can be "video" or "short" and privacy can be "public", "unlisted" or "private". Youtube category can be FILM_ANIMATION, AUTOS_VEHICLES, MUSIC, PETS_ANIMALS, SPORTS, TRAVEL_EVENTS, GAMING, PEOPLE_BLOGS, COMEDY, ENTERTAINMENT, NEWS_POLITICS, HOWTO_STYLE, EDUCATION, SCIENCE_TECHNOLOGY, NONPROFITS_ACTIVISM. "twitchData": {"autoPublish":"", "tags":[]}, "tiktokData": {"disableComment": "" (default = false), "disableDuet": "" (default = false), "disableStitch": "" (default = false), "privacyOption": "" (default = "PUBLIC_TO_EVERYONE"), "commercialContentThirdParty": "" (default = false), "commercialContentOwnBrand": "" (default = false), "title": "", "autoAddMusic": "" (default = false), "photoCoverIndex": "" (default = 0)}, Tiktok privacyOption can be "PUBLIC_TO_EVERYONE", "MUTUAL_FOLLOW_FRIENDS", "FOLLOWER_OF_CREATOR" or "SELF_ONLY". "blueskyData": {"postLanguages":["",""]}, "threadsData":{"allowedCountryCodes:["",""]} The other fields are optional, but you need to add the ones you have. If you don't have more information, you can ask the user about it and wait until you have the information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blog_idYes
dateYes
infoYes

Implementation Reference

  • The handler function for the 'post_schedule_post' tool. It is decorated with @mcp.tool(), which registers it with the FastMCP server. The function validates text length for Twitter and Bluesky, then makes a POST request to the Metricool API to schedule the post.
    @mcp.tool()
    async def post_schedule_post(date:str, blog_id: int, info: json) -> str | dict[str, Any]:
        """
        Schedule a post to Metricool at a specific date and time.
        To be able to schedule the post, you need to maintain the structure.
        You can use the tool get_best_time_to_post to get the best time to post for a specific provider if the user doesn't specify the time to post.
        If the post include Instagram, is a must to have at least one image or video. Posts must include an image or a carousel, Reels must include a video, and Stories can include either an image or a video. If you don't have more information, you can ask the user about it and wait until you have the information.
        If the post include Pinterest, is a must to have a image and the board where to publish the pin. If you don't have more information, you can ask the user about it and wait until you have the information.
        If the post include Youtube, is a must to have a video, select the audience (if it's video made for kids or not) and the title of the video. If you don't have more information, you can ask the user about it and wait until you have the information.
        If the post include Tiktok, is a must to have at least one image or video. If you don't have more information, you can ask the user about it and wait until you have the information.
        If the post is Facebook Reel, is a must to have a video. If is Facebook Story, image or video is needed. If you don't have more information, you can ask the user about it and wait until you have the information.
        If the post is Bluesky, make sure the text does not exceed 300 characters. If the content exceeds that limit, do not retry and return an error informing the user: "Error: The text exceeds the 300-character limit allowed on Bluesky. Please edit it."
        If the post is for X (formerly Twitter), make sure before posting that the text does not exceed 280 characters. You must NOT split the message into multiple tweets or threads, the message must be evaluated strictly against a 280-character limit. If the text exceeds 280 characters, do not retry and return only the following error message and stop processing:
        "Error: The text exceeds the 280-character limit allowed on X. Please edit it."
        The date can't be in the past.
        DO NOT modify the text if there's any error, just notify the user.
    
        Args:
         date: Date and time to publish the post. The format is YYYY-MM-DDT00:00:00
         blog id: Blog id of the Metricool brand account.
         info: Data of the post to be scheduled. Should be a json object with the following fields:
            autoPublish: True or False, default is True.
            descendants: list with the args of the other posts if it is a thread with the format [args of the second post, args of the third post,...  ], default is empty list if there is no thread.
            draft: True or False, default is False.
            firstCommentText: Text of the first comment of the post. Default ""
            hasNotReadNotes: True or False, default is False.
            media: default is empty list.
            mediaAltText: default is empty list.
            providers: always need at least one provider with the format [{"network":"<string>"}]. Use "twitter" for X posts.
            publicationDate: Date and timezone of the post. The format is {dateTime:"YYYY-MM-DDT00:00:00", timezone:"Europe/Madrid"}. Use the timezone of the user extracted from the get_brands tool.
            shortener: True or False, default is False.
            smartLinkData: default is {ids:[]}
            text: Text of the post.
            Always you need to add the networkData for the posts, as empty if you don't have more information. Only include the networkData for the networks you have in the providers list.
                The format is "twitterData": {"tags":[]}, Tags is used for tagging people on the images of the post, not hashtags.
                                "facebookData": {"type":"<string>", "title":"<string>", "boost":<double>, "boostPayer":"<string>", "boostBeneficiary":"<string>"},
                                    Facebook type can be "POST", "REEL" or "STORY"
                                    Facebook title is only available for Facebook videos (This is separate from the main text of the post).
                                    Facebook boost, boostPayer, and boostBeneficiary are only included if they are promoted posts.
                                "instagramData": {"type": "<string>" (default = POST), "collaborators":[{username: "string", deleted: false}]], "carouselTags":{"<number>":[{"username":"<string>","x":<double>,"y":<double>}]} (number is the index of the image within the carousel), "showReelOnFeed": "<boolean>" (default = true), "boost":<double>, "boostPayer":"<string>", "boostBeneficiary":"<string>"},
                                    Instagram type can be "POST", "REEL" or "STORY".
                                    There could be more than one collaborator, following the same structure.
                                    The carouselTags is a dictionary with the number of the image in the carousel as key and a list of tags for that image.
                                "linkedinData": {"documentTitle": "<string>", "publishImagesAsPDF": "<boolean>" (default = false), "previewIncluded": "<boolean>" (default = true), "type": "<string>" (default = post), "poll": {"question": "<string>", "options": [{"text": "<string>"}, {"text": "<string>"}], "settings": {"duration": "<string>"}}},
                                    Linkedin type can be "post" or "poll".
                                    If there is a documentTitle in Linkedin, publishImagesAsPDF must be true.
                                    Linkedin poll duration can be "ONE_DAY", "THREE_DAYS", "SEVEN_DAYS " or "FOURTEEN_DAYS ".
                                "pinterestData": {"boardId":"<string>", "pinTitle":"<string>","pinLink":"<string>", "pinNewFormat":"<boolean>"},
                                "youtubeData": {"title": "<string>", "type": "<string>" (default = video), "privacy": "<string>" (default = public), "tags": [ "<string>", "<string>" ], "category": "<string>" (optional field), "madeForKids": "<boolean>"},
                                    Youtube type can be "video" or "short" and privacy can be "public", "unlisted" or "private".
                                    Youtube category can be FILM_ANIMATION, AUTOS_VEHICLES, MUSIC, PETS_ANIMALS, SPORTS, TRAVEL_EVENTS, GAMING, PEOPLE_BLOGS, COMEDY, ENTERTAINMENT, NEWS_POLITICS, HOWTO_STYLE, EDUCATION, SCIENCE_TECHNOLOGY, NONPROFITS_ACTIVISM.
                                "twitchData": {"autoPublish":"<boolean>", "tags":[]},
                                "tiktokData": {"disableComment": "<boolean>" (default = false), "disableDuet": "<boolean>" (default = false), "disableStitch": "<boolean>" (default = false), "privacyOption": "<string>" (default = "PUBLIC_TO_EVERYONE"), "commercialContentThirdParty": "<boolean>" (default = false), "commercialContentOwnBrand": "<boolean>" (default = false), "title": "<string>", "autoAddMusic": "<boolean>" (default = false), "photoCoverIndex": "<integer>" (default = 0)},
                                    Tiktok privacyOption can be "PUBLIC_TO_EVERYONE", "MUTUAL_FOLLOW_FRIENDS", "FOLLOWER_OF_CREATOR" or "SELF_ONLY".
                                "blueskyData": {"postLanguages":["",""]},
                                "threadsData":{"allowedCountryCodes:["",""]}
            The other fields are optional, but you need to add the ones you have. If you don't have more information, you can ask the user about it and wait until you have the information.
    
        """
    
        for provider in info.get("providers", []):
            network = provider.get("network")
            text = info.get("text", "")
    
            if network == "twitter" and len(text) > 280:
                return "Error: The text exceeds the 280-character limit allowed on X. Please edit it and try again."
            if network == "bluesky" and len(text) > 300:
                return "Error: The text exceeds the 300-character limit allowed on Bluesky. Please edit it and try again."
        url = f"{METRICOOL_BASE_URL}/v2/scheduler/posts?blogId={blog_id}&userId={METRICOOL_USER_ID}&integrationSource=MCP"
    
        response = await make_post_request(url, data=json.dumps(info))
    
        if not response:
            return ("Failed to schedule the post")
    
        return response
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure and does so comprehensively. It details critical behavioral traits: validation rules (character limits for Bluesky/X, past date prohibition), error handling (do not modify text, notify user), platform-specific requirements (media needs for Instagram/Pinterest/YouTube/TikTok/Facebook), and interaction guidance (ask user for missing info).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While information-rich, the description is overly verbose and poorly structured. It mixes high-level guidance, platform-specific rules, and parameter details in a dense block. Key behavioral information is buried among parameter specifications, and the text could be significantly streamlined with better organization while maintaining completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation tool with 3 parameters, 0% schema coverage, no annotations, and no output schema, the description provides exceptional completeness. It covers purpose, usage guidelines, behavioral constraints, error handling, all parameter details, platform-specific requirements, and references to other tools. Nothing essential appears missing given the context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the description fully compensates by providing extensive parameter semantics. It explains all three parameters in detail: 'date' format, 'blog_id' purpose, and most importantly, the complex 'info' JSON structure with all fields, their formats, defaults, and interdependencies. This goes far beyond what the bare schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verb ('Schedule') and resource ('a post to Metricool'), distinguishing it from sibling tools like 'get_scheduled_posts' (which retrieves) and 'update_schedule_post' (which modifies). It explicitly defines the action of scheduling with specific timing requirements.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool versus alternatives, mentioning 'get_best_time_to_post' for time selection if unspecified. It also outlines prerequisites like maintaining structure and platform-specific requirements, and implicitly distinguishes from sibling tools by focusing on creation rather than retrieval or update.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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/metricool/mcp-metricool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server