Skip to main content
Glama
Apify Run Health Monitor MCP Server

Apify Run Health Monitor MCP Server

Check the health of your Apify actors' runs

check_apify_run_health
Read-onlyIdempotent

Check Apify actor run health to surface failed, slow, empty, or stuck runs, returning per-actor verdicts, failure rates, and alert rows.

Instructions

Give your own Apify API token and the actors to check, or all. Returns one health row per actor for the window: run counts by status, failure rate, the latest run, median and slowest duration, slow runs, empty dataset runs, platform usage, a verdict (ok, warning, unhealthy, no_runs) with reasons, and a free alert row for each failed, timed out, aborted, empty, slow, or stuck run. With no token it writes one free row and reads nothing. Pay per event on Apify: 0.003 USD per actor checked.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_apify_run_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
actorsNoActor IDs, username/name, or Apify Console or Store URLs, one per line. Use the single word all to check every actor that started a run in the window. Store actors you run count too: their runs on your account are read.
max_runsNoMost runs to read from your run list, newest first, 100 to 50000 (default 10000). Each health row says when this limit cut the window short.
api_tokenNoYour own Apify API token, from Apify Console, Settings, API and Integrations. It is sent only to api.apify.com and is never stored, logged, or written to a row. A scoped token needs read access to actors, runs, and datasets. With no token, the run writes one free row and reads nothing.
min_itemsNoA succeeded run whose dataset holds fewer items than this counts as empty (default 1). Set 0 to skip the dataset check.
alert_rowsNoyes or no (default yes). Writes a free row for each problem run, newest first, up to 20 per actor.
max_actorsNoMost actors to check in one run, 1 to 1000 (default 100). With all, the actors with the most runs come first.
slow_factorNoA succeeded run that takes more than this many times the actor's median run time, and at least 30 s longer, counts as slow, 1.2 to 100 (default 2). Needs 3 or more succeeded runs in the window.
lookback_hoursNoHow far back to read runs, 1 to 2160 hours (default 24). Runs started in this window are counted.
max_charge_usdNoOptional. The run stops before a charge that would pass this amount. Rows already written stay, and one free row names the first actor not checked.
max_failure_pctNoAn actor whose failed plus timed out runs pass this share of its finished runs is marked unhealthy, 0 to 100 (default 10).
datasets_per_actorNoHow many of each actor's newest succeeded runs get their dataset item count read, 0 to 20 (default 3).
include_idle_actorsNoyes or no (default no). With actors set to all, also checks every actor your account owns that started no run in the window; each gets the verdict no_runs and is charged like any other actor checked.
count_aborted_as_failedNoyes or no (default no). Aborted runs are often stopped by hand, so by default they lower the verdict to warning but do not count in the failure rate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses cost (0.003 USD per actor checked), credential handling (token sent only to api.apify.com, never stored or logged, scoped-token permission needs), and partial-execution semantics when max_charge_usd trips (rows already written stay, a free row names the first unchecked actor). These are exactly the operational facts an agent cannot infer from 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?

The text is dense but every clause carries information: return fields, pricing, no-token behavior. Structure is slightly off because it front-loads input instructions before stating what the tool does, forcing the reader past setup text to reach the core purpose.

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 13 optional parameters, no output schema, and no siblings, the description carries the full burden and meets it: it enumerates the shape of each returned health row, the verdict vocabulary, and the alert-row behavior. Cost, auth, and truncation edge cases are all covered, leaving nothing an agent needs missing.

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?

Schema description coverage is 100%, so every one of the 13 parameters is already documented in detail, including defaults and ranges. The description only restates the actor/token inputs and adds no format or interaction detail beyond the schema, so the baseline 3 applies.

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?

The description makes clear that this produces a per-actor health assessment over a time window, and enumerates the returned contents (run counts by status, failure rate, median/slowest duration, verdict, alert rows), which is more specific than the title alone. It loses a point because it opens with parameter-setup instructions ("Give your own Apify API token and the actors to check") rather than leading with the verb+resource, so the purpose is stated second.

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?

It gives clear conditions for use: supply a token plus specific actors or the word 'all', and the no-token path is explicitly described as writing one free row and reading nothing. There are no sibling tools to differentiate against and no explicit when-not-to-use exclusions, so it stops short of a 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