Skip to main content
Glama
TitanmindAGI

Titanmind WhatsApp MCP

by TitanmindAGI

get_the_templates

Retrieve registered WhatsApp message templates for bulk messaging workflows using a WhatsApp marketing server. Specify template name, page, and page size to fetch relevant templates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
page_sizeNo
template_nameNoNone

Implementation Reference

  • MCP tool registration and handler wrapper for get_the_templates, which delegates to the implementation in titan_mind_functions.
    @mcp.tool() def get_the_templates( template_name: str = "None", page: int = 1, page_size: int = 10, ) -> Optional[Dict[str, Any]]: (""" gets all the created templates with the details like approved/pending status Args: template_name (str): name of the whatsapp message template, It only accepts a word without no special characters only underscores. Default is "None" to get all the templates page (int): page refers to the page in paginated api. default is 1 page_size (int): page_size refers to the page_size in paginated api. default is 25 """ + _titan_mind_product_whatsapp_channel_messaging_functionality_and_workflow) return titan_mind_functions.get_the_templates( template_name, page, page_size )
  • Core implementation of get_the_templates: constructs payload and makes GET request to /template/ endpoint using TitanMindAPINetworking.
    def get_the_templates( template_name: str = "None", page: int = 1, page_size: int = 10, ): payload = { "channel": "whatsapp", "page": page, "page_size": page_size } if template_name is not None and template_name.lower() not in ["none", "null"]: payload["name__icontains"] = template_name return asdict( TitanMindAPINetworking().make_request( endpoint=f"template/", payload=payload, success_message="templates fetched", method=HTTPMethod.GET, ) )

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/TitanmindAGI/titan-mind-whatsapp-mcp'

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