Skip to main content
Glama

asksteps: create an email or SMS template

asksteps_create_message_template

Creates an email or SMS template. Requires "automation:write". Nothing is sent: a new template is used by no workflow and no process, so it has no effect until a person attaches it to a process transition, an email block or a workflow in the studio. Block types are limited to heading, text, button, image (absolute https source, no upload), divider, spacer and booking-details — a block of type "html" is rejected, and sender, reply-to and sender domain are not settable. Shortcodes like {{contact.firstname}} are checked; call asksteps_get_automation_catalog for block fields, shortcodes and limits. Answers with the issues (path, code, shortcode) when the content is wrong, and with the template as saved — after cleaning, for example a dangerous link target removed.

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": {
      "spec": "<spec>"
    },
    "name": "asksteps_create_message_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe template: name, channel, category, defaultLocale and content.

Output Schema

NameRequiredDescriptionDefault
urlNoPath of the editor in the asksteps studio.
noteYesOne or two sentences for the user.
specNoThe template as saved — after cleaning (for example a dangerous link target removed). Check it against what you meant to send.
issuesNoThe problems found, with path and code (and the shortcode when it is one). Empty unless status is "invalid".
statusYesOutcome. One of: "created" (not used by any workflow or process yet, so nothing is sent), "updated", "invalid" (the issues say exactly what to fix; nothing was saved), "stale" (the template was changed since you read it: read it again and redo the change), "not_editable" (it contains an html block), "confirmation_required" (a workflow or process in use sends from it and the account has not authorised an agent to change it: NOTHING was written, give the user the url), "limit_reached" (the account holds the maximum number of templates), "rate_limited" (too many changes to live objects in the last minute), "not_found", "not_connected", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do.
inLiveUseNoWhether an active workflow or an active or paused process sends from this template.
updatedAtNoPass this value as expected_updated_at to the next change.
templateIdNoThe id of the template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) by disclosing the required auth scope, that the operation has no runtime effect until the template is attached to a process or workflow, hard content restrictions (no "html" block, no uploads, sender/reply-to not settable), shortcode validation, and post-save sanitization such as removing a dangerous link target. It also states the two response shapes — validation issues with path/code/shortcode, or the template as saved after cleaning.

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?

Purpose and the no-side-effect guarantee are front-loaded, and the dense run-on construction still packs only substantive facts. Minor waste exists in re-listing the block types and the image/https rule that the schema already enumerates verbatim.

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 create tool with a nested spec object, the description covers auth, side effects, content restrictions, the catalog cross-reference needed to build the spec, and both success and failure outcomes — even though the output schema already exists. An agent has everything needed to call it correctly without opening a sibling.

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 baseline is 3; the description earns extra by adding constraints the schema does not express, notably that sender, reply-to and sender domain are not settable and that a "dangerous link target" can be removed from saved content. It largely restates the block-type enumeration already present in the schema, which caps it below 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?

Opens with a specific verb and resource: "Creates an email or SMS template," which immediately separates it from read-side siblings such as asksteps_get_message_template. It does not, however, name or contrast the near-neighbour alternatives asksteps_update_message_template, asksteps_save_as_template or asksteps_create_from_template, so an agent must infer the boundary from the verb alone.

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 a concrete usage precondition ("Requires automation:write") and a clear effect statement ("Nothing is sent ... no effect until a person attaches it to a process transition, an email block or a workflow"), plus an explicit routing hint to asksteps_get_automation_catalog for block fields and limits. What is missing is any exclusion rule such as "use asksteps_update_message_template to change an existing template".

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