{
  "arazzo": "1.0.1",
  "info": {
    "title": "Arenyze API workflows",
    "version": "2026.11.27",
    "summary": "Multi-step recipes over the Arenyze public API, for AI agents and workflow tools.",
    "description": "Each workflow chains operations of the per-game OpenAPI documents. Send the `api-key` header on every step. Docs: https://docs.arenyze.com/agents#arazzo"
  },
  "sourceDescriptions": [
    {
      "name": "r6",
      "url": "https://docs.arenyze.com/openapi/r6.json",
      "type": "openapi"
    },
    {
      "name": "thefinals",
      "url": "https://docs.arenyze.com/openapi/thefinals.json",
      "type": "openapi"
    },
    {
      "name": "endfield",
      "url": "https://docs.arenyze.com/openapi/endfield.json",
      "type": "openapi"
    }
  ],
  "workflows": [
    {
      "workflowId": "thefinals-player-report",
      "summary": "THE FINALS: full report on a player from part of a name",
      "description": "Search the name, open the best match, then read its rank history and its standings (percentile, rivals, distance to the next league).",
      "inputs": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string",
            "description": "At least 2 characters of an Embark name or platform handle."
          },
          "days": {
            "type": "integer",
            "default": 30
          }
        }
      },
      "steps": [
        {
          "stepId": "search",
          "operationId": "$sourceDescriptions.thefinals.thefinalsSearch",
          "parameters": [
            {
              "name": "q",
              "in": "query",
              "value": "$inputs.query"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "name": "$response.body#/players/0/embarkName"
          }
        },
        {
          "stepId": "profile",
          "operationId": "$sourceDescriptions.thefinals.thefinalsPlayer",
          "parameters": [
            {
              "name": "name",
              "in": "path",
              "value": "$steps.search.outputs.name"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "rank": "$response.body#/currentRank",
            "score": "$response.body#/currentScore",
            "league": "$response.body#/currentLeague"
          }
        },
        {
          "stepId": "history",
          "operationId": "$sourceDescriptions.thefinals.thefinalsPlayerHistory",
          "parameters": [
            {
              "name": "name",
              "in": "path",
              "value": "$steps.search.outputs.name"
            },
            {
              "name": "days",
              "in": "query",
              "value": "$inputs.days"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "points": "$response.body#/history"
          }
        },
        {
          "stepId": "insights",
          "operationId": "$sourceDescriptions.thefinals.thefinalsPlayerInsights",
          "parameters": [
            {
              "name": "name",
              "in": "path",
              "value": "$steps.search.outputs.name"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "standings": "$response.body#/standings",
            "rivals": "$response.body#/rivals"
          }
        }
      ],
      "outputs": {
        "name": "$steps.search.outputs.name",
        "rank": "$steps.profile.outputs.rank",
        "league": "$steps.profile.outputs.league",
        "history": "$steps.history.outputs.points",
        "standings": "$steps.insights.outputs.standings"
      }
    },
    {
      "workflowId": "thefinals-club-scouting",
      "summary": "THE FINALS: analyse a club (team)",
      "description": "Read a club, compare its two best-placed members head to head, then get the standings of the club’s best player.",
      "inputs": {
        "type": "object",
        "required": [
          "tag"
        ],
        "properties": {
          "tag": {
            "type": "string",
            "description": "Club tag, e.g. RAGER."
          }
        }
      },
      "steps": [
        {
          "stepId": "club",
          "operationId": "$sourceDescriptions.thefinals.thefinalsClub",
          "parameters": [
            {
              "name": "tag",
              "in": "path",
              "value": "$inputs.tag"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "first": "$response.body#/members/0/name",
            "second": "$response.body#/members/1/name",
            "best": "$response.body#/stats/bestPlayer",
            "stats": "$response.body#/stats"
          }
        },
        {
          "stepId": "compare",
          "operationId": "$sourceDescriptions.thefinals.thefinalsCompare",
          "parameters": [
            {
              "name": "a",
              "in": "query",
              "value": "$steps.club.outputs.first"
            },
            {
              "name": "b",
              "in": "query",
              "value": "$steps.club.outputs.second"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "result": "$response.body"
          }
        },
        {
          "stepId": "best",
          "operationId": "$sourceDescriptions.thefinals.thefinalsPlayerInsights",
          "parameters": [
            {
              "name": "name",
              "in": "path",
              "value": "$steps.club.outputs.best"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "standings": "$response.body#/standings"
          }
        }
      ],
      "outputs": {
        "club": "$steps.club.outputs.stats",
        "headToHead": "$steps.compare.outputs.result",
        "bestPlayer": "$steps.club.outputs.best",
        "bestPlayerStandings": "$steps.best.outputs.standings"
      }
    },
    {
      "workflowId": "thefinals-head-to-head",
      "summary": "THE FINALS: compare two players and their trend",
      "description": "Compare two players, then read the rank history of both to see who is climbing.",
      "inputs": {
        "type": "object",
        "required": [
          "a",
          "b"
        ],
        "properties": {
          "a": {
            "type": "string",
            "description": "First Embark name with tag."
          },
          "b": {
            "type": "string",
            "description": "Second Embark name with tag."
          },
          "days": {
            "type": "integer",
            "default": 14
          }
        }
      },
      "steps": [
        {
          "stepId": "compare",
          "operationId": "$sourceDescriptions.thefinals.thefinalsCompare",
          "parameters": [
            {
              "name": "a",
              "in": "query",
              "value": "$inputs.a"
            },
            {
              "name": "b",
              "in": "query",
              "value": "$inputs.b"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "result": "$response.body"
          }
        },
        {
          "stepId": "historyA",
          "operationId": "$sourceDescriptions.thefinals.thefinalsPlayerHistory",
          "parameters": [
            {
              "name": "name",
              "in": "path",
              "value": "$inputs.a"
            },
            {
              "name": "days",
              "in": "query",
              "value": "$inputs.days"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "points": "$response.body#/history"
          }
        },
        {
          "stepId": "historyB",
          "operationId": "$sourceDescriptions.thefinals.thefinalsPlayerHistory",
          "parameters": [
            {
              "name": "name",
              "in": "path",
              "value": "$inputs.b"
            },
            {
              "name": "days",
              "in": "query",
              "value": "$inputs.days"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "points": "$response.body#/history"
          }
        }
      ],
      "outputs": {
        "comparison": "$steps.compare.outputs.result",
        "historyA": "$steps.historyA.outputs.points",
        "historyB": "$steps.historyB.outputs.points"
      }
    },
    {
      "workflowId": "r6-player-report",
      "summary": "Rainbow Six Siege: profile and operators of a player",
      "description": "Load the full profile (rank, RP, K/D, win rate, ban status), then the per-operator stats of the same player.",
      "inputs": {
        "type": "object",
        "required": [
          "nameOnPlatform",
          "platformType"
        ],
        "properties": {
          "nameOnPlatform": {
            "type": "string"
          },
          "platformType": {
            "type": "string",
            "enum": [
              "uplay",
              "psn",
              "xbl"
            ]
          },
          "seasonYear": {
            "type": "string",
            "description": "e.g. Y10S4, or all."
          }
        }
      },
      "steps": [
        {
          "stepId": "profile",
          "operationId": "$sourceDescriptions.r6.r6V2Profile",
          "parameters": [
            {
              "name": "nameOnPlatform",
              "in": "query",
              "value": "$inputs.nameOnPlatform"
            },
            {
              "name": "platformType",
              "in": "query",
              "value": "$inputs.platformType"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "profile": "$response.body"
          }
        },
        {
          "stepId": "operators",
          "operationId": "$sourceDescriptions.r6.r6V2Operators",
          "parameters": [
            {
              "name": "nameOnPlatform",
              "in": "query",
              "value": "$inputs.nameOnPlatform"
            },
            {
              "name": "platformType",
              "in": "query",
              "value": "$inputs.platformType"
            },
            {
              "name": "seasonYear",
              "in": "query",
              "value": "$inputs.seasonYear"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "operators": "$response.body"
          }
        }
      ],
      "outputs": {
        "profile": "$steps.profile.outputs.profile",
        "operators": "$steps.operators.outputs.operators"
      }
    },
    {
      "workflowId": "endfield-operator-build",
      "summary": "Arknights: Endfield: find a player and open their first showcased operator",
      "description": "Search a nickname or UID, load the profile, then the full build (skills, weapon, gear) of the first showcased operator.",
      "inputs": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string",
            "description": "Nickname or UID prefix."
          }
        }
      },
      "steps": [
        {
          "stepId": "search",
          "operationId": "$sourceDescriptions.endfield.endfieldPlayersSearch",
          "parameters": [
            {
              "name": "q",
              "in": "query",
              "value": "$inputs.query"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "uid": "$response.body#/players/0/uid"
          }
        },
        {
          "stepId": "profile",
          "operationId": "$sourceDescriptions.endfield.endfieldPlayer",
          "parameters": [
            {
              "name": "uid",
              "in": "path",
              "value": "$steps.search.outputs.uid"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "account": "$response.body#/account",
            "operator": "$response.body#/operators/0/slug"
          }
        },
        {
          "stepId": "build",
          "operationId": "$sourceDescriptions.endfield.endfieldPlayerOperator",
          "parameters": [
            {
              "name": "uid",
              "in": "path",
              "value": "$steps.search.outputs.uid"
            },
            {
              "name": "slug",
              "in": "path",
              "value": "$steps.profile.outputs.operator"
            }
          ],
          "successCriteria": [
            {
              "condition": "$statusCode == 200"
            }
          ],
          "outputs": {
            "build": "$response.body"
          }
        }
      ],
      "outputs": {
        "account": "$steps.profile.outputs.account",
        "build": "$steps.build.outputs.build"
      }
    }
  ]
}