Skip to main content
Glama

Get StewAI Run Status

get_run
Read-onlyIdempotent

Read an owned run, view=history to resume normal runs (recipe_ref/status/cursor/limit), or view=diagnostics for its settled UI receipt. Default status requires run_id and includes live progress: updated_at is the run record time, progress.last_step_activity_at is the latest step activity. A blocked run paused for credits reports credit_pause.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewNo
limitNo
cursorNo
run_idNo
statusNo
recipe_refNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "credit_pause": {
      -            "additionalProperties": false,
      -            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 32,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "required_credits": {
      -                "maxLength": 32,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "resumable": {
      -                "const": true
      -              }
      -            },
      -            "required": [
      -              "required_credits",
      -              "available_credits",
      -              "resumable"
      -            ],
      -            "type": "object"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "queued",
      -              "running",
      -              "blocked"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "results_available": {
      -            "type": "boolean"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "done"
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "results_available",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "progress": {
      -            "additionalProperties": false,
      -            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      -            "properties": {
      -              "active_steps": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "elapsed_seconds": {
      -                      "minimum": 0,
      -                      "type": [
      -                        "integer",
      -                        "null"
      -                      ]
      -                    },
      -                    "kind": {
      -                      "maxLength": 32,
      -                      "type": "string"
      -                    },
      -                    "started_at": {
      -                      "maxLength": 40,
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "step_id": {
      -                      "maxLength": 128,
      -                      "type": "string"
      -                    },
      -                    "title": {
      -                      "maxLength": 120,
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "step_id",
      -                    "kind",
      -                    "started_at",
      -                    "elapsed_seconds"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 5,
      -                "type": "array"
      -              },
      -              "last_step_activity_at": {
      -                "maxLength": 40,
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "observed_at": {
      -                "maxLength": 40,
      -                "type": "string"
      -              },
      -              "phase": {
      -                "enum": [
      -                  "queued",
      -                  "running_steps",
      -                  "between_steps",
      -                  "waiting_for_input",
      -                  "paused_insufficient_credits",
      -                  "terminal"
      -                ]
      -              },
      -              "run_elapsed_seconds": {
      -                "minimum": 0,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "steps": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "done": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "failed": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "queued": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "running": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "total": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  },
      -                  "waiting_for_input": {
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "total",
      -                  "queued",
      -                  "running",
      -                  "waiting_for_input",
      -                  "done",
      -                  "failed"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "phase",
      -              "steps",
      -              "active_steps",
      -              "run_elapsed_seconds",
      -              "last_step_activity_at",
      -              "observed_at"
      -            ],
      -            "type": "object"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "failed",
      -              "cancelled"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "error": {
      -            "const": "run_not_found"
      -          }
      -        },
      -        "required": [
      -          "error"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "next_cursor": {
      -        "maxLength": 1024,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "runs": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "recipe_id": {
      -              "type": "string"
      -            },
      -            "run_id": {
      -              "maxLength": 26,
      -              "minLength": 26,
      -              "pattern": "^[0-9A-Za-z]{26}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "running",
      -                "done",
      -                "failed",
      -                "cancelled",
      -                "blocked"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "run_id",
      -            "recipe_id",
      -            "status",
      -            "created_at",
      -            "updated_at"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "type": "array"
      -      },
      -      "view": {
      -        "const": "history"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "runs",
      -      "next_cursor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "basis": {
      -        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      -      },
      -      "billing": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "retry_after_seconds": {
      -                "const": 2
      -              },
      -              "state": {
      -                "const": "pending"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "retry_after_seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "state": {
      -                "const": "unavailable"
      -              }
      -            },
      -            "required": [
      -              "state"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "balance_as_of": {
      -                "format": "date-time",
      -                "maxLength": 64,
      -                "type": "string"
      -              },
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits",
      -              "available_credits",
      -              "balance_as_of"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "receipt": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "charged_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "estimated_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "variance_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "estimated_credits",
      -          "charged_credits",
      -          "variance_pct"
      -        ],
      -        "type": "object"
      -      },
      -      "run_id": {
      -        "maxLength": 26,
      -        "minLength": 26,
      -        "pattern": "^[0-9A-Za-z]{26}$",
      -        "type": "string"
      -      },
      -      "view": {
      -        "const": "diagnostics"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "run_id",
      -      "billing",
      -      "receipt",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "const": "invalid_history_query"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "credit_pause": {
      +            "additionalProperties": false,
      +            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "required_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "resumable": {
      +                "const": true
      +              }
      +            },
      +            "required": [
      +              "required_credits",
      +              "available_credits",
      +              "resumable"
      +            ],
      +            "type": "object"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "queued",
      +              "running",
      +              "blocked"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "results_available": {
      +            "type": "boolean"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "done"
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "results_available",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "failed",
      +              "cancelled"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "error": {
      +            "const": "run_not_found"
      +          }
      +        },
      +        "required": [
      +          "error"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "next_cursor": {
      +        "maxLength": 1024,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "runs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "charged_credits": {
      +              "description": "Credits charged by a finished run; null while it is active.",
      +              "maxLength": 32,
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "recipe_id": {
      +              "type": "string"
      +            },
      +            "recipe_title": {
      +              "maxLength": 200,
      +              "type": "string"
      +            },
      +            "run_id": {
      +              "maxLength": 26,
      +              "minLength": 26,
      +              "pattern": "^[0-9A-Za-z]{26}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "running",
      +                "done",
      +                "failed",
      +                "cancelled",
      +                "blocked"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "run_id",
      +            "recipe_id",
      +            "recipe_title",
      +            "status",
      +            "created_at",
      +            "updated_at",
      +            "charged_credits"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "type": "array"
      +      },
      +      "view": {
      +        "const": "history"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "runs",
      +      "next_cursor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "basis": {
      +        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      +      },
      +      "billing": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "retry_after_seconds": {
      +                "const": 2
      +              },
      +              "state": {
      +                "const": "pending"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "retry_after_seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "state": {
      +                "const": "unavailable"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "balance_as_of": {
      +                "format": "date-time",
      +                "maxLength": 64,
      +                "type": "string"
      +              },
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits",
      +              "available_credits",
      +              "balance_as_of"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "receipt": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "charged_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "estimated_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "variance_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "estimated_credits",
      +          "charged_credits",
      +          "variance_pct"
      +        ],
      +        "type": "object"
      +      },
      +      "run_id": {
      +        "maxLength": 26,
      +        "minLength": 26,
      +        "pattern": "^[0-9A-Za-z]{26}$",
      +        "type": "string"
      +      },
      +      "view": {
      +        "const": "diagnostics"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "run_id",
      +      "billing",
      +      "receipt",
      +      "basis"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "const": "invalid_history_query"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "queued",
      -              "running",
      -              "blocked"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "results_available": {
      -            "type": "boolean"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "done"
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "results_available",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "billing": {
      -            "oneOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "retry_after_seconds": {
      -                    "const": 2
      -                  },
      -                  "state": {
      -                    "const": "pending"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "retry_after_seconds"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "state": {
      -                    "const": "unavailable"
      -                  }
      -                },
      -                "required": [
      -                  "state"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "balance_as_of": {
      -                    "format": "date-time",
      -                    "maxLength": 64,
      -                    "type": "string"
      -                  },
      -                  "charged_credits": {
      -                    "maxLength": 64,
      -                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                    "type": "string"
      -                  },
      -                  "state": {
      -                    "const": "settled"
      -                  }
      -                },
      -                "required": [
      -                  "state",
      -                  "charged_credits",
      -                  "available_credits",
      -                  "balance_as_of"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "created_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          },
      -          "run_id": {
      -            "maxLength": 26,
      -            "minLength": 26,
      -            "pattern": "^[0-9A-Za-z]{26}$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "failed",
      -              "cancelled"
      -            ]
      -          },
      -          "updated_at": {
      -            "format": "date-time",
      -            "maxLength": 64,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "run_id",
      -          "status",
      -          "created_at",
      -          "updated_at",
      -          "billing"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "error": {
      -            "const": "run_not_found"
      -          }
      -        },
      -        "required": [
      -          "error"
      -        ],
      -        "type": "object"
      -      }
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "next_cursor": {
      -        "maxLength": 1024,
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "runs": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "recipe_id": {
      -              "type": "string"
      -            },
      -            "run_id": {
      -              "maxLength": 26,
      -              "minLength": 26,
      -              "pattern": "^[0-9A-Za-z]{26}$",
      -              "type": "string"
      -            },
      -            "status": {
      -              "enum": [
      -                "queued",
      -                "running",
      -                "done",
      -                "failed",
      -                "cancelled",
      -                "blocked"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "run_id",
      -            "recipe_id",
      -            "status",
      -            "created_at",
      -            "updated_at"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 20,
      -        "type": "array"
      -      },
      -      "view": {
      -        "const": "history"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "runs",
      -      "next_cursor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "basis": {
      -        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      -      },
      -      "billing": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "retry_after_seconds": {
      -                "const": 2
      -              },
      -              "state": {
      -                "const": "pending"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "retry_after_seconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "state": {
      -                "const": "unavailable"
      -              }
      -            },
      -            "required": [
      -              "state"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "balance_as_of": {
      -                "format": "date-time",
      -                "maxLength": 64,
      -                "type": "string"
      -              },
      -              "charged_credits": {
      -                "maxLength": 64,
      -                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      -                "type": "string"
      -              },
      -              "state": {
      -                "const": "settled"
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "charged_credits",
      -              "available_credits",
      -              "balance_as_of"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "receipt": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "charged_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "estimated_credits": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "variance_pct": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "estimated_credits",
      -          "charged_credits",
      -          "variance_pct"
      -        ],
      -        "type": "object"
      -      },
      -      "run_id": {
      -        "maxLength": 26,
      -        "minLength": 26,
      -        "pattern": "^[0-9A-Za-z]{26}$",
      -        "type": "string"
      -      },
      -      "view": {
      -        "const": "diagnostics"
      -      }
      -    },
      -    "required": [
      -      "view",
      -      "run_id",
      -      "billing",
      -      "receipt",
      -      "basis"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "const": "invalid_history_query"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "credit_pause": {
      +            "additionalProperties": false,
      +            "description": "The run paused because a step could not reserve credits. It resumes from the StewAI web app after credits are added.",
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "required_credits": {
      +                "maxLength": 32,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "resumable": {
      +                "const": true
      +              }
      +            },
      +            "required": [
      +              "required_credits",
      +              "available_credits",
      +              "resumable"
      +            ],
      +            "type": "object"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "queued",
      +              "running",
      +              "blocked"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "results_available": {
      +            "type": "boolean"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "done"
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "results_available",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "billing": {
      +            "oneOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "retry_after_seconds": {
      +                    "const": 2
      +                  },
      +                  "state": {
      +                    "const": "pending"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "retry_after_seconds"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "state": {
      +                    "const": "unavailable"
      +                  }
      +                },
      +                "required": [
      +                  "state"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "balance_as_of": {
      +                    "format": "date-time",
      +                    "maxLength": 64,
      +                    "type": "string"
      +                  },
      +                  "charged_credits": {
      +                    "maxLength": 64,
      +                    "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                    "type": "string"
      +                  },
      +                  "state": {
      +                    "const": "settled"
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "charged_credits",
      +                  "available_credits",
      +                  "balance_as_of"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          },
      +          "progress": {
      +            "additionalProperties": false,
      +            "description": "Live progress from committed step rows. updated_at is the run record's time; last_step_activity_at shows the latest step start or finish.",
      +            "properties": {
      +              "active_steps": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "elapsed_seconds": {
      +                      "minimum": 0,
      +                      "type": [
      +                        "integer",
      +                        "null"
      +                      ]
      +                    },
      +                    "kind": {
      +                      "maxLength": 32,
      +                      "type": "string"
      +                    },
      +                    "started_at": {
      +                      "maxLength": 40,
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "step_id": {
      +                      "maxLength": 128,
      +                      "type": "string"
      +                    },
      +                    "title": {
      +                      "maxLength": 120,
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "step_id",
      +                    "kind",
      +                    "started_at",
      +                    "elapsed_seconds"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 5,
      +                "type": "array"
      +              },
      +              "last_step_activity_at": {
      +                "maxLength": 40,
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "observed_at": {
      +                "maxLength": 40,
      +                "type": "string"
      +              },
      +              "phase": {
      +                "enum": [
      +                  "queued",
      +                  "running_steps",
      +                  "between_steps",
      +                  "waiting_for_input",
      +                  "paused_insufficient_credits",
      +                  "terminal"
      +                ]
      +              },
      +              "run_elapsed_seconds": {
      +                "minimum": 0,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "steps": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "done": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "failed": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "queued": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "running": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "total": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  },
      +                  "waiting_for_input": {
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "total",
      +                  "queued",
      +                  "running",
      +                  "waiting_for_input",
      +                  "done",
      +                  "failed"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "phase",
      +              "steps",
      +              "active_steps",
      +              "run_elapsed_seconds",
      +              "last_step_activity_at",
      +              "observed_at"
      +            ],
      +            "type": "object"
      +          },
      +          "run_id": {
      +            "maxLength": 26,
      +            "minLength": 26,
      +            "pattern": "^[0-9A-Za-z]{26}$",
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "failed",
      +              "cancelled"
      +            ]
      +          },
      +          "updated_at": {
      +            "format": "date-time",
      +            "maxLength": 64,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "run_id",
      +          "status",
      +          "created_at",
      +          "updated_at",
      +          "billing"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "error": {
      +            "const": "run_not_found"
      +          }
      +        },
      +        "required": [
      +          "error"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "next_cursor": {
      +        "maxLength": 1024,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "runs": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "recipe_id": {
      +              "type": "string"
      +            },
      +            "run_id": {
      +              "maxLength": 26,
      +              "minLength": 26,
      +              "pattern": "^[0-9A-Za-z]{26}$",
      +              "type": "string"
      +            },
      +            "status": {
      +              "enum": [
      +                "queued",
      +                "running",
      +                "done",
      +                "failed",
      +                "cancelled",
      +                "blocked"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "run_id",
      +            "recipe_id",
      +            "status",
      +            "created_at",
      +            "updated_at"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 20,
      +        "type": "array"
      +      },
      +      "view": {
      +        "const": "history"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "runs",
      +      "next_cursor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "basis": {
      +        "const": "UI receipt estimate versus settled charge; not an admission ceiling. Null means unavailable."
      +      },
      +      "billing": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "retry_after_seconds": {
      +                "const": 2
      +              },
      +              "state": {
      +                "const": "pending"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "retry_after_seconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "state": {
      +                "const": "unavailable"
      +              }
      +            },
      +            "required": [
      +              "state"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "balance_as_of": {
      +                "format": "date-time",
      +                "maxLength": 64,
      +                "type": "string"
      +              },
      +              "charged_credits": {
      +                "maxLength": 64,
      +                "pattern": "^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
      +                "type": "string"
      +              },
      +              "state": {
      +                "const": "settled"
      +              }
      +            },
      +            "required": [
      +              "state",
      +              "charged_credits",
      +              "available_credits",
      +              "balance_as_of"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "receipt": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "charged_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "estimated_credits": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "variance_pct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "estimated_credits",
      +          "charged_credits",
      +          "variance_pct"
      +        ],
      +        "type": "object"
      +      },
      +      "run_id": {
      +        "maxLength": 26,
      +        "minLength": 26,
      +        "pattern": "^[0-9A-Za-z]{26}$",
      +        "type": "string"
      +      },
      +      "view": {
      +        "const": "diagnostics"
      +      }
      +    },
      +    "required": [
      +      "view",
      +      "run_id",
      +      "billing",
      +      "receipt",
      +      "basis"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "const": "invalid_history_query"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only/idempotent/non-destructive behavior, and the description adds meaningful operational context: status requires run_id, the distinction between updated_at and progress.last_step_activity_at, and the credit_pause signal for blocked runs. This goes beyond simply restating the 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 description packs all essential behavior into two dense sentences with no filler, and the most important purpose is front-loaded. The second sentence is long and technical, but every clause contributes; it could be split for readability without gaining information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter tool with three views, an output schema, and read-only annotations, the description covers the conditional requirements, view semantics, timestamp distinction, and a special blocked-run state. It does not describe pagination semantics or error behavior in depth, but the output schema and annotations fill the main remaining gaps.

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 0%, so the description must carry parameter meaning. It maps view values to use cases and notes that default status requires run_id, and it lists recipe_ref/status/cursor/limit as the history-view parameters. However, it never explains what cursor/limit/status/recipe_ref mean or how they interplay, leaving the agent to infer from names and schema constraints.

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 description opens with 'Read an owned run' and then defines the three views (status/history/diagnostics) with distinct purposes, so the operation and resource are explicit. It clearly separates get_run from the recipe-build sibling tools by focusing on owned run states and resumption.

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 provides concrete when-to-use guidance: view=history for resuming normal runs with recipe_ref/status/cursor/limit, view=diagnostics for the settled UI receipt, and default status for live progress with run_id. It does not name sibling alternatives or give explicit when-not-to-use conditions, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources