Skip to main content
Glama

get_campaign_sequence_steps_tool

Read-only

Lists a campaign's sequence steps WITH their step ids (each step's _id), channels, wait days, and content. The returned _id values are the campaign's real step ids, usable wherever a sequenceStepId is required. Steps form a tree: a step with channel 'condition' (conditionType 'invite_accepted' or 'clicked_link'; its daysBetween is the window in days) is always the last step of its list and splits the sequence into two lanes, the steps whose parentStepId is the condition's id with branchKey 'yes' or 'no'. Root-list steps have parentStepId null. sequenceNumber is the step's position in that tree, read depth-first (a condition, then its yes lane, then its no lane). An A/B split is a condition with conditionType 'ab_split' and daysBetween 0: its two lanes are its arms, branchKey 'a' and 'b' (read a then b), and its splitArms holds each arm's optional name (label) and whole-percent weight, the share of contacts routed to that arm (each contact's arm comes from a fixed hash of the contact and the split, so it keeps its arm).

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": {
      "campaignId": "<campaignId>"
    },
    "name": "get_campaign_sequence_steps_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnly/non-destructive/closed-world, and the description adds substantial semantics beyond that: the tree layout, condition step types (invite_accepted, clicked_link, ab_split), depth-first sequenceNumber ordering, branchKey values, and the deterministic hash that pins a contact to an A/B arm. That last detail is exactly the kind of non-obvious behavior an agent could not get from annotations or schema.

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?

The core purpose is front-loaded in the first sentence, with return-shape detail following in a logical order (ids, then tree, then sequenceNumber, then A/B splits). It is dense and long, but given there is no output schema most sentences carry real parsing value; only the splitArms weight/label wording could be trimmed.

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?

With no output schema, the description bears the full burden of explaining return structure, and it does so thoroughly for a nested tree payload. Remaining gaps are minor: empty-campaign behavior, ordering guarantees at the root level, and any size limits are unaddressed.

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

Parameters3/5

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

There is only one parameter (campaignId) with 0% schema description coverage, and the description never clarifies its expected form (id vs slug) or what happens with an invalid or empty campaign. The single obvious parameter keeps this at minimum-viable rather than failing.

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 ("Lists a campaign's sequence steps") and immediately enumerates what comes back: step _ids, channels, wait days, content. It clearly differs from mutating siblings like delete_all_sequence_steps_tool or reorder_sequence_steps_tool, though it never names a sibling such as preview_campaign_sequence_tool to draw the line explicitly.

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?

Usage is implied rather than stated: "usable wherever a sequenceStepId is required" hints this is the lookup that feeds update/delete/reorder calls. There is no explicit when-to-use versus preview_campaign_sequence_tool or when-not guidance, so an agent must infer the routing.

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.