Skip to main content
Glama

RubiConnect

create_template

Create a message template in the account library. Supports rich standalone cards (with image/media, title, text, and buttons), carousels, media, and plain text. For WhatsApp agents, creates the template as DRAFT first in the workspace so the user can review it before submitting to Meta.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesUnique name of the template (lowercase, numbers, and underscores only).
textYesMain message content or card description. Supports placeholders like {{name}} or {{first_name}}.
typeNoTemplate layout type: 'card' (rich standalone card with title/media/buttons), 'text' (plain text message), 'media' (standalone media with caption), or 'carousel' (multiple cards). If omitted, inferred from title/mediaUrl (defaults to 'card' if mediaUrl or title is provided, otherwise 'text').
titleNoTitle for rich card templates.
footerNoOptional footer text (WhatsApp supports up to 60 characters).
agentIdNoAgent ID or name this template belongs to. If omitted, uses active agent from context.
contentNoOptional raw template content object (e.g. { richCard: { ... } }). If provided, used directly.
categoryNoMeta template category for WhatsApp agents (default 'MARKETING').MARKETING
languageNoLanguage code for WhatsApp templates, e.g. 'en_US', 'es_ES' (default 'en_US').en_US
mediaUrlNoOptional media header URL (image/video/document). For card templates, this is the card's hero image/video.
mediaHeightNoHeight of the media component in a rich card ('SHORT', 'MEDIUM', 'TALL'). Default: 'MEDIUM'.MEDIUM
suggestionsNoOptional list of interactive suggestion buttons.
submitToMetaNoFor WhatsApp agents: whether to submit immediately to Meta Graph API for approval. Defaults to false (draft-first mode). Only set to true if the user explicitly confirmed immediate submission.
cardOrientationNoCard orientation for rich card templates ('VERTICAL' or 'HORIZONTAL'). Default: 'VERTICAL'.VERTICAL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It adds meaningful workflow context by explaining that WhatsApp templates are created as drafts in the workspace for review before Meta submission, which is a key behavioral trait beyond what the schema alone states. It could disclose more side effects or return behavior, but the most important special behavior is present.

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

Conciseness5/5

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

The description is three sentences with no wasted words: it front-loads the core action, then lists supported variants, then adds the important draft-first workflow caveat. Every sentence earns its place.

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

Completeness4/5

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

For a tool with 14 parameters, rich schema descriptions, no annotations, and no output schema, the description provides the most crucial extra workflow context: the draft-first behavior for WhatsApp agents. A small gap remains around explicit routing to submit_template_to_meta and what the call returns, but the description is otherwise sufficient for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 14 parameters, including types, defaults, enums, and meanings. The description adds little parameter-level detail beyond mentioning supported template kinds, which the schema already covers, so the baseline score of 3 is appropriate.

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 a create action on a message template in the account library, names the supported template formats, and is easily distinguishable from siblings like send_message and submit_template_to_meta. The verb and resource are specific, and the scope is explicit.

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

Usage Guidelines4/5

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

The description gives strong contextual guidance by noting that WhatsApp agents create templates as drafts first for user review, implying this is the creation step rather than the submission step. It does not explicitly name an alternative such as submit_template_to_meta or state when to use it, so the guidance is clear but not fully exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources