Skip to main content
Glama

A journey's runs, newest first: verdicts, where they got stuck, costs and outcome checks

sites_by_slug_journeys_by_journey_runs
Read-onlyIdempotent

Wraps GET /api/sites/{slug}/journeys/{journey}/runs. A journey's runs, newest first: verdicts, where they got stuck, costs and outcome checks. Call this to see how a journey has gone lately (the last 90 days) on one of its models, and to pick a run to read step by step. Each model has its own runs: pass model for another than the first.

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_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYessite slug, as in /api/sites
limitNopage size, clamped to 1–50
modelNowhich model's runs (one of the journey's `models`); its first model when left out
offsetNorows to skip, at most 200
journeyYesthe journey's slug, as in its page's address /sites/{slug}/journeys/{journey}

Output Schema

NameRequiredDescriptionDefault
dataNo
limitNo
offsetNo
has_moreNo
next_stepsNocalls that usually come next, each naming its tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "which model's runs (one of the journey's `models`); its first model when left out",
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / chargeUsd
      Added value: +{
      +  "description": "what the team was charged, US dollars (model cost plus the markup, at least the minimum); null when it wasn't charged (the model's provider failed, or before billing by use)",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / data / items / properties / costUsd / description
      Previous value: -"what it cost, US dollars"New value: +"what the model cost us, US dollars"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds traits the schema does not: results are ordered newest first and scoped to the last 90 days. It also discloses that runs are partitioned per model and that the first model is the default scope, which materially affects interpretation of results.

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?

Three tight sentences, front-loaded with the resource and its default ordering, then the use case, then the model caveat. Minor redundancy: the opening line duplicates the tool title almost verbatim, spending characters without adding information.

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-value detail is unnecessary. Combined with the ordering, 90-day window, and per-model scoping, an agent has everything needed to call this correctly; pagination clamps (1–50, offset ≤200) are already covered by the schema.

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 slug/journey/model/limit/offset are all documented structurally. The description reinforces the model parameter's meaning ('each model has its own runs') but largely restates what the schema already says, including the first-model default. Baseline 3 is appropriate.

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 (list a journey's runs, newest first) plus the payload contents: verdicts, failure point, costs, outcome checks. It also names the upstream endpoint (GET /api/sites/{slug}/journeys/{journey}/runs), so an agent can distinguish it from sites_by_slug_journeys_by_journey_runs_by_id (single run) without opening either schema.

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?

Explicit when-to-use: 'Call this to see how a journey has gone lately... and to pick a run to read step by step,' which links naturally to the single-run sibling. It also clarifies the per-model partitioning and when to pass `model`. No explicit when-not/exclusion, which keeps it 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources