Skip to main content
Glama

Run a journey now, as a job

sites_by_slug_journeys_by_journey_run
Idempotent

Wraps POST /api/sites/{slug}/journeys/{journey}/run. Run a journey now, as a job. Queues a run of the journey on each of its models, as the journey page's Run now does; the monitor starts it within a minute and a run takes from 15 seconds to a few minutes. Answers 202 with Location: poll it until status is finished. One at a time per journey, 5 an hour per team. Each model's run is charged like a scheduled one (each run at model cost plus 50%, at least $0.02) and counts against the team's monthly journey budget. Asking again while one is open answers 409 with the open one's Location. It acts for the whole team. Needs an Admin key, on a team with 10 sites or more.

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": {
      "slug": "<slug>",
      "journey": "<journey>"
    },
    "name": "sites_by_slug_journeys_by_journey_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYessite slug, as in /api/sites
journeyYesthe journey's slug, as in its page's address /sites/{slug}/journeys/{journey}

Output Schema

NameRequiredDescriptionDefault
dataNoA run asked for with Run now, and the run it made
next_stepsNocalls that usually come next, each naming its tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / data / properties / run / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "costUsd": {
      -        "description": "what it cost, US dollars",
      -        "type": "number"
      -      },
      -      "finishedAt": {
      -        "description": "when it finished (ISO 8601, UTC)",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "the run's id, for /api/sites/{slug}/journeys/{journey}/runs/{id}; null for a request made before runs were linked",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "model": {
      -        "description": "the model that ran it",
      -        "type": "string"
      -      },
      -      "reached": {
      -        "description": "whether the agent said it reached the goal",
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      },
      -      "startedAt": {
      -        "description": "when it started (ISO 8601, UTC)",
      -        "type": "string"
      -      },
      -      "verdict": {
      -        "description": "pass: reached the goal (and its checks agree); fail: didn't; inconclusive: couldn't be judged (blocked, stopped early)",
      -        "enum": [
      -          "pass",
      -          "fail",
      -          "inconclusive"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "chargeUsd": {
      +        "description": "what the team was charged for it, US dollars (model cost plus the markup, at least the minimum); null when it wasn't charged",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "costUsd": {
      +        "description": "what the model cost us, US dollars",
      +        "type": "number"
      +      },
      +      "finishedAt": {
      +        "description": "when it finished (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "the run's id, for /api/sites/{slug}/journeys/{journey}/runs/{id}; null for a request made before runs were linked",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "model": {
      +        "description": "the model that ran it",
      +        "type": "string"
      +      },
      +      "reached": {
      +        "description": "whether the agent said it reached the goal",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "startedAt": {
      +        "description": "when it started (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "verdict": {
      +        "description": "pass: reached the goal (and its checks agree); fail: didn't; inconclusive: couldn't be judged (blocked, stopped early)",
      +        "enum": [
      +          "pass",
      +          "fail",
      +          "inconclusive"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / data / properties / run / description
      Previous value: -"the run it made, once finished; null before, or if it couldn't run (the journey spend cap, say)"New value: +"the first model's run it made, once finished (the journey's other models run too: see /runs?model=); null before, or if it couldn't run (the journey budget, say)"
  2. Changed9 schema fields changed
    • addedOutput schema / properties / data / description
      Added value: +"A run asked for with Run now, and the run it made"
    • removedOutput schema / properties / data / properties / finishedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / finishedAt / description
      Added value: +"when it finished (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / properties / finishedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / requestedAt / description
      Previous value: -"ISO 8601, UTC (…Z)"New value: +"when it was asked for (ISO 8601, UTC)"
    • changedOutput schema / properties / data / properties / run / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "costUsd": {
      -        "type": "number"
      -      },
      -      "finishedAt": {
      -        "description": "ISO 8601, UTC (…Z)",
      -        "type": "string"
      -      },
      -      "model": {
      -        "type": "string"
      -      },
      -      "reached": {
      -        "description": "whether the agent reached the goal",
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      },
      -      "startedAt": {
      -        "description": "ISO 8601, UTC (…Z)",
      -        "type": "string"
      -      },
      -      "verdict": {
      -        "description": "as the journey's page says",
      -        "enum": [
      -          "pass",
      -          "fail",
      -          "inconclusive"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "costUsd": {
      +        "description": "what it cost, US dollars",
      +        "type": "number"
      +      },
      +      "finishedAt": {
      +        "description": "when it finished (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "the run's id, for /api/sites/{slug}/journeys/{journey}/runs/{id}; null for a request made before runs were linked",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "model": {
      +        "description": "the model that ran it",
      +        "type": "string"
      +      },
      +      "reached": {
      +        "description": "whether the agent said it reached the goal",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "startedAt": {
      +        "description": "when it started (ISO 8601, UTC)",
      +        "type": "string"
      +      },
      +      "verdict": {
      +        "description": "pass: reached the goal (and its checks agree); fail: didn't; inconclusive: couldn't be judged (blocked, stopped early)",
      +        "enum": [
      +          "pass",
      +          "fail",
      +          "inconclusive"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / data / properties / startedAt / anyOf
      Removed value: -[
      -  {
      -    "description": "ISO 8601, UTC (…Z)",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / data / properties / startedAt / description
      Added value: +"when the monitor started it (ISO 8601, UTC); null when there's none"
    • addedOutput schema / properties / data / properties / startedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds extensive behavior beyond annotations: asynchronous job semantics (202 + Location, monitor starts within a minute, 15s–few minutes duration), rate limits (one at a time per journey, 5/hour per team), per-model cost (model cost +50%, min $0.02) charged against the monthly journey budget, 409 on concurrent request, team-wide effect, Admin key requirement, and a 10+ site prerequisite.

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?

Dense but front-loaded: endpoint and purpose come first, then constraints, cost, and failure modes. Nearly every clause carries operational information, though the telegraphic phrasing is harder to scan than short sentences would be.

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?

An output schema exists, so return values need not be explained; the description instead covers what an agent needs to call it correctly — auth, quota, cost, concurrency behavior, and the 202/409 outcomes. Nothing material is missing for a two-parameter job-trigger tool.

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 coverage is 100%, so both `slug` and `journey` are already documented in the schema. The description adds only indirect meaning ('on each of its models' implies journey fan-out) and no format or selection guidance beyond what the schema provides, so the baseline 3 applies.

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 and resource ('Run a journey now, as a job') and ties it to the exact endpoint POST /api/sites/{slug}/journeys/{journey}/run. The phrase 'queues a run of the journey on each of its models' makes clear this is a trigger, distinguishing it from the sibling run-listing tools.

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?

Gives clear context: use it when a run should start immediately, and expect a 409 with the open run's Location if one is already in flight. It doesn't name a sibling tool for polling the returned Location, so the alternative path is implied rather than explicit.

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