Skip to main content
Glama

Save reply template

save_reply_template

Creates a reply template, or rewrites one when templateId is given. Templates are offered to the team when replying to comments or DMs. categoryId or categoryTitle puts it in a category (an existing category of that title is reused, otherwise one is created). Comment templates allow 2200 characters, message templates 1000. Team members need permission to manage comments (or messages).

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": {
      "brand": "<brand>",
      "text": "<text>"
    },
    "name": "save_reply_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe template text. The built-in placeholder {{username}} is replaced automatically when the template is used: with an @-mention of the commenter, or with the contact's name in DMs.
typeNoKind of a new template. Ignored when templateId is given.comment
brandYes
categoryIdNoCategory id, or null to remove it from its category.
templateIdNoId of the template to rewrite. Omit to create one.
categoryTitleNoCategory title, used instead of categoryId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), it discloses real side effects an agent would otherwise miss: passing categoryTitle may create a category when none matches, and categories are reused by title. It also states the per-type character ceilings and the authorization requirement, which the annotations do not carry.

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?

Four tight sentences, front-loaded with the core verb and mode, then side effects, constraints, and permissions in descending order of importance. No filler and nothing repeated from the schema verbatim.

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?

Covers the mutation semantics, category side effect, sizing limits, and permissions, which is substantial for a 6-parameter write tool with no output schema. The main gap is return behavior: it never says what comes back (e.g., the created or updated template id) after a successful save.

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 already 83%, so the baseline is 3; the description earns extra by explaining the templateId create-versus-rewrite switch and the categoryId/categoryTitle interaction including category creation. It also ties the length limit to the type enum (2200 for comment, 1000 for message), which the schema alone only partially conveys via maxLength.

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 plus the dual mode: creates a template, or rewrites the one identified by templateId. An agent can tell create-in-place from update without opening the schema, and the domain (reply templates for comments/DMs) is named 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?

Gives clear context: templates are offered to the team when replying to comments or DMs, and categoryId/categoryTitle controls placement. It also names the permission prerequisite to manage comments or messages. It stops short of explicit when-not-to-use guidance or naming sibling alternatives such as list_reply_templates or generate_reply_suggestions.

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