Skip to main content
Glama

Save a sequence

createSequenceTemplate
Idempotent

Saves a new reusable message sequence, for example from a campaign's sequence. Existing campaigns and saved sequences are not changed. Retrying with the same idempotencyKey and input returns the first result instead of repeating the action.

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": {
      "body": "<body>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "createSequenceTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
idempotencyKeyYesA unique key for this action. Reuse it only to retry the same call with the same input; use a new key for a new action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the description's added value is in specifics: it states that existing campaigns and saved sequences are untouched, and it explains the retry contract (same key plus same input returns the first result rather than repeating). It does not describe the response body or any permission requirements, keeping it below a 5.

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?

Three short sentences, front-loaded with the core action, then scope, then retry semantics. The idempotency sentence partly restates idempotentHint=true, but it adds the concrete "returns the first result" behavior, so it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a non-destructive, idempotent create with no output schema, the description covers side effects and retries adequately, but the nested body remains the largest unknown: an agent cannot tell from the description how `sequence`, `source_template_id`, and the campaign revision/strategy ids relate, nor what the call returns (e.g., the new template id).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: idempotencyKey is documented in the schema, but the nested body object has five properties (name, sequence, description, source_template_id, campaign_strategy_id, campaign_messaging_revision_id) with no descriptions, and `sequence` is an untyped free-form field. The description mentions idempotency reuse (already in the schema) and hints at copying from a campaign, but never explains what `sequence` should contain or how source_template_id differs from campaign_strategy_id, so it does not compensate for the coverage gap.

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?

States a specific verb and resource ("saves a new reusable message sequence") and clarifies the typical input source ("for example from a campaign's sequence"). It distinguishes creation from get/list/archive siblings by implication, but never explicitly addresses duplicateSequenceTemplate, which also produces a new saved sequence, so the boundary is not fully clean.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "for example from a campaign's sequence" gives an implied usage context: snapshotting an existing campaign sequence into a reusable template. There is no explicit when-not guidance and no named alternative for the common confusion with duplicateSequenceTemplate or createCampaign, leaving selection partly to inference.

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