Skip to main content
Glama

Create a template

flow_create_template

Saves a new SMS or Viber message template as a draft under one of the brand's senders (ids from flow_list_senders). A contact field goes in the text as #{first_name}, #{city}, with the text a contact without the value gets after a bar, e.g. #{first_name|there}; an SMS template's own variable as #{name}, defined in variables (at most 20; default is what an API send without a value fills in). A variable never holds a whole link: a value carrying one is refused at send. Write the link in the text up to its host and let a Reference or One-time code variable finish it, e.g. https://pay.example.com/#{payment_ref}. A Viber template may add an https image and one button (label up to 10 characters), or 2–5 cards (title 2–35 characters) instead. Saved as a draft: it is sent only once it is made live in the portal. The answer gives its link and preview: the message as a recipient sees it, each variable filled with its fallback.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "channel": "<channel>",
      "senderId": "<senderId>",
      "name": "<name>"
    },
    "name": "flow_create_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
textNo
cardsNo
buttonNo
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.
channelYes
imageUrlNo
senderIdYes
variablesNo
messageTypeNoMARKETING
linksLeftLongNoLinks in the text to send as written; every other link is shortened, where the brand shortens links

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare write/non-destructive/non-idempotent; the description adds substantial behavior on top: the object is created as a draft and must be made live in the portal before sending, variables are capped at 20, a variable holding a whole link is refused at send, and the response carries a link plus a rendered preview with fallbacks filled in. These are real consequences an agent cannot get from the structured fields.

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

Conciseness3/5

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

Purpose is front-loaded and every sentence carries information, but the middle sentences are syntactically tangled, e.g. 'with the text a contact without the value gets after a bar' and 'default is what an API send without a value fills in', which forces re-reading. Dense but not cleanly structured.

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

Completeness3/5

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

For an 11-parameter tool with nested cards/buttons and no output schema, the description does cover the return value and the two channel shapes. However it leaves an undocumented linksLeftLong (link shortening behavior), an unmentioned messageType default of MARKETING, and no naming/length guidance, leaving notable gaps for a tool of this complexity.

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 only 18%, so the description carries most of the burden, and it does add meaning for text (placeholder syntax, #{name|fallback} form), variables (what 'default' means: what an API send without a value fills in) and Viber extras (one button, or 2–5 cards). But linksLeftLong, messageType and the name field get no mention at all, and numbers like 'at most 20' and 'label up to 10 characters' merely restate schema constraints rather than adding meaning.

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 first sentence gives a specific verb and resource (saves a new SMS or Viber message template as a draft), states the scope constraint (under one of the brand's senders) and routes to flow_list_senders for the required ids. Combined with the channel enum, an agent can tell this apart from flow_create_whatsapp_template without opening either schema.

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?

It supplies a prerequisite (sender ids come from flow_list_senders) and makes the draft lifecycle explicit: the template exists but is 'sent only once it is made live in the portal', which tells the agent this is not a send operation. It does not name explicit alternatives or exclusion conditions (e.g. when to use flow_create_whatsapp_template or flow_update_template instead), so it falls short of a 5.

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