Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AALY. If you published it, claim ownership there.

set_notification_template

Idempotent

Set the message a notification sends, rendered with Mustache against the data passed on each send: 'Hi {{name}}' with data {"name": "Ada"} becomes 'Hi Ada'. {{value}} is HTML-escaped; use {{{value}}} only where raw markup is intended.

Templates are per (key, channel_type), so one key can carry a full HTML email and a one-line Slack message. Calling this again updates the existing template rather than failing.

What each channel needs: email — subject and body_text (body_html optional); slack and in_app — body_text; whatsapp — provider_config with templateName, because Meta only accepts templates it has already approved for a message a business initiates, and will refuse a body we compose.

The platform ships defaults for auth.verify_email and auth.password_reset, so those work before you set anything; a template you set here overrides them.

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": {
      "key": "<key>",
      "channel_type": "<channel_type>"
    },
    "name": "set_notification_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesHow a send names this template, e.g. 'order.shipped'. Lowercase letters, digits, dots and underscores.
enabledNoSet false to fall back to the next tier without deleting this.
subjectNoEmail subject line. Mustache-rendered.
body_htmlNoOptional rich HTML body for email, sent alongside body_text.
body_textNoPlain-text body. Mustache-rendered. Required for email, slack and in_app.
project_idNoGet it from whoami or list_projects.
descriptionNoWhat this template is for.
channel_typeYes
provider_configNoStructure a body cannot express. REQUIRED for whatsapp: {templateName, languageCode, parameters}. Optional for slack: {blocks}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Optional if whoami returned a default_project_id."New value: +"Get it from whoami or list_projects."
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description usefully reinforces the upsert semantics ('Calling this again updates the existing template rather than failing') and explains that enabled=false falls back a tier without deleting. The genuinely additive behavioral content is the Mustache escaping rule and the Meta approval constraint for whatsapp, which explains a real failure mode. However, it says nothing about permissions, validation failures, or what the call returns, so the addition beyond annotations is moderate rather than rich.

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?

Four short paragraphs organized by concern — rendering, keying, per-channel requirements, defaults — with the core purpose front-loaded and no filler. The opening paragraph is dense with escaping detail that could be trimmed, but each sentence carries information an agent would otherwise have to guess.

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 9-parameter, nested-object mutation tool with no output schema, the description covers the concepts an agent needs: rendering model, uniqueness key, upsert behavior, per-channel field requirements, and pre-existing defaults. It omits only secondary details such as error/validation behavior and the response shape, which are less critical given the rich schema.

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?

Schema coverage is 89%, so the baseline is 3; the description earns a bump by documenting cross-parameter requirements the schema only states piecemeal — which fields each channel demands, and that whatsapp requires provider_config with templateName because Meta rejects composed bodies. It also explains the escaping distinction between {{value}} and {{{value}}} and the tier-fallback meaning of enabled. It does not elaborate on project_id or description beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Set the message a notification sends') and immediately defines what a template is (Mustache-rendered against per-send `data`) plus its scoping unit, (key, channel_type). It never names a sibling such as list_notification_templates or set_notification_channel, so differentiation is inferred from scope rather than stated.

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?

Strong contextual guidance: it states the per-channel requirements (email needs subject and body_text, slack/in_app need body_text, whatsapp needs an approved provider_config template), and notes that auth.verify_email and auth.password_reset already have defaults so setting a template is an override rather than a prerequisite. It does not explicitly point at list_notification_templates to inspect existing templates or state when to use a different sibling.

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