Skip to main content
Glama

get_pinterest_boards

Retrieve Pinterest boards associated with a specific Metricool brand account using the provided blog_id. Ensures accurate board management and tracking by identifying the correct account.

Instructions

Get the list of Pinterest boards for a specific Metricool brand (blog_id). If the user doesn't provide a blog_id, ask for it.

Args: blog_id: Blog id of the Metricool brand account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blog_idYes

Implementation Reference

  • Handler function for the 'get_pinterest_boards' tool. It is registered via the @mcp.tool() decorator on FastMCP instance. Makes a GET request to Metricool API to retrieve Pinterest boards for the given blog_id.
    @mcp.tool() async def get_pinterest_boards(blog_id: int) -> str | dict[str, Any]: """ Get the list of Pinterest boards for a specific Metricool brand (blog_id). If the user doesn't provide a blog_id, ask for it. Args: blog_id: Blog id of the Metricool brand account. """ url = f"{METRICOOL_BASE_URL}/v2/scheduler/boards/pinterest?blogId={blog_id}&userId={METRICOOL_USER_ID}&integrationSource=MCP" response = await make_get_request(url) if not response: return "Failed to get pinterest boards" return response
  • The @mcp.tool() decorator registers the get_pinterest_boards function as a tool in the FastMCP server (initialized at line 17).
    @mcp.tool()
  • Docstring provides input schema: requires blog_id (int). Output is str or dict[str, Any].
    """ Get the list of Pinterest boards for a specific Metricool brand (blog_id). If the user doesn't provide a blog_id, ask for it. Args: blog_id: Blog id of the Metricool brand account. """

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