# For AI agents

sidelined.ch is built to be read by agents as well as people. Everything here works without a key.

## Where to start

- **This portal as text:** [llms.txt](/llms.txt) (an index of all pages) and [llms-full.txt](/llms-full.txt) (all pages in one file). Every page is also Markdown: add `.md` to its address, or ask for `Accept: text/markdown`.
- **The API, machine-readable:** the [OpenAPI 3.1 document](https://api.sidelined.ch/v1/openapi.json), with a description and an example for every field. Discovery: [`/.well-known/api-catalog`](https://api.sidelined.ch/.well-known/api-catalog) (RFC 9727), and a `Link` header on every response.
- **The data model:** [concepts](/api/concepts) defines every field and rule.

## Typical questions and the call that answers them

| Question | Call |
|---|---|
| Who's out at EV Zug? | `GET /v1/teams/zug/absences` |
| Who's injured across the league? | `GET /v1/absences?type=injury` |
| What changed today? | `GET /v1/changes?since=2026-10-25` |
| Which club is missing the most players? | `GET /v1/teams` (sort by `out`) |

## How to present the data

The MCP server sends the same rules as its instructions, and the skill carries them too.

1. **Name the source** of each entry ("according to the club's medical report") and show the attribution: Data: sidelined.ch, from the clubs, the National League and the Swiss Ice Hockey Federation (sources on each entry) (https://sidelined.ch).
2. **No medical speculation.** Pass on `reason_text` as it is. Never infer a diagnosis, its severity or a return date beyond what `return` says.
3. **`return` is an estimate:** `min` and `max` are sidelined.ch's reading of the club's wording, not a club statement.
4. **Expected back:** when `expected_back` is set, the club says the player plays that game. Say it as the club's word ("EV Zug expects him back against Ambrì on Wednesday"), with the article; he's still listed out until he's dressed, so don't call him back yet.
5. **Off the club's report:** when `off_club_report` is set, the club no longer lists the player, but another source still does (usually SIHF's sheet of the last game). Say that, with the date; `return` is the club's last estimate from before, so don't present it as current, and don't guess that he's back.
6. **Suspensions:** when `return.kind` is `games`, `min` is the date of the first game the player may play again. He misses the games before it, not the game on that date.
7. **Quote only the source's words:** `return.text` is the source's wording when `return.text_by` is `source`. When it is `sidelined` (league suspensions: "für 3 Spiele gesperrt"), it's our summary: say it in your own words, without quotation marks.
8. **`inferred` means reason unknown:** the player is a regular missing from recent lineups, nothing more. Say so.
9. **Only `out` counts as unavailable.** `scratch` (healthy scratch, import limit) and `loan` (farm team or another club) are roster decisions, not absences; they are left out unless asked for.
10. **Game dates:** `next_game` is each club's next National League game, from the league's schedule. Use it rather than another site; for games further ahead, or other competitions, say it isn't in this data.
11. **Season figures aren't in this data:** man-games lost, ice time missing and goalie games lost per club are on https://sidelined.ch/stats (this season so far and 2025/26). Link there; don't count them from the current entries, which only show who is out now.
12. **Mind freshness:** the data is refreshed every 15 to 30 minutes, and around games; `checked_at` and `updated_at` say how recent it is.
## MCP server

`https://mcp.sidelined.ch`: remote MCP over Streamable HTTP, read-only, no key, the same data and limit as the API (60 requests a minute; a JSON-RPC batch counts each message and holds at most 10). Its instructions carry the rules above.

| Tool | Answers |
|---|---|
| `list_teams` | The 14 clubs with their counts (out, scratches, loans) and when they were last checked |
| `get_team_absences` | One club's entries (`team`: slug or name; `categories`: `out` by default) |
| `search_absences` | Entries across the league by `team`, `type`, `confidence`, `categories` |
| `get_recent_changes` | Players listed, updated (including off and back on the club's medical report) and no longer listed, newest first, the last 14 days |

Claude Code:

```sh
claude mcp add --transport http sidelined https://mcp.sidelined.ch
```

Other clients: add a remote (HTTP) MCP server with the URL above. Claude, ChatGPT and other chat apps: [sidelined.ch/ai](https://sidelined.ch/ai) walks through it.

## Agent skill

[`https://sidelined.ch/SKILL.md`](https://sidelined.ch/SKILL.md): everything above in one file, in the Agent Skills format: the calls, the club slugs and the presentation rules. Point an agent at it:

```text
Read https://sidelined.ch/SKILL.md and tell me who's out for EV Zug.
```

Or install it for Claude Code:

```sh
mkdir -p ~/.claude/skills/sidelined && curl -fsSo ~/.claude/skills/sidelined/SKILL.md https://sidelined.ch/SKILL.md
```
