naftiko: 1.0.0-alpha2 info: label: Riot Games League of Legends API — Summoner description: 'Riot Games League of Legends API — Summoner. 4 operations. Lead operation: Get Summoner By Name. Self-contained Naftiko capability covering one Riot Games business surface.' tags: - Riot Games - Summoner created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RIOT_GAMES_API_KEY: RIOT_GAMES_API_KEY capability: consumes: - type: http namespace: league-of-legends-summoner baseUri: https://na1.api.riotgames.com description: Riot Games League of Legends API — Summoner business capability. Self-contained, no shared references. resources: - name: lol-summoner-v4-summoners-by-name-summonerName path: /lol/summoner/v4/summoners/by-name/{summonerName} operations: - name: getsummonerbyname method: GET description: Get Summoner By Name outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: summonerName in: path type: string required: true - name: lol-summoner-v4-summoners-by-puuid-encryptedPUUID path: /lol/summoner/v4/summoners/by-puuid/{encryptedPUUID} operations: - name: getsummonerbypuuid method: GET description: Get Summoner By PUUID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: encryptedPUUID in: path type: string required: true - name: lol-summoner-v4-summoners-encryptedSummonerId path: /lol/summoner/v4/summoners/{encryptedSummonerId} operations: - name: getsummonerbyid method: GET description: Get Summoner By ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: encryptedSummonerId in: path type: string required: true - name: riot-account-v1-accounts-by-riot-id-gameName-tagLine path: /riot/account/v1/accounts/by-riot-id/{gameName}/{tagLine} operations: - name: getaccountbyriotid method: GET description: Get Account By Riot ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: gameName in: path type: string required: true - name: tagLine in: path type: string required: true authentication: type: apikey key: X-Riot-Token value: '{{env.RIOT_GAMES_API_KEY}}' placement: header exposes: - type: rest namespace: league-of-legends-summoner-rest port: 8080 description: REST adapter for Riot Games League of Legends API — Summoner. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lol/summoner/v4/summoners/by-name/{summonername} name: lol-summoner-v4-summoners-by-name-summonername description: REST surface for lol-summoner-v4-summoners-by-name-summonerName. operations: - method: GET name: getsummonerbyname description: Get Summoner By Name call: league-of-legends-summoner.getsummonerbyname with: summonerName: rest.summonerName outputParameters: - type: object mapping: $. - path: /v1/lol/summoner/v4/summoners/by-puuid/{encryptedpuuid} name: lol-summoner-v4-summoners-by-puuid-encryptedpuuid description: REST surface for lol-summoner-v4-summoners-by-puuid-encryptedPUUID. operations: - method: GET name: getsummonerbypuuid description: Get Summoner By PUUID call: league-of-legends-summoner.getsummonerbypuuid with: encryptedPUUID: rest.encryptedPUUID outputParameters: - type: object mapping: $. - path: /v1/lol/summoner/v4/summoners/{encryptedsummonerid} name: lol-summoner-v4-summoners-encryptedsummonerid description: REST surface for lol-summoner-v4-summoners-encryptedSummonerId. operations: - method: GET name: getsummonerbyid description: Get Summoner By ID call: league-of-legends-summoner.getsummonerbyid with: encryptedSummonerId: rest.encryptedSummonerId outputParameters: - type: object mapping: $. - path: /v1/riot/account/v1/accounts/by-riot-id/{gamename}/{tagline} name: riot-account-v1-accounts-by-riot-id-gamename-tagline description: REST surface for riot-account-v1-accounts-by-riot-id-gameName-tagLine. operations: - method: GET name: getaccountbyriotid description: Get Account By Riot ID call: league-of-legends-summoner.getaccountbyriotid with: gameName: rest.gameName tagLine: rest.tagLine outputParameters: - type: object mapping: $. - type: mcp namespace: league-of-legends-summoner-mcp port: 9090 transport: http description: MCP adapter for Riot Games League of Legends API — Summoner. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-summoner-name description: Get Summoner By Name hints: readOnly: true destructive: false idempotent: true call: league-of-legends-summoner.getsummonerbyname with: summonerName: tools.summonerName outputParameters: - type: object mapping: $. - name: get-summoner-puuid description: Get Summoner By PUUID hints: readOnly: true destructive: false idempotent: true call: league-of-legends-summoner.getsummonerbypuuid with: encryptedPUUID: tools.encryptedPUUID outputParameters: - type: object mapping: $. - name: get-summoner-id description: Get Summoner By ID hints: readOnly: true destructive: false idempotent: true call: league-of-legends-summoner.getsummonerbyid with: encryptedSummonerId: tools.encryptedSummonerId outputParameters: - type: object mapping: $. - name: get-account-riot-id description: Get Account By Riot ID hints: readOnly: true destructive: false idempotent: true call: league-of-legends-summoner.getaccountbyriotid with: gameName: tools.gameName tagLine: tools.tagLine outputParameters: - type: object mapping: $.