Skip to main content
Glama

campaigns_action_retry

A failed API step holds only its own lead (status 15, Action Failed); this puts it back to Pending so the next scheduler tick (≤10 min) runs it again. With run_now=true it runs immediately and the response carries the outcome (35 Step Done or 15 Action Failed). Side effects: this makes the real external call again; profiles that send {{run.key}} as an Idempotency-Key are protected from double effects.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/logs/{log_sqid}/retry/

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": {
      "log_sqid": "<log_sqid>",
      "sqid": "<sqid>"
    },
    "name": "campaigns_action_retry"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
run_nowNo
log_sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the ≤10 min scheduler delay, the status transitions (15 → Pending → 35 or 15), and, critically, that the real external call is re-issued. It even flags the {{run.key}} Idempotency-Key protection against double effects, which is exactly the kind of consequence an agent needs before mutating.

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 state-transition and delay are front-loaded, then the run_now branch, then side effects — a sensible order. It is dense and information-rich rather than padded, though the bolded side-effects sentence plus the trailing Method line make it longer than strictly necessary.

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 three-parameter mutation tool with no annotations and no output schema, the definition covers preconditions, timing, state transitions, response values for run_now, and duplicate-effect risk. The only unanswered question is what the response looks like when run_now is false, which is a minor omission.

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 description coverage is 0%, so the description must compensate, and it largely does: run_now is fully explained (default false, immediate execution, outcome returned) and the POST path clarifies that sqid is the campaign and log_sqid the step log. The sqid parameter itself is never described in prose, leaving a small 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?

Names a specific verb (retry) and a specific resource (a single failed API step / lead at status 15), and states the resulting state change to Pending. It does not explicitly distinguish itself from the sibling campaigns_action_retry_failed, so an agent must infer the single-vs-bulk split from names alone.

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?

Clearly frames the precondition (a step in status 15, Action Failed) and explains the run_now branch as an explicit choice between waiting for the next scheduler tick and executing immediately. It stops short of stating when NOT to use this tool or naming an alternative sibling to prefer.

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.