Skip to main content
Glama
Mailbuttons MCP Server

Mailbuttons MCP Server

Official
by mailbuttons

Scaffold a Mailbuttons integration

mailbuttons_scaffold_integration
Idempotent

Generates a governed send wrapper and inbound webhook handler for a chosen stack, wired to an existing sandbox inbox. Keeps API keys in env vars; handles blocked or draft_pending_approval responses.

Instructions

Build-time, sandbox-only. Writes a governed send wrapper and an inbound webhook handler for the chosen stack, wired to an existing sandbox inbox. Generated code reads MAILBUTTONS_API_KEY from the env (never inlined), handles blocked / draft_pending_approval as expected outcomes, and never reconstructs quarantined bodies. Grants nothing.

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": {
      "stack": "<stack>",
      "inbox_id": "<inbox_id>"
    },
    "name": "mailbuttons_scaffold_integration"
  }
}

Input Schema

NameRequiredDescriptionDefault
stackYesTarget framework. Detect it from the repo; ask the user if ambiguous.
outDirNoDirectory to write example files into. Defaults to ./mailbuttons.
inbox_idYesThe existing SANDBOX inbox id to wire the example code to.

Output Schema

NameRequiredDescriptionDefault
filesYesAbsolute paths of the files written.
notesYes
stackYes
referenceYesThe references/*.md consulted for idioms (or a note that it was missing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare the safety profile (not read-only, not destructive, idempotent, closed-world); the description adds substantive behavior: generated code reads MAILBUTTONS_API_KEY from env and never inlines it, treats blocked and draft_pending_approval as expected outcomes, never reconstructs quarantined bodies, and 'Grants nothing' (no permissions/credentials created). For a file-writing tool this is unusually complete disclosure of side effects and security posture.

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?

Two densely packed sentences, front-loaded with the 'Build-time, sandbox-only' constraint, then the generated artifacts and their guarantees. No filler or redundant restatement of the title or schema.

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?

With an output schema and full annotation coverage, the description needn't explain return values, and it does cover prerequisites, artifacts, and security behavior. The one gap is what happens to files already present in outDir (overwrite vs. skip) — idempotentHint suggests re-run safety but the write semantics against existing content are unstated.

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 coverage is 100%, with per-parameter descriptions (including 'Detect it from the repo; ask the user if ambiguous' for stack and the sandbox-inbox constraint for inbox_id), so the schema does the heavy lifting. The description only reinforces that the inbox must be an existing sandbox inbox and that output targets 'the chosen stack' — marginal added meaning, which matches the baseline 3.

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 description names a specific action and concrete artifacts — 'Writes a governed send wrapper and an inbound webhook handler' — which is far more informative than the title's 'Scaffold an integration'. It implicitly separates itself from siblings like mailbuttons_generate_policy or mailbuttons_run_selftest by focusing on generating integration code, though it never names an alternative explicitly.

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?

'Build-time, sandbox-only' plus 'wired to an existing sandbox inbox' tells the agent both the lifecycle phase and the prerequisite state (an inbox must already exist and be a sandbox inbox). There is no explicit when-not or named-sibling routing, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.