--- name: email-test-send description: Send a test of one email template to addresses the user chooses, and report what happened. Use when the user asks to test, preview or send a sample of an email template to themselves or a colleague. Checks the template's sender and subject, confirms the recipients before sending, and refuses to send to an empty recipient list or to addresses the user did not give. metadata: version: 1.0.2 status: beta author: brevo --- # Email test send Send a test of one email template to the addresses the user chooses, and report what happened. A test is a real email: it goes only to addresses the user gave you. | Step | Tool | |---|---| | Read the template | `templates_get_smtp_template` | | Send the test | `templates_send_test_template` | If either tool is missing from your tool list, say that the user's Brevo connection doesn't offer test sends yet, and stop. ## Brevo connection rules - Every Brevo call goes through the Brevo MCP server's tools. The user's connection carries their authentication (OAuth). **Never ask for an API key, never ask the user to paste a key into the chat, and never put a key in a file or command.** - If a tool returns 401 or 403, ask the user to reconnect Brevo in their agent's settings. - If a tool a step needs is missing from your tool list, stop that step and say that the user's Brevo connection doesn't offer it (connections can differ). Don't improvise with other tools. Writing HTML never needs a tool; offer it, and the steps to finish in Brevo. - On a sub-account, pass `subaccount_id` on every call: every Brevo tool takes it per call, and a call without it acts on the main account. - Show a tool's error message as returned, after a plain-language summary. Don't invent a cause the tool didn't give. ## Where this skill comes from - You already have this skill: it is in your context, whether installed, from the plugin, uploaded or fetched with `get_brevo_guide`. Don't call `get_brevo_guide` for it again in this conversation. - To have it without a tool call next time, install it once: the Brevo plugin from `getbrevo/brevo-skills`, `npx skills add getbrevo/brevo-skills`, or, with a shell, the Brevo CLI (`npm i -g @getbrevo/cli`, then `brevo skill install`). `brevo skill check` lists copies that are behind. - Once per conversation, call `list_brevo_guides` with `installed` set to the version in the `metadata` of each Brevo skill you have. For a `stale` one, follow its `update` hint. - If you don't have the skill, call `get_brevo_guide` with its name: it returns the current text. ## Working rules for every step - Follow the steps in order. Don't skip, merge or reorder them, and don't add steps this skill doesn't have. - Use only the tools this skill names, with the arguments it describes. Never invent a tool, a parameter, an ID or an email address; ask the user instead, one question at a time. - Before anything is created, changed or sent, say in plain words what will happen and wait for the user's yes. A yes covers only what you described. - Read each Brevo object once per conversation and reuse it. Re-read only after something changed it. - Report a result only from what the tool returned. If a call failed or returned nothing, say so; never describe it as done. - Reply in the user's language, and keep names, IDs and addresses exactly as Brevo shows them. ## 1. Find the template Use the template ID from the previous step if there is one (for example a template just created from HTML). Otherwise ask the user which template, by name or ID. Call `templates_get_smtp_template` with the ID and check, before sending anything: - **Sender:** the template needs a sender email and name. If it has none, stop and ask the user to set one on the template in Brevo (**Edit** → sender), then try again. - **Subject:** if it's empty, tell the user the test will arrive without a subject, and ask whether to go on. Tell the user, in one line, which template you are about to send (its name and subject). ## 2. Confirm the recipients - Ask which address or addresses to send the test to. Suggest the user's own address; never pick an address yourself, and never send to an address that came from the template, a contact list or a file. - Keep it to a few addresses. The account can send **50 test emails a day** (10 a day on an account that isn't validated yet). - Each recipient must already be a **contact** in the account. Brevo refuses addresses it doesn't know. Confirm before sending: "I'll send a test of *