Skip to main content
Glama

List Scheduler Runs

scheduler_runs_list
Read-onlyIdempotent

Lists the runs of an environment's Scheduler jobs, newest first, for one job with job_id (from scheduler_jobs_list) or for all of them.

Each run has its trigger (scheduled, or manual for "Run now"), status (starting, running, succeeded, failed, timed_out, out_of_memory, skipped, stopped) and reason: overlap (the previous run was still going, a long task runs one at a time), no_hours (the app used its long-task hours for the month), app_paused, not_entitled, not_deployed, paused, start_failed, no_shell (the image has no /bin/sh), command_not_found (exit code 127), crashed (a signal ended the command; exit_code is 128 plus the signal, so 139 is a segfault), stopped_by_user, stopped_by_staff or removed.

A long-task run also has exit_code, duration_seconds, billed_seconds (what it counted in the app's hours), memory_mb, the deploy_sha it ran and, when it failed, output_excerpt: the last lines it printed. A short-task run has http_status. For the full output of a long task, call logs_tail with source: "task" and since / until around the run's started_at and finished_at.

limit defaults to 20 and caps at 100. Takes app_id from apps_list and environment_id from environments_list.

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": {
      "app_id": "<app_id>",
      "environment_id": "<environment_id>"
    },
    "name": "scheduler_runs_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum runs to return. Default 20, maximum 100.
app_idYesThe app this call works on: its `app_id` uuid from `apps_list`.
job_idNoOnly the runs of this job (`job_id` from `scheduler_jobs_list`).
environment_idYesThe environment uuid, from `environments_list`.
organization_idNoAn organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, but the description adds real operational context: default and maximum page size, newest-first ordering, the meaning of billed_seconds, and the exit_code convention (128 plus signal, 139 = segfault). It does not discuss pagination or what happens beyond the limit cap, which keeps it short of a 5.

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-loaded with purpose, scope, and the alternative path in the first paragraph; the long enumeration of status and reason values is dense but each token is meaningful given no output schema. Slightly verbose in the status/reason roll-call, but nothing is filler.

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 takes on the full burden of describing return values and does so thoroughly: per-run fields, trigger values, status vocabulary, reason codes, long-task vs. short-task field differences, and where to get full output. An agent could interpret the response without opening anything else.

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 the schema already documents all five parameters, and the description mostly repeats that (job_id source, limit default 20 / cap 100). It adds no meaning for organization_id, which the schema describes but the prose never mentions. Baseline 3 is appropriate when the schema carries the parameter burden.

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 specific verb ('Lists'), resource ('runs of an environment's Scheduler jobs'), ordering ('newest first'), and both scope modes ('for one job with job_id ... or for all of them'). It also anchors job_id to scheduler_jobs_list, so the agent can distinguish it from the sibling that lists jobs rather than runs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly covers both usage modes (filter by job_id vs. all runs) and routes the agent elsewhere for a different need: 'For the full output of a long task, call logs_tail with source: "task" and since / until around the run's started_at and finished_at.' It also names where to obtain app_id and environment_id from apps_list and environments_list.

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