Skip to main content
Glama

asksteps: replace the content of a message template

asksteps_update_message_template
Idempotent

Changes a message template. Requires "automation:write". IMPORTANT: this REPLACES the content completely — call asksteps_get_message_template first, change what the user asked for, send the content back whole and pass its updatedAt as expected_updated_at: if someone changed the template in the meantime the answer is "stale" and nothing is overwritten. A template with an "html" block is refused ("not_editable"). A template that an active workflow or an active or paused process sends from can only be changed with the account's mandate "activate": without it the answer is "confirmation_required", NOTHING was written, and you hand the user the url. The channel cannot be changed.

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": {
      "template_id": "<template_id>",
      "expected_updated_at": "<expected_updated_at>",
      "spec": "<spec>"
    },
    "name": "asksteps_update_message_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesThe new template. name, category, defaultLocale and attachIcs stay when omitted; content replaces the stored content.
template_idYesThe template id.
expected_updated_atYesThe updatedAt value of asksteps_get_message_template (or of your last change).

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.6/5.0
Behavior4/5

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

Adds a lot beyond the annotations: the automation:write permission requirement, optimistic-concurrency staleness check, hard refusals (html block, channel change), and the guarantee that a confirmation_required answer wrote nothing. One residual gap is that it never states whether a successful full replacement is recoverable (no version history or rollback), which matters for an agent weighing a wholesale overwrite even though destructiveHint is false.

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 primary effect, then the pre-read requirement, then the failure modes in escalating order. The prose is dense and sentence-long compound clauses ("without it the answer is ... NOTHING was written, and you hand the user the url") cost a little readability, but nearly every clause carries operational value.

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 guarded mutation with nested spec and an output schema, everything an agent needs is present: auth scope, pre-read routine, concurrency token, refusal cases, approval path, and immutable fields. No essential behavior is left to inference.

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 baseline is 3, but the description adds real meaning: expected_updated_at must carry the updatedAt from the read or the last change, content must be sent whole (omitting it keeps stored content), and channel is create-only. It reinforces the required/optional split at the call level rather than restating field docs.

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?

"Changes a message template ... this REPLACES the content completely" states a specific verb, resource and exact update semantics, immediately distinguishing it from asksteps_get_message_template and asksteps_create_message_template. It also rules out fields it does not touch ("The channel cannot be changed").

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?

Gives an explicit required workflow (call asksteps_get_message_template first, edit only what the user asked, resend the whole content with updatedAt as expected_updated_at) plus the alternatives for each outcome: stale on concurrent edit, not_editable for html blocks, confirmation_required with a URL to hand the user when the mandate is missing.

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