Skip to main content
Glama

replace_tenant_template

Idempotent

Create or replace a tenant notification template (draft unless published is true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoOptional title merged into template content when provided
contentYesElemental content document. Example: { "version": "2022-01-01", "elements": [{ "type": "meta", "title": "Welcome" }, { "type": "text", "content": "Thanks for signing up." }] }
routingNoMessage routing tree. Example: { "method": "single", "channels": ["email", "sms"] }
channelsNoPer-channel delivery configuration, keyed by channel name. Example: { "email": { "providers": ["sendgrid"], "routing_method": "single" } }
providersNoPer-provider configuration, keyed by provider name. Example: { "sendgrid": { "override": { "from": "noreply@example.com" } } }
publishedNoWhen true, publish immediately after save
tenant_idYesThe tenant ID
template_idYesThe template ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / content / properties / brand
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Inline brand overrides",
      -  "type": "object"
      -}
    • changedInput schema / properties / content / properties / elements / items / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "channels": {
      -            "description": "Restrict this element to these channels",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "content": {
      -            "description": "The text to render",
      -            "type": "string"
      -          },
      -          "format": {
      -            "const": "markdown",
      -            "description": "Set to \"markdown\" to render markdown",
      -            "type": "string"
      -          },
      -          "if": {
      -            "description": "Expression; the element renders only when truthy",
      -            "type": "string"
      -          },
      -          "loop": {
      -            "description": "Expression resolving to a list to repeat this element over",
      -            "type": "string"
      -          },
      -          "ref": {
      -            "description": "Reference name for this element",
      -            "type": "string"
      -          },
      -          "type": {
      -            "const": "text",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "content"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "channels": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -          },
      -          "if": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -          },
      -          "loop": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -          },
      -          "ref": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -          },
      -          "title": {
      -            "description": "Message title (email subject, push title, etc.)",
      -            "type": "string"
      -          },
      -          "type": {
      -            "const": "meta",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "align": {
      -            "enum": [
      -              "center",
      -              "left",
      -              "right",
      -              "full"
      -            ],
      -            "type": "string"
      -          },
      -          "altText": {
      -            "type": "string"
      -          },
      -          "channels": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -          },
      -          "href": {
      -            "description": "Link the image points to",
      -            "type": "string"
      -          },
      -          "if": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -          },
      -          "loop": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -          },
      -          "ref": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -          },
      -          "src": {
      -            "description": "Image URL",
      -            "type": "string"
      -          },
      -          "type": {
      -            "const": "image",
      -            "type": "string"
      -          },
      -          "width": {
      -            "description": "Rendered width, e.g. \"300px\"",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "src"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "actionId": {
      -            "type": "string"
      -          },
      -          "align": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/2/properties/align"
      -          },
      -          "backgroundColor": {
      -            "type": "string"
      -          },
      -          "channels": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -          },
      -          "content": {
      -            "description": "Button or link label",
      -            "type": "string"
      -          },
      -          "href": {
      -            "description": "URL the action opens",
      -            "type": "string"
      -          },
      -          "if": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -          },
      -          "loop": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -          },
      -          "ref": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -          },
      -          "style": {
      -            "enum": [
      -              "button",
      -              "link"
      -            ],
      -            "type": "string"
      -          },
      -          "type": {
      -            "const": "action",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "content",
      -          "href"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "channels": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -          },
      -          "color": {
      -            "type": "string"
      -          },
      -          "if": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -          },
      -          "loop": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -          },
      -          "ref": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -          },
      -          "type": {
      -            "const": "divider",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "align": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/2/properties/align"
      -          },
      -          "borderColor": {
      -            "type": "string"
      -          },
      -          "channels": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -          },
      -          "content": {
      -            "type": "string"
      -          },
      -          "if": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -          },
      -          "loop": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -          },
      -          "ref": {
      -            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -          },
      -          "textStyle": {
      -            "enum": [
      -              "text",
      -              "h1",
      -              "h2",
      -              "subtext"
      -            ],
      -            "type": "string"
      -          },
      -          "type": {
      -            "const": "quote",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "content"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "channel": {
      -        "description": "Channel these elements target, e.g. \"email\", \"push\", \"inbox\"",
      -        "type": "string"
      -      },
      -      "channels": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -      },
      -      "elements": {
      -        "description": "Elements rendered for this channel",
      -        "items": {
      -          "$ref": "#/properties/content/properties/elements/items"
      -        },
      -        "type": "array"
      -      },
      -      "if": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -      },
      -      "loop": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -      },
      -      "raw": {
      -        "additionalProperties": {},
      -        "description": "Channel-native payload passed through untouched",
      -        "type": "object"
      -      },
      -      "ref": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -      },
      -      "type": {
      -        "const": "channel",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "channel"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "channels": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      -      },
      -      "elements": {
      -        "description": "Grouped elements",
      -        "items": {
      -          "$ref": "#/properties/content/properties/elements/items"
      -        },
      -        "type": "array"
      -      },
      -      "if": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      -      },
      -      "loop": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      -      },
      -      "ref": {
      -        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      -      },
      -      "type": {
      -        "const": "group",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "elements"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "align": {
      +            "enum": [
      +              "center",
      +              "left",
      +              "right",
      +              "full"
      +            ],
      +            "type": "string"
      +          },
      +          "background_color": {
      +            "type": "string"
      +          },
      +          "border_color": {
      +            "type": "string"
      +          },
      +          "border_size": {
      +            "type": "string"
      +          },
      +          "channels": {
      +            "description": "Restrict this element to these channels",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "content": {
      +            "description": "The text to render",
      +            "type": "string"
      +          },
      +          "font_size": {
      +            "description": "CSS px size, e.g. \"16px\"",
      +            "type": "string"
      +          },
      +          "format": {
      +            "const": "markdown",
      +            "description": "Set to \"markdown\" to render markdown",
      +            "type": "string"
      +          },
      +          "if": {
      +            "description": "Expression; the element renders only when truthy",
      +            "type": "string"
      +          },
      +          "line_height": {
      +            "type": "string"
      +          },
      +          "locales": {
      +            "additionalProperties": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "content": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Overrides keyed by locale code",
      +            "type": "object"
      +          },
      +          "loop": {
      +            "description": "Expression resolving to a list to repeat this element over",
      +            "type": "string"
      +          },
      +          "padding": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "description": "Reference name for this element",
      +            "type": "string"
      +          },
      +          "text_style": {
      +            "enum": [
      +              "text",
      +              "h1",
      +              "h2",
      +              "h3",
      +              "subtext"
      +            ],
      +            "type": "string"
      +          },
      +          "type": {
      +            "const": "text",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "channels": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +          },
      +          "if": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +          },
      +          "locales": {
      +            "additionalProperties": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "title": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Overrides keyed by locale code",
      +            "type": "object"
      +          },
      +          "loop": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +          },
      +          "ref": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +          },
      +          "title": {
      +            "description": "Message title (email subject, push title, etc.)",
      +            "type": "string"
      +          },
      +          "type": {
      +            "const": "meta",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "align": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/align"
      +          },
      +          "alt_text": {
      +            "type": "string"
      +          },
      +          "border_color": {
      +            "type": "string"
      +          },
      +          "border_size": {
      +            "type": "string"
      +          },
      +          "channels": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +          },
      +          "href": {
      +            "description": "Link the image points to",
      +            "type": "string"
      +          },
      +          "if": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +          },
      +          "locales": {
      +            "additionalProperties": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "href": {
      +                  "type": "string"
      +                },
      +                "src": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Overrides keyed by locale code",
      +            "type": "object"
      +          },
      +          "loop": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +          },
      +          "padding": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +          },
      +          "src": {
      +            "description": "Image URL",
      +            "type": "string"
      +          },
      +          "type": {
      +            "const": "image",
      +            "type": "string"
      +          },
      +          "width": {
      +            "description": "Rendered width, e.g. \"300px\"",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "src"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action_id": {
      +            "description": "Identifier reported with click tracking",
      +            "type": "string"
      +          },
      +          "align": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/align"
      +          },
      +          "background_color": {
      +            "description": "Fill for `button`; border and label color for `secondary`",
      +            "type": "string"
      +          },
      +          "border_radius": {
      +            "type": "string"
      +          },
      +          "border_size": {
      +            "type": "string"
      +          },
      +          "channels": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +          },
      +          "content": {
      +            "description": "Button or link label",
      +            "type": "string"
      +          },
      +          "disable_tracking": {
      +            "description": "Skip click tracking for this href",
      +            "type": "boolean"
      +          },
      +          "font_size": {
      +            "type": "string"
      +          },
      +          "href": {
      +            "description": "URL the action opens",
      +            "type": "string"
      +          },
      +          "if": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +          },
      +          "locales": {
      +            "additionalProperties": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "content": {
      +                  "type": "string"
      +                },
      +                "href": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Overrides keyed by locale code",
      +            "type": "object"
      +          },
      +          "loop": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +          },
      +          "padding": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +          },
      +          "style": {
      +            "description": "How prominent the action is. `button` (default) is filled, `secondary` and `tertiary` are the other two button styles, and `link` is inline text",
      +            "enum": [
      +              "button",
      +              "secondary",
      +              "tertiary",
      +              "link"
      +            ],
      +            "type": "string"
      +          },
      +          "type": {
      +            "const": "action",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "content",
      +          "href"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "border_width": {
      +            "type": "string"
      +          },
      +          "channels": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +          },
      +          "color": {
      +            "type": "string"
      +          },
      +          "if": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +          },
      +          "loop": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +          },
      +          "padding": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +          },
      +          "type": {
      +            "const": "divider",
      +            "type": "string"
      +          },
      +          "width": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "align": {
      +            "enum": [
      +              "center",
      +              "left",
      +              "right",
      +              "full",
      +              "justify"
      +            ],
      +            "type": "string"
      +          },
      +          "border_color": {
      +            "type": "string"
      +          },
      +          "border_size": {
      +            "type": "string"
      +          },
      +          "channels": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +          },
      +          "content": {
      +            "type": "string"
      +          },
      +          "font_size": {
      +            "type": "string"
      +          },
      +          "if": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +          },
      +          "line_height": {
      +            "type": "string"
      +          },
      +          "locales": {
      +            "additionalProperties": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "content": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Overrides keyed by locale code",
      +            "type": "object"
      +          },
      +          "loop": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +          },
      +          "padding": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +          },
      +          "text_style": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/text_style"
      +          },
      +          "type": {
      +            "const": "quote",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "content"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "channels": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +          },
      +          "content": {
      +            "description": "Raw HTML, rendered as-is",
      +            "type": "string"
      +          },
      +          "if": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +          },
      +          "locales": {
      +            "additionalProperties": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "content": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Overrides keyed by locale code",
      +            "type": "object"
      +          },
      +          "loop": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +          },
      +          "ref": {
      +            "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +          },
      +          "type": {
      +            "const": "html",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "content"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "channel": {
      +        "description": "Channel these elements target, e.g. \"email\", \"push\", \"inbox\"",
      +        "type": "string"
      +      },
      +      "channels": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +      },
      +      "elements": {
      +        "description": "Elements rendered for this channel",
      +        "items": {
      +          "$ref": "#/properties/content/properties/elements/items"
      +        },
      +        "type": "array"
      +      },
      +      "if": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +      },
      +      "loop": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +      },
      +      "raw": {
      +        "additionalProperties": {},
      +        "description": "Channel-native payload passed through untouched",
      +        "type": "object"
      +      },
      +      "ref": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +      },
      +      "type": {
      +        "const": "channel",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "channel"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "channels": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +      },
      +      "elements": {
      +        "description": "Grouped elements",
      +        "items": {
      +          "$ref": "#/properties/content/properties/elements/items"
      +        },
      +        "type": "array"
      +      },
      +      "if": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +      },
      +      "loop": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +      },
      +      "ref": {
      +        "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +      },
      +      "type": {
      +        "const": "group",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "elements"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / content / properties / scope
      Added value: +{
      +  "description": "\"strict\" reads send data only under the `data.` prefix, e.g. {{data.name}}. Under \"default\", data is spread to the root and {{data.name}} renders empty",
      +  "enum": [
      +    "default",
      +    "strict"
      +  ],
      +  "type": "string"
      +}
  2. Changed17 schema fields changed
    • addedInput schema / properties / channels / additionalProperties
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "brand_id": {
      +      "description": "Brand applied when delivering on this channel",
      +      "type": "string"
      +    },
      +    "if": {
      +      "description": "Expression; the channel is used only when truthy",
      +      "type": "string"
      +    },
      +    "metadata": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "utm": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "campaign": {
      +              "type": "string"
      +            },
      +            "content": {
      +              "type": "string"
      +            },
      +            "medium": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "type": "string"
      +            },
      +            "term": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "override": {
      +      "additionalProperties": {},
      +      "description": "Channel-specific overrides, e.g. email subject/from or push title/icon",
      +      "type": "object"
      +    },
      +    "providers": {
      +      "description": "Providers eligible for this channel, in preference order",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "routing_method": {
      +      "description": "\"all\" delivers via every provider; \"single\" stops after the first success",
      +      "enum": [
      +        "all",
      +        "single"
      +      ],
      +      "type": "string"
      +    },
      +    "timeouts": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "channel": {
      +          "description": "Whole-channel timeout in ms",
      +          "type": "number"
      +        },
      +        "provider": {
      +          "description": "Per-provider timeout in ms",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / channels / description
      Previous value: -"Channel-specific delivery configuration"New value: +"Per-channel delivery configuration, keyed by channel name. Example: { \"email\": { \"providers\": [\"sendgrid\"], \"routing_method\": \"single\" } }"
    • addedInput schema / properties / channels / type
      Added value: +"object"
    • addedInput schema / properties / content / additionalProperties
      Added value: +false
    • changedInput schema / properties / content / description
      Previous value: -"Elemental content object (e.g. elements and version per Courier Elemental schema)"New value: +"Elemental content document. Example: { \"version\": \"2022-01-01\", \"elements\": [{ \"type\": \"meta\", \"title\": \"Welcome\" }, { \"type\": \"text\", \"content\": \"Thanks for signing up.\" }] }"
    • addedInput schema / properties / content / properties
      Added value: +{
      +  "brand": {
      +    "additionalProperties": {},
      +    "description": "Inline brand overrides",
      +    "type": "object"
      +  },
      +  "elements": {
      +    "description": "Elemental nodes. Channel and group containers nest to any depth",
      +    "items": {
      +      "anyOf": [
      +        {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "channels": {
      +                  "description": "Restrict this element to these channels",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "content": {
      +                  "description": "The text to render",
      +                  "type": "string"
      +                },
      +                "format": {
      +                  "const": "markdown",
      +                  "description": "Set to \"markdown\" to render markdown",
      +                  "type": "string"
      +                },
      +                "if": {
      +                  "description": "Expression; the element renders only when truthy",
      +                  "type": "string"
      +                },
      +                "loop": {
      +                  "description": "Expression resolving to a list to repeat this element over",
      +                  "type": "string"
      +                },
      +                "ref": {
      +                  "description": "Reference name for this element",
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "text",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "content"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "channels": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +                },
      +                "if": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +                },
      +                "loop": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +                },
      +                "ref": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +                },
      +                "title": {
      +                  "description": "Message title (email subject, push title, etc.)",
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "meta",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "align": {
      +                  "enum": [
      +                    "center",
      +                    "left",
      +                    "right",
      +                    "full"
      +                  ],
      +                  "type": "string"
      +                },
      +                "altText": {
      +                  "type": "string"
      +                },
      +                "channels": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +                },
      +                "href": {
      +                  "description": "Link the image points to",
      +                  "type": "string"
      +                },
      +                "if": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +                },
      +                "loop": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +                },
      +                "ref": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +                },
      +                "src": {
      +                  "description": "Image URL",
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "image",
      +                  "type": "string"
      +                },
      +                "width": {
      +                  "description": "Rendered width, e.g. \"300px\"",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "src"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "actionId": {
      +                  "type": "string"
      +                },
      +                "align": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/2/properties/align"
      +                },
      +                "backgroundColor": {
      +                  "type": "string"
      +                },
      +                "channels": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +                },
      +                "content": {
      +                  "description": "Button or link label",
      +                  "type": "string"
      +                },
      +                "href": {
      +                  "description": "URL the action opens",
      +                  "type": "string"
      +                },
      +                "if": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +                },
      +                "loop": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +                },
      +                "ref": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +                },
      +                "style": {
      +                  "enum": [
      +                    "button",
      +                    "link"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "action",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "content",
      +                "href"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "channels": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +                },
      +                "color": {
      +                  "type": "string"
      +                },
      +                "if": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +                },
      +                "loop": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +                },
      +                "ref": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +                },
      +                "type": {
      +                  "const": "divider",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "align": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/2/properties/align"
      +                },
      +                "borderColor": {
      +                  "type": "string"
      +                },
      +                "channels": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +                },
      +                "content": {
      +                  "type": "string"
      +                },
      +                "if": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +                },
      +                "loop": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +                },
      +                "ref": {
      +                  "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +                },
      +                "textStyle": {
      +                  "enum": [
      +                    "text",
      +                    "h1",
      +                    "h2",
      +                    "subtext"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "quote",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "content"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "channel": {
      +              "description": "Channel these elements target, e.g. \"email\", \"push\", \"inbox\"",
      +              "type": "string"
      +            },
      +            "channels": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +            },
      +            "elements": {
      +              "description": "Elements rendered for this channel",
      +              "items": {
      +                "$ref": "#/properties/content/properties/elements/items"
      +              },
      +              "type": "array"
      +            },
      +            "if": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +            },
      +            "loop": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +            },
      +            "raw": {
      +              "additionalProperties": {},
      +              "description": "Channel-native payload passed through untouched",
      +              "type": "object"
      +            },
      +            "ref": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +            },
      +            "type": {
      +              "const": "channel",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "channel"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "channels": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/channels"
      +            },
      +            "elements": {
      +              "description": "Grouped elements",
      +              "items": {
      +                "$ref": "#/properties/content/properties/elements/items"
      +              },
      +              "type": "array"
      +            },
      +            "if": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/if"
      +            },
      +            "loop": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/loop"
      +            },
      +            "ref": {
      +              "$ref": "#/properties/content/properties/elements/items/anyOf/0/anyOf/0/properties/ref"
      +            },
      +            "type": {
      +              "const": "group",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "elements"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  "version": {
      +    "const": "2022-01-01",
      +    "description": "Elemental schema version",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / content / required
      Added value: +[
      +  "version",
      +  "elements"
      +]
    • addedInput schema / properties / content / type
      Added value: +"object"
    • addedInput schema / properties / providers / additionalProperties
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "if": {
      +      "description": "Expression; the provider is used only when truthy",
      +      "type": "string"
      +    },
      +    "override": {
      +      "additionalProperties": {},
      +      "description": "Provider-native payload fields merged into the request",
      +      "type": "object"
      +    },
      +    "timeouts": {
      +      "description": "Provider timeout in ms",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / providers / description
      Previous value: -"Provider-specific routing configuration"New value: +"Per-provider configuration, keyed by provider name. Example: { \"sendgrid\": { \"override\": { \"from\": \"noreply@example.com\" } } }"
    • addedInput schema / properties / providers / type
      Added value: +"object"
    • addedInput schema / properties / routing / additionalProperties
      Added value: +false
    • changedInput schema / properties / routing / description
      Previous value: -"Message routing configuration"New value: +"Message routing tree. Example: { \"method\": \"single\", \"channels\": [\"email\", \"sms\"] }"
    • addedInput schema / properties / routing / properties
      Added value: +{
      +  "channels": {
      +    "description": "Channels to attempt, in order. Entries may be names or config objects",
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "channel": {
      +              "description": "Channel name",
      +              "type": "string"
      +            },
      +            "config": {
      +              "additionalProperties": {},
      +              "type": "object"
      +            },
      +            "if": {
      +              "type": "string"
      +            },
      +            "method": {
      +              "enum": [
      +                "all",
      +                "single"
      +              ],
      +              "type": "string"
      +            },
      +            "providers": {
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "config": {
      +                        "additionalProperties": {},
      +                        "type": "object"
      +                      },
      +                      "if": {
      +                        "type": "string"
      +                      },
      +                      "metadata": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "utm": {
      +                            "$ref": "#/properties/channels/additionalProperties/properties/metadata/properties/utm"
      +                          }
      +                        },
      +                        "type": "object"
      +                      },
      +                      "name": {
      +                        "description": "Provider name",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "name"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "string"
      +                  }
      +                ]
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "channel"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "$ref": "#/properties/routing/properties/channels/items/anyOf/1/properties/providers/items/anyOf/0"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  "method": {
      +    "description": "\"all\" delivers to every channel; \"single\" stops after the first success",
      +    "enum": [
      +      "all",
      +      "single"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / routing / required
      Added value: +[
      +  "method",
      +  "channels"
      +]
    • addedInput schema / properties / routing / type
      Added value: +"object"
    • changedInput schema / required
      Previous value: -[
      -  "tenant_id",
      -  "template_id"
      -]New value: +[
      +  "tenant_id",
      +  "template_id",
      +  "content"
      +]
  3. Added

TDQS

A3.5/5.0
Behavior4/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 adds the key behavioral fact that the save lands as a draft unless `published` is true. It still does not say what happens to the prior template content on replace, but the draft/publish semantic is genuine added context.

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?

A single front-loaded sentence with the operative condition (`draft unless published is true`) surfacing early. No filler or redundancy.

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 a tool with a deeply nested 8-parameter schema and no output schema, the description covers the essential draft/publish behavior but omits tenant-scoping implications and what replacement does to existing versions. Adequate but with clear gaps given the 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 100%, so all 8 parameters, including the nested content/routing/channels trees, are already documented in the schema with examples. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb pair (create or replace) and resource (tenant notification template), which is clear at a glance. It does not explicitly differentiate from close siblings like replace_notification or create_notification, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as replace_notification or publish_tenant_template. The parenthetical about drafts is behavioral, not usage routing.

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