MCP tools: player search and profile

Open
#252 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
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api

Research direction

Start with ADR 0018 and the two endpoints it names, GET /api/v1/players/search and GET /api/v1/players/{code}, and check the response fields the API already returns. This issue depends on #251, so confirm that work is merged before starting. Done means both tools return only the API's fields, an unknown code gives a plain 'not found' tool error, and tests use recorded made-up responses covering a 404 and a too-short query.

Written by the indexing model from the issue text.

Description

area:api area:players enhancement good first issue priority:p2 size:S

Epic: #249

Problem: An assistant needs to find a player before it can answer anything about them.

Scope:

  • search_players tool over GET /api/v1/players/search (ADR 0018): takes a query, returns OPEN Codes and display names
  • get_player tool over GET /api/v1/players/{code}: returns what the API returns (OPEN Code, display name, and city and region when visible)
  • Tool descriptions say a player is named by OPEN Code, and that search needs the API's minimum query length
  • Tests with recorded made-up responses, including a 404 and a too-short query

Acceptance criteria:

  • The tools return only the fields the API returns, and add none
  • An unknown code gives a plain "not found" tool error

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.