Skip to main content
Glama

validate_sequence

Read-onlyIdempotent

Walk a sequence tree and return structural issues (missing body on message/follow_up/inmail, duplicate step ids, invalid branch keys, branches on non-branchable steps, etc.) before you call create_campaign. Returns { valid: bool, issues: [...], warnings?: [...] }; warnings lists any unfilled [bracketed placeholders], which block launch. Call this after every meaningful edit when iterating on a sequence with the user, catches errors at the agent layer instead of waiting for the API to reject at activation.

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": {
      "sequence": "<sequence>"
    },
    "name": "validate_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequenceYesThe sequence tree to validate. Same shape as create_campaign's sequence arg.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sequence / items / properties / variants / description
      Previous value: -"A/Z test: EXTRA message variants for connection_request/message/follow_up/inmail. `body` is Variant A; these are extras. 1+ present => sends split evenly across [body, ...variants]; the campaign tracks reply/accept per variant (get_campaign_ab_stats). Omit for no test."New value: +"A/Z test: EXTRA message variants for connection_request/message/follow_up/inmail. `body` is Variant A; these are extras. 1+ present => sends split evenly across [body, ...variants]; the campaign tracks reply/accept per variant (get_campaign_stats with include ab_tests). Omit for no test."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered by structured data. The description adds real value on top with the return shape, the rule that placeholder warnings block launch, and the agent-layer-vs-API failure rationale. It omits anything about cost, latency, or depth limits, so it is solid but not exhaustive beyond annotations.

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-loads purpose, then the return contract, then the usage timing, with no filler sentences. It is dense but every clause carries information; the single long paragraph is the only mild weakness in structure.

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?

No output schema exists, and the description compensates by naming the returned fields (valid, issues, warnings) and explaining what warnings mean. Combined with the exhaustive nested schema, an agent has everything needed to call it and interpret the result.

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?

With one required parameter at 100% schema coverage, the baseline is 3; the description earns an extra point by cross-referencing that the tree is 'the same shape as create_campaign's sequence arg,' which tells the agent to reuse the schema it already knows and clarifies the validation is purely structural.

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 concrete verb and resource ('Walk a sequence tree and return structural issues') and enumerates the exact defect classes it detects (missing body, duplicate step ids, invalid branch keys, branches on non-branchable steps). This makes it clearly distinct from create_campaign, which it explicitly references as the downstream action.

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 explicit timing guidance: call before create_campaign and 'after every meaningful edit when iterating on a sequence with the user.' It also explains the reason (catch errors at the agent layer instead of the API rejecting at activation). It does not mention preview_sequence or any other sibling as an alternative, so it stops short of full when-not guidance.

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