Skip to main content
Glama

Change a template

flow_update_template
Idempotent

Changes an SMS or Viber template that is a draft or was declined (ids from flow_list_templates); a template in review or live changes in the portal only. Fields left out stay as they are; null removes an image, a button or the cards. variables and linksLeftLong replace the whole list. 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>",
      "id": "<id>"
    },
    "name": "flow_update_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
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
variablesNo
messageTypeNo
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.7/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, idempotent, non-destructive update; the description adds the real semantics: omitted fields are preserved, null clears image/button/cards, variables and linksLeftLong replace the entire list, the result is a draft that is only sent once made live in the portal, and the response contains a link plus a rendered preview. The last-write-wins/replace-whole-list behavior is the kind of detail that prevents accidental data loss and is absent from the schema.

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

Conciseness4/5

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

Front-loaded with scope and tightly packed — nearly every clause carries an operational rule, and the send-time preview explanation is valuable. Readability suffers from a single dense paragraph of semicolon-chained clauses (the contact-field and fallback sentence is hard to parse on first read), so structure, not length, is the weak point.

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?

No output schema exists, and the description does cover the returned link and preview, plus the brand-scoping refusal rule and draft lifecycle. Given 11 parameters and mutation risk, only messageType (marketing vs transactional message classification) and `name` are unexplained, which is a small gap rather than an unsafe one.

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

Parameters4/5

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

With only 18% schema description coverage across 11 parameters, the description carries most of the burden and mostly delivers: variable definition limits (max 20), default/fallback syntax like #{first_name|there}, URL-must-not-be-a-whole-link rule, card 2-5 / title 2-35 / button label 10-char constraints, and per-list replacement semantics. It leaves `name` and `messageType` (MARKETING vs TRANSACTIONAL) unmentioned, so it is strong but not complete.

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?

Opens with a specific verb and resource ("Changes an SMS or Viber template") and immediately narrows scope to drafts and declined templates, which implicitly separates it from flow_update_whatsapp_template and flow_create_template. It also points at flow_list_templates as the source of ids, so the agent knows the entry point.

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?

Explicit when-to-use (draft or declined templates) and when-not ("a template in review or live changes in the portal only"), plus the sibling that supplies ids. This is about as close to a routing rule as a description can get.

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