Skip to Content

retry_failed_rows

Send the failed rows of a send_template_bulk batch again, as the app's "Retry failed": each goes back in the queue with fresh attempts and is sent in the background (poll get_bulk_batch).

destructivewaits for confirmSends, cancels or emails people. Clients ask you before running it.

What it does

Send the failed rows of a send_template_bulk batch again, as the app's "Retry failed": each goes back in the queue with fresh attempts and is sent in the background (poll get_bulk_batch). Pass row to retry just that one. A row marked needs_fix (the email provider refused it or it bounced) is left out: retrying as is can't help, so change it with fix_bulk_row instead (asking for that row alone is refused, 409 needs_fix). Safe to repeat: a row already queued or sent is never touched and no envelope is sent twice. With nothing to retry it does nothing and says so (requeued: 0). This emails real people. Two steps: called WITHOUT confirm: true it does nothing and returns an error saying what it would do (the details are in structuredContent); show that to the user and, once they agree, call again with the same arguments and confirm: true.

Two calls

Called without confirm: true, it does nothing and returns an error that says what would happen. Show that to the user, then call again with the same inputs and confirm: true.

Inputs

NameTypeDescription
batch_idrequiredstringbatch_id from send_template_bulk.Up to 64 characters
rowintegerOnly this row (the number get_bulk_batch reports). Default: every failed row.1 to 100000
confirmbooleantrue to really do it. Without it nothing happens: you get an error describing what would happen, to show the user.

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "retry_failed_rows",
    "arguments": {
      "batch_id": "<batch_id>"
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "properties": {
    "batch_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "batch_id from send_template_bulk."
    },
    "row": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000,
      "description": "Only this row (the number get_bulk_batch reports). Default: every failed row."
    },
    "confirm": {
      "type": "boolean",
      "description": "true to really do it. Without it nothing happens: you get an error describing what would happen, to show the user."
    }
  },
  "required": [
    "batch_id"
  ],
  "additionalProperties": false
}

On this page