Skip to main content
Glama

Send a newsletter update

send_newsletter

Email a plain-text update to everyone who confirmed their subscription. Steps: (1) test: true emails it to the owner only; (2) show the owner and wait for their yes; (3) call again with the same subject and body and confirm: true to send to all subscribers (in batches over a few minutes). Without test or confirm it only returns the recipient count and the exact email text. The site name, why they get it and an unsubscribe link are added automatically.

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": {
      "site": "<site>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "send_newsletter"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesPlain text. Blank lines separate paragraphs. Links as full URLs.
siteYesSite slug (e.g. "kopitiam-muar") or id
testNoSend only to the owner, marked as a test
confirmNoSend to all subscribers. Only after a test and the owner's yes.
subjectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint false, openWorld true, destructiveHint false), the description discloses real behavioral context: sends happen in batches over a few minutes, the site name, reason-for-receipt and unsubscribe link are appended automatically, and the unconfirmed no-flag call is a safe preview. That is exactly the extra operational detail annotations cannot convey.

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?

The lead sentence is front-loaded with the core action and the numbered steps make the protocol scannable. It is slightly dense and parenthesis-heavy, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter mutation-style tool with no output schema, the description covers the critical unknowns: the two-phase confirmation flow, the auto-appended footer, batching delay, and what the unconfirmed call returns. An agent could invoke it correctly from this text alone.

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 80% schema coverage the baseline is 3, but the description adds genuine meaning to test and confirm by tying them to a workflow (test = owner only, confirm = all subscribers, only after approval) and clarifies the body format. Subject and site receive no extra explanation, keeping it below a 5.

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?

The first sentence names a specific verb and resource plus audience scope: email a plain-text update to everyone who confirmed their subscription. It does not name a sibling explicitly, but the dry-run behavior (returning recipient count and email text) implicitly separates it from a status-checking tool like newsletter_status.

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?

The description spells out an ordered protocol: test first, show the owner and wait for their yes, then call again with identical subject/body and confirm:true. It also defines the default no-flag behavior, leaving no ambiguity about when to use each mode.

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