Skip to main content
Glama

upsert_brevo_template

DestructiveIdempotent

Create (no id) or update (with id) a Brevo email template (POST /smtp/templates | PUT /smtp/templates/{id}). Create requires templateName, subject, sender ({ name, email } or { id }) and htmlContent or htmlUrl. Optional: id, replyTo, toField, tag, isActive, attachmentUrl.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_brevo_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoBrevo template ID to update; omit to create a new template
tagNoTag for grouping the template in Brevo
senderNoSender as { name, email } or { id } of a Brevo sender
htmlUrlNoURL from which Brevo loads the HTML body
replyToNoReply-to email address
subjectNoSubject line
toFieldNoPersonalised To field of the template
isActiveNoWhether the template is active
htmlContentNoHTML body of the template (or use htmlUrl)
templateNameNoName of the template (required when creating)
attachmentUrlNoURL of a file attached to mails sent with this template

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / attachmentUrl / description
      Added value: +"URL of a file attached to mails sent with this template"
    • addedInput schema / properties / htmlContent / description
      Added value: +"HTML body of the template (or use htmlUrl)"
    • addedInput schema / properties / htmlUrl / description
      Added value: +"URL from which Brevo loads the HTML body"
    • addedInput schema / properties / id / description
      Added value: +"Brevo template ID to update; omit to create a new template"
    • addedInput schema / properties / isActive / description
      Added value: +"Whether the template is active"
    • addedInput schema / properties / replyTo / description
      Added value: +"Reply-to email address"
    • addedInput schema / properties / sender / description
      Added value: +"Sender as { name, email } or { id } of a Brevo sender"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
    • addedInput schema / properties / tag / description
      Added value: +"Tag for grouping the template in Brevo"
    • addedInput schema / properties / templateName / description
      Added value: +"Name of the template (required when creating)"
    • addedInput schema / properties / toField / description
      Added value: +"Personalised To field of the template"
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is carried by structured data. The description adds genuine behavioral detail in the form of conditional creation requirements and the HTTP verb semantics, but it never addresses overwrite semantics on update (does omitting htmlContent clear the body?), required permissions, or Brevo-side rate limits.

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?

Two dense sentences, front-loaded with the create/update decision before the field lists. The parenthetical endpoint notation and the compressed optional list are slightly telegraphic, but no sentence is wasted.

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 an 11-parameter mutation tool with a nested sender object and no output schema, the description covers the create/update split, the required-field set, and the optional-field set — enough to call it correctly. The remaining gap is update semantics for omitted fields, which matters for a destructiveHint=true operation.

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 100%, so baseline would be 3, but the description earns extra credit by supplying conditional requiredness that the schema cannot express: the schema lists zero required properties, while the description states create requires templateName, subject, sender, and one of htmlContent/htmlUrl. That single sentence prevents the most likely invocation error.

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?

States a specific verb+resource pair and, more importantly, splits the operation into two clearly named modes: create when no id is supplied, update when id is supplied. The endpoint mapping (POST /smtp/templates vs PUT /smtp/templates/{id}) reinforces which resource is touched, so an agent can distinguish this from get_brevo_template or send_brevo_template_test without opening a 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?

The create-vs-update selection rule is explicit and actionable: omit id to create, pass id to update. It does not name sibling alternatives (e.g., read with get_brevo_template, test with send_brevo_template_test), so an agent must infer routing from names alone, but the in-tool guidance is unambiguous.

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.