Skip to main content
Glama
Resend Email MCP

Resend Email MCP

Get Automation Runs

get-automation-runs
Read-only

List an automation's runs or inspect a specific run to see step status, outputs, and failure reasons; use it to verify execution and debug why a run failed.

Instructions

Purpose: List runs for an automation, or get details of a specific run.

Modes:

  • With runId: Returns detailed run info with step-by-step execution status, outputs, and errors. Failed and skipped runs include the reason they ended.

  • Without runId: Lists runs for the automation with optional status filter. Failed and skipped runs include the reason they ended (for example missing_variable or contact_deleted).

When to use:

  • User wants to see if an automation is working

  • User wants to debug a failed automation run

  • User asks "why did this automation fail?" or "show me recent runs"

Run statuses:

  • running: still going, including while it waits in a delay or wait_for_event step

  • quota_exceeded: paused until the team has sending quota again

  • completed: every step on the run's path finished

  • failed: a step hit an error it could not recover from. Something needs fixing

  • cancelled: stopped on purpose, not by an error. Someone cancelled the run, stopped the automation and its runs, or disabled or deleted the automation while the run was in progress

  • skipped: ended on its own because it could no longer continue. Not an error, nothing to fix, and it cannot be cancelled. The step it ended at has the reason, for example contact_deleted when the run's contact was deleted while the run was in progress

Every run is for one contact, the one named in the event that triggered it. A run cannot go on without it. For cancelled and skipped runs, steps that already finished stay finished and emails already sent are not recalled. Step statuses: pending, running, completed, failed, skipped, waiting

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": {
      "automationId": "<automationId>"
    },
    "name": "get-automation-runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoCursor for forward pagination (for list mode).
limitNoNumber of runs to retrieve (for list mode).
runIdNoSpecific run ID to get details for. If omitted, lists all runs.
beforeNoCursor for backward pagination (for list mode).
statusNoFilter runs by status (for list mode only).
automationIdYesThe automation ID or Resend dashboard URL (e.g. https://resend.com/automations/<id>)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "running",
      -  "quota_exceeded",
      -  "completed",
      -  "failed",
      -  "cancelled"
      -]New value: +[
      +  "running",
      +  "quota_exceeded",
      +  "completed",
      +  "failed",
      +  "cancelled",
      +  "skipped"
      +]
  2. Changed1 schema field changedv2.28.2
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "running",
      -  "completed",
      -  "failed",
      -  "cancelled"
      -]New value: +[
      +  "running",
      +  "quota_exceeded",
      +  "completed",
      +  "failed",
      +  "cancelled"
      +]
  3. Changed1 schema field changedv2.12.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observedv2.10.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description goes far beyond that by interpreting every status value, explaining that failed and skipped runs carry an end reason, and warning that completed steps and already-sent emails are not rolled back on cancelled/skipped runs. That is exactly the kind of context an agent needs to report results accurately.

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?

Heavy use of bold headers and bullets keeps a long description scannable and front-loads the mode split before the status reference material. The trailing 'Step statuses' line is marginal since no parameter filters on step status, but it supports interpreting the detailed run output.

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?

With no output schema, the description carries the burden of explaining return content and does so for both modes (step-by-step status, outputs, errors, end reasons). For a 6-parameter tool with one required ID, the only omission is pagination behavior, which is minor given the schema documents the cursors.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning on top: it explains the `runId` mode switch and gives semantic definitions for each `status` enum value that the schema only lists as bare strings. It says nothing about `after`/`before`/`limit` pagination, which is the remaining gap.

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?

The opening line names a specific verb and resource and explicitly splits the tool into two modes: listing runs for an automation, or fetching one run's details via `runId`. An agent can immediately tell this is about run-level execution data rather than automation configuration, which distinguishes it from `get-automation`.

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?

The 'When to use' block gives three concrete triggers, including verbatim user phrasings like "why did this automation fail?", which is strong routing guidance. It stops short of naming alternatives or exclusions (e.g., pointing to `cancel-automation-run` when the user wants to stop a run), so it lands at 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools