Skip to main content
Glama

Set email design

set_email_design
Idempotent

Replace the workspace email design from a design.md file. Returns {brand}. Errors: invalid_design_md, invalid_brand (each has a fix), forbidden (needs a full scope key). Marketing email needs the ## Address section (CAN-SPAM). Next: render_email_preview.

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": {
      "design_md": "<design_md>"
    },
    "name": "set_email_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
design_mdYesThe whole design.md file: front matter (color, font, align, logo) then optional ## Header, ## Footer and ## Address sections. Get the current one with get_email_design and edit it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare idempotent, non-destructive and non-readOnly, and the description goes beyond them by enumerating failure modes with remediation hints (invalid_design_md, invalid_brand, forbidden needing a full scope key) and a compliance constraint. It does not explain whether existing sections not present in the new file are dropped, which is the main unstated behavior.

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?

Front-loaded with the action, followed by return value, error taxonomy, compliance note and next step, in roughly priority order with no filler. The telegraphic style ('Returns {brand}', 'each has a fix') is efficient but slightly cryptic on first read.

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 a one-parameter, non-destructive write with no output schema, the description covers action, return value, errors with remedies, a required content section and the follow-up call. The only real gap is what happens to design sections omitted from the supplied file.

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 the parameter is already documented in detail; the description still adds meaning by framing the payload as the whole design.md replacement rather than a partial update and by flagging the compliance-relevant Address section.

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 and resource ('Replace the workspace email design') with the source of truth ('from a design.md file'), and the companion read tool is named in the schema while the natural follow-up (render_email_preview) is named in the description. An agent can distinguish this from get_email_design without opening either 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?

Gives concrete usage context: marketing email requires the ## Address section for CAN-SPAM, and the next step is render_email_preview. It stops short of explicit when-not-to-use guidance or prerequisites for the forbidden/scope path, so it is clear context rather than a full routing rule.

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.