MCP tools: ratings and rating history

Open
#253 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
backend-api-design, python
Domain
api, backend

Research direction

Start from the MCP tool definitions and the API client that wrap GET /api/v1/players/{code}/ratings and /rating-history, as referenced by ADR 0031. Check how existing tools return ratings so reliability and demonstration: true sit beside every value. Done when both tools page correctly, a hidden player returns the same result as an unknown code, and recorded-response tests pass. Depends on issue #251, which should land first.

Written by the indexing model from the issue text.

Description

area:api area:ratings enhancement priority:p2 size:S

Epic: #249

Problem: "How has my rating moved since September?" is the main question players will ask. The answer must carry the rating's reliability and its demonstration label, as the API does.

Scope:

  • get_player_ratings tool over GET /api/v1/players/{code}/ratings (ADR 0031)
  • list_player_rating_history tool over GET /api/v1/players/{code}/rating-history, with the API's paging
  • Every rating in tool output keeps its reliability next to it and demonstration: true
  • Tool descriptions tell the assistant to show reliability with every rating and to say ratings are demonstration ratings
  • Tests with recorded made-up responses, including a hidden player (404)

Acceptance criteria:

  • No tool output holds a rating without its reliability and demonstration label
  • A player hidden by rating_visibility or rating_history_visibility looks the same as an unknown code

Out of scope:

  • Computing anything from the history, such as a trend or a prediction (hard rule 2: the engine does rating math)

Depends on: #251

Size: S

Dominant language
Python
Stars
0
Forks
1
Avg merge
1h 7m
Merged PRs (30d)
206

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.