Bolea for agents: usage guide

MCP server: https://bolea.club/mcp. How to connect it · All the tools · Everything in one text · Español

This guide is for you, an AI agent working for a Bolea member. It says what you can do, which tool to use, and which errors to expect.

  • MCP server: https://bolea.club/mcp (Streamable HTTP, JSON-RPC 2.0, OAuth 2.1).
  • Full catalog with parameters: https://bolea.club/mcp/tools.json.
  • The rule behind everything: you can do what a person does in the app, except what only the person can give (see "What an agent cannot do").

1. What Bolea is and how the level works

Bolea is a tennis community in several cities across the Americas. Anyone 18 or older can create an account in the app. Every player has a level, the BLE, from 0 to 100.

  • The starting BLE comes from a level assessment the member answers once.
  • After that it moves with confirmed matches. The first matches move it more, and the member shows as provisional (is_provisional).
  • A singles match between members is proposed, accepted, played and reported. One player reports the score and the other confirms it, corrects it or disagrees. If nobody answers in 5 days (120 hours), it counts as reported.
  • Incomplete or tied matches move the BLE by games, but they are not a win or a loss.
  • These do not move the BLE: doubles, training, and matches with someone who is not on Bolea. Several matches against the same rival in one week may not move it either.
  • The BLE updates when the score is confirmed or the 5 days pass. Don't promise the member how much it will go up or down.
  • level_gap is the other player's BLE minus the member's, rounded. Positive means the other player is stronger.
  • band is the level band Bolea shows next to the BLE.
  • The member can retake the assessment only if they have no reported score (see 3.11).

2. First steps after connecting

Read in this order. Every call counts toward your limits (see 7).

  1. how_bolea_works: this same guide (lang: es or en). The basics also arrive in the server instructions.
  2. get_my_profile: name, city, hand, backhand, bio, schedule, whether they coach or hit (coach, hitting_partner) and id. That id is the p_member for player_stats and player_profile when you want the member's own data.
  3. my_onboarding_status: confirms the account is active and that the member accepted the current terms (legal.accepted). If not, tell them to accept in the app.
  4. my_agenda: what is pending. Proposals to answer, scores to report or confirm, upcoming matches.
  5. doubles_agenda: the same for doubles.
  6. news: what changed since you last asked. The first call returns everything. Use it at the start of each session to brief the member.
  7. player_profile with the member's id: their BLE, venues and stats.

Read assessment_questions only if the member is going to retake the assessment.

3. Flows

Parameters keep the p_ prefix as they appear in the catalog. IDs are UUIDs. A member reaches you as a card: {id, first_name, last_name, gender, photo_path, ble, is_provisional, band, active, nationality, linkedin, coach, hitting_partner}; a former member is just {id, former: true}.

3.1 Find a rival

search_players returns {member_id, member, level_gap, distance_km, last_match_on, main_venue, total, ...}.

ParameterWhat it is
p_queryName. With a name, the search covers the whole community, word by word
p_ble_min, p_ble_maxBLE range
p_venue_idsList of venue ids
p_citiesList of cities
p_availabilityTime slots when they play (see below)
p_max_kmMaximum distance in km
p_sortlevel, active, new, near or club (shares a club, then proximity and level)
p_limit, p_offsetPaging: up to 200; use p_offset for the next page

Any other p_sort returns invalid_sort.

Time slots (p_availability). They look like <day>_<slot>: days mon, tue, wed, thu, fri, sat, sun; slots by local time.

SlotTime
morning6 to 11 a.m.
midday11 a.m. to 2 p.m.
afternoon2 to 6 p.m.
night6 to 10 p.m.

Example: sat_morning. p_slots is for old app builds: use p_availability.

Other tools:

  • count_players: how many match the same filters.
  • suggested_players: up to 5 suggestions.
  • venue_players: players at an approved venue (p_venue).
  • player_profile (p_member): profile without private data. phone_verified says whether they verified their phone through WhatsApp, without the number.
  • rival_insights (p_member): head-to-head, form, win probability.
  • in_common (p_member): what you share.
  • class_offers: coaches and hitting partners taking students (see 3.19).

A blocked member, one who does not exist, or one who is no longer active returns member_not_found or opponent_not_active.

3.2 Propose, counter, accept, reject and cancel

Propose.

  1. Optional: proposal_defaults (p_opponent, p_count up to 10) gives suggested times, the time zone and the shared venue.
  2. Get the venue_id from search_venues (3.13) or from the rival's profile.
  3. Call propose_match.
{
  "p_opponent": "3f2b8c1e-5a4d-4e7f-9b21-6c0d1a2e3f40",
  "p_scheduled_at": "2026-11-12T18:00:00-05:00",
  "p_venue_id": "9a7d41c2-0b3e-4f58-8c6a-2d1e5f7b9a30",
  "p_note": "Want to play after work?"
}
  • Place (optional): p_venue_id of an approved venue or the member's own "Otra" venue, or p_venue_text with free text.
  • p_timezone (an IANA name, like America/Bogota) only counts when there is no venue with a time zone.
  • The time must be in the future (scheduled_in_past).
  • It returns {match_id, level_gap, level_gap_warning}. If level_gap_warning is true, tell the member the level gap is large.
  • The proposal expires at the match time. Up to 5 unanswered (pending, expired or rejected) to the same person (too_many_proposals). They count from the last time the other person accepted a match between the two or wrote to your member, and never more than 60 days back. With those 5, your member can't message them in the chat either.

Receive and answer. Look at my_agenda:

  • proposals: your member's turn to answer. Each has match_id, scheduled_at, timezone, venue, note, expires_at, countered and from.
  • awaiting_reply: proposals the member sent that are waiting for an answer.

To answer one from proposals:

ActionTool
Acceptaccept_proposal (p_match)
Rejectreject_proposal (p_match). Marked destructive
Another time or placecounter_proposal (p_match, p_scheduled_at, and p_venue_id or p_venue_text). Now it is the other member's turn

If counter_proposal has no venue, the previous one stays. If you send one, it replaces the previous one, "Otra" with p_venue_text included.

Cancel. cancel_match (p_match) cancels an accepted match or a proposal the member sent that has no answer. Marked destructive. With a reported score it returns match_not_cancellable.

Answering a proposal when it is the other member's turn returns not_your_turn; an expired or already answered one returns proposal_not_pending.

3.3 Report and confirm the score of a scheduled match

An accepted match whose time has passed and has no score sits in my_agenda.to_report until someone reports it or cancels it.

  1. Take the match_id from to_report.
  2. Call match_detail (p_match). Check my_side: "a" or "b".
  3. Ask the member for the score, the sets, and whether it finished. Don't guess.
  4. Call report_result.

p_sets orientation. In report_result and correct_result, a is player A's games in the match and b is player B's. If my_side is "a", your member's games go in a. If it is "b", they go in b.

{
  "p_match": "b41e0d52-7c3a-4f9e-a1d8-5e6f70819a2b",
  "p_format": "best_of_3",
  "p_sets": [{"a": 3, "b": 6}, {"a": 4, "b": 6}],
  "p_finished": true
}

This example is for a member whose my_side is "b" and who won 6-3 6-4. Optional: p_played_at (only if it was played on a different day or time than scheduled_at), p_kind, p_surface, p_duration_minutes, p_competition (see 3.4).

  • Without p_played_at, a match scheduled more than 31 days ago can still be reported. With p_played_at more than 31 days back, you get played_too_old.
  • The match must be accepted (match_not_reportable otherwise).

Format and score (p_format, p_sets, p_finished).

p_formatWhat it isSets to win
one_setOne set to 61
eight_game_setOne set to 81
best_of_3Best of 32
best_of_5Best of 53
freeFree: any number of sets, up to 7, or up to 100 in point setsWhoever wins more sets; 1-1 is a tie

Short sets and point sets. Send p_format: "free" with the details in each set. Short sets: {"a": 4, "b": 2, "to": 4} (4-0 to 4-2, 5-3 and, with a tiebreak, 4-3 or 5-4). Point sets: {"a": 21, "b": 15, "to": 21, "points": true}, with "underhand": true for an underhand serve; all to the same points. You win by reaching to or, if play continued, by 2. A point set doesn't change the BLE or count as a win: it stays in the history and activity.

Each set is an object with games:

CaseShape
Normal set{"a": 6, "b": 4}
Set with a tiebreak, only 7-6 (or 9-8 in an 8-game set){"a": 7, "b": 6, "tiebreak": {"a": 7, "b": 4}}. Whoever wins the set wins the tiebreak
Deciding tiebreak in place of the last set{"a": 10, "b": 7, "super_tiebreak": true}. If played to 7: {"a": 7, "b": 5, "super_tiebreak": true, "tiebreak_to": 7}

Rules the server validates when p_finished is true:

RuleDetail
Set to 66-0 to 6-4, 7-5 or 7-6
Set to 88-0 to 8-6, 9-7 or 9-8
Set tiebreakTo 7 points, win by 2
Deciding tiebreakOnly as the last set of best_of_3 or free, with sets tied. To 10 or to 7 (tiebreak_to), win by 2
SetsNo sets after the match is decided
GamesAt least 1 game played

p_finished: false means "we didn't get to finish". Then any score is accepted, with no winner, and it cannot include a deciding tiebreak. An invalid score returns invalid_score; the server doesn't say which rule failed, so check these.

Confirm, correct or disagree. If the rival reported, the match is in my_agenda.to_confirm with result_id, sets, my_side and expires_at.

ActionTool
Confirmconfirm_result (p_result). Makes it official
Correctcorrect_result (p_result, p_format, p_sets, p_finished, and the optionals). The member becomes the reporter and the rival has to confirm
Disagreedisagree_result (p_result, p_complain). The score is annulled and the match does not count. With p_complain: true it also files a private complaint
Complain laterfile_complaint (p_match). Only the member who disagreed, within 14 days. Otherwise no_disagreement

All four are destructive: ask the member. Show them the score and which side is theirs before confirming.

After reporting, check my_agenda.awaiting_result (not confirmed yet) and my_agenda.disagreed (the rival said no).

3.4 Report a match that was never scheduled (including a past day)

Use report_match when the member played another member without going through a proposal. It creates the match and the score together.

  • It works for today or a past day, up to 31 days back (played_too_old).
  • p_played_at can be up to 1 hour in the future (played_in_future beyond that).
  • In report_match, a is the member's games and b is the rival's.
  • The rival gets the score to confirm, as in 3.3.
{
  "p_opponent": "3f2b8c1e-5a4d-4e7f-9b21-6c0d1a2e3f40",
  "p_played_at": "2026-11-02T18:00:00-05:00",
  "p_format": "best_of_3",
  "p_sets": [
    {"a": 6, "b": 4},
    {"a": 3, "b": 6},
    {"a": 10, "b": 7, "super_tiebreak": true}
  ],
  "p_finished": true,
  "p_venue_id": "9a7d41c2-0b3e-4f58-8c6a-2d1e5f7b9a30",
  "p_kind": "social",
  "p_surface": "clay",
  "p_duration_minutes": 95
}

It returns {match_id, result_id}. Ask the member for the day and, if they can, the time; the day decides which week it falls in for streaks. It's destructive, because it creates a score the rival sees: confirm the details with the member first.

Optional details on any score.

ParameterValues
p_kindpractice, social, club, league, tournament
p_surfaceclay, hard, grass, har_tru
p_duration_minutesInteger from 5 to 600 (invalid_duration)
p_competitionId of one of the member's competitions (my_competitions). Someone else's or an archived one returns competition_not_found

All count the same for the BLE, leaderboards and streaks. Duration belongs to each player: if you didn't report it and there already was one, it only changes for you. You can fix them later with set_match_details (p_match or p_doubles, only one; anything you send as null is left unchanged) and set_match_competition. my_last_surface (p_venue) gives the last surface used at that venue. Competitions: my_competitions, create_competition (p_name up to 60, p_kind club, league or tournament), rename_competition, archive_competition. Only the owner sees their competitions.

3.5 A match with someone who is not on Bolea

Singles only. You save the person, log the match and invite them. Until they join, the match adds to the member's activity streak and their time on court, and nothing else: it doesn't move the BLE or count in leaderboards or stats.

  1. external_rivals_mine: the saved ones. Your view doesn't include their phone number.
  2. If they are not saved: external_rival_add (p_name 1 to 120 characters; optional p_phone in E.164 format, for example +573105550142). The member gives you the number; don't make it up. Without a phone only the name is saved, and the person becomes a member only if they join with the link the member sends them.
  • Response {kind: "external", rival}: saved.
  • Response {kind: "member", member}: that phone belongs to an active member and nothing was saved. Continue with 3.3 or 3.4 using member.id.
  • The member's own phone returns cannot_play_yourself.
  1. report_external_match. Here a is the member's games and b is the rival's.
{
  "p_rival": "c5d8a3f1-62b7-4e0c-8f19-a4b3c2d1e0f9",
  "p_played_at": "2026-11-03T16:30:00-05:00",
  "p_format": "best_of_3",
  "p_sets": [{"a": 6, "b": 4}, {"a": 6, "b": 3}],
  "p_finished": true,
  "p_kind": "social"
}

It returns the match with its id. Dates (31 days), score and optionals work as in report_match. Up to 20 a day (too_many_external_matches).

  1. external_rival_invite (p_rival) returns {kind: "external", code, short_code}. The link is https://bolea.club/i/<code>. Give it to the member to send; you don't send the message. The person installs Bolea and taps the link again to join with the invite.
  • {kind: "member", member, converted}: the person is already a member. Their matches have now moved to confirmation.
  • {kind: "unavailable"}: that person can't be invited. Don't explain further.
  • already_member or invitations_paused when they apply.
  1. When it becomes official. When the person joins, each match becomes a normal match with a score waiting for confirmation. It counts when they confirm it, or after 5 days if they don't answer.

Management: external_matches_mine, external_match_delete (p_id, recalculates the streak), external_rival_update (p_rival, p_name, p_phone; p_phone: "" removes the phone), external_rival_delete (their matches stay, without a rival name).

3.6 Doubles

A doubles match has 4 players. The organizer takes position 1. Positions 1 and 2 are side A; 3 and 4 are side B. Doubles don't move the BLE; they count in the wins and activity leaderboards and in the weekly streak.

Organize. create_doubles with the court already booked:

{
  "p_scheduled_at": "2026-11-14T09:00:00-05:00",
  "p_minutes": 90,
  "p_court_booked": true,
  "p_venue_id": "9a7d41c2-0b3e-4f58-8c6a-2d1e5f7b9a30",
  "p_slots": [
    {"position": 2, "invite": "3f2b8c1e-5a4d-4e7f-9b21-6c0d1a2e3f40"},
    {"position": 3, "open": true, "gender": "any"},
    {"position": 4, "open": true, "gender": "female"}
  ],
  "p_ble_min": 55,
  "p_ble_max": 75
}

Adjust the range so it includes the member's BLE.

  • p_slots always has 3 spots: 2, 3 and 4. Each is {position, invite} with a member id, or {position, open: true, gender} with any, female or male.
  • p_ble_min and p_ble_max are required when any spot is open, and must include the member's BLE (invalid_ble_range).
  • p_minutes: 60, 90 or 120. p_court_booked must be true. Ask the member whether they booked the court.
  • Time between 1 hour and 30 days from now (invalid_open_match_time). A place is required: p_venue_id or p_venue_text.
  • Up to 3 active doubles per organizer (too_many_doubles).

Take part.

I want toTool
See doubles with an open spotopen_doubles
Ask for a spotrequest_doubles_slot (p_id, p_position)
Withdraw the requestwithdraw_doubles_request (p_id)
Answer an invitationanswer_doubles_invite (p_id, p_accept)
Leaveleave_doubles (p_id). The organizer cancels instead
See what is pendingdoubles_agenda; detail with doubles_detail (p_id)

As organizer: respond_doubles_request (p_request, p_accept), change_doubles_slot (p_id, p_position, and p_invite, or p_gender with any, female or male, and optional p_ble_min/p_ble_max), cancel_doubles (p_id). With a reported score you get result_already_reported.

Score.

  • Doubles from the app: report_doubles_result (p_id, p_format, p_sets, p_finished, optionals). The doubles match must be full (doubles_not_full). In p_sets, a is side A (positions 1 and 2) and b is side B, no matter who reports. See each player's side in doubles_detail.slots[].side.
  • A doubles match that was never scheduled: report_doubles (p_partner, p_rival_1, p_rival_2, p_played_at, p_format, p_sets, p_finished, place and optionals). Here a is the member's pair and b is the two rivals. Up to 31 days back.
  • The other pair confirms with confirm_doubles_result (p_result) or disagrees with disagree_doubles_result (p_result). If nobody answers, it counts after 120 hours. The result_id comes from doubles_agenda.to_confirm.

Doubles chat. my_doubles_chats, doubles_chat (p_id, p_before_id, p_limit), send_doubles_message (p_id, p_message_id, p_body), mark_doubles_chat_read (p_id). Generate a new UUID for p_message_id. If the chat is closed, doubles_chat_closed.

3.7 Open matches

A member with a court already booked posts a match; anyone in the level range asks to join and the organizer chooses.

Post. publish_open_match:

{
  "p_scheduled_at": "2026-11-15T08:00:00-05:00",
  "p_minutes": 90,
  "p_ble_min": 50,
  "p_ble_max": 70,
  "p_court_booked": true,
  "p_venue_id": "9a7d41c2-0b3e-4f58-8c6a-2d1e5f7b9a30",
  "p_note": "Court 3, I'm bringing balls."
}
  • p_minutes: 60, 90 or 120. p_court_booked must be true.
  • Time between 1 hour and 30 days from now. Up to 3 active open matches.
  • p_ble_min/p_ble_max go from 0 to 100.
  • p_only_gender (female or male) can only be the organizer's own.
  • p_note up to 200 characters. p_venue_text ("Otra") creates a venue pending review.
  • p_timezone only if the venue has no time zone.

Find and ask. open_matches (p_max_km, p_from, p_to as the venue's local date YYYY-MM-DD, p_level mine or all, p_limit up to 100). Each match has viewer: can_request, requested, out_of_range or other_gender. Ask with request_open_match (p_id); withdraw with withdraw_open_match_request (p_id). Up to 5 pending requests.

Organize. my_open_matches, open_match_detail (p_id, includes requests), open_match_requests_to_answer, respond_open_match_request (p_request, p_accept; accepting returns the new match_id, which continues as a normal match), cancel_open_match (p_id).

3.8 Messages and sharing WhatsApp

  • my_conversations (p_limit up to 200, p_before_id): conversations that have messages.
  • open_conversation (p_member or p_conversation): state, pending match between the two. With no messages yet, conversation_id is null.
  • conversation_messages (p_conversation, p_before_id, p_limit up to 100): newest first.
  • send_message (p_member, p_id, p_body):
{
  "p_member": "3f2b8c1e-5a4d-4e7f-9b21-6c0d1a2e3f40",
  "p_id": "f0a1b2c3-d4e5-4f60-9a7b-8c9d0e1f2a3b",
  "p_body": "Hi, does Saturday at 9 work for you?"
}

p_id is a new UUID you generate. If you retry with the same p_id, nothing is duplicated. Body of 1 to 1000 characters, with no spaces at the edges.

  • mark_conversation_read (p_conversation), my_unread_messages.
  • share_my_whatsapp (p_member, p_id, optional p_number): sends the member's number inside the chat. It is destructive: ask first. Without p_number it uses the one in Settings; if there is none, whatsapp_required. p_number must be E.164 (invalid_whatsapp).
  • If a message in conversation_messages has kind: "whatsapp", it holds the number the other member shared with your member. Don't store it or copy it anywhere else.

Messages only go between active members with no block (cannot_message).

3.9 Training

Sessions don't count toward the BLE, match streaks or leaderboards, and can't be used to report a match.

training_log:

{
  "p_on_date": "2026-11-04",
  "p_kind": "lesson",
  "p_kinds": ["lesson", "strength"],
  "p_minutes": 75,
  "p_focus": ["serve", "forehand"],
  "p_effort": 3,
  "p_partner": "Club sparring partner",
  "p_note": "Worked on the second serve."
}
FieldValues
p_on_dateYYYY-MM-DD. Not in the future in the member's time zone, and not more than a year back
p_kindRequired. On court: lesson, clinic, hitting_partner, rally, basket, ball_machine, serve, drills. Games: dingles, ping_pong, five_and_live, figure_of_eight, champ_of_the_court, champs_and_chumps, tag_team, one_ball_live, up_and_down_the_river. Off court: strength, cardio, footwork, mobility
p_kindsOptional. A list of several types, no repeats. Takes precedence over p_kind
p_minutes5 to 600: the total for the session, even with several types
p_focusOptional. Strokes, no repeats: serve, return, forehand, backhand, volley, smash, movement, tactics
p_effortOptional. 1 to 5
p_partnerOptional. Up to 80 characters
p_noteOptional. Up to 280 characters

With several types, send p_kind with any one of them (it is required) and the full list in p_kinds. The server stores the types with on-court ones first, and kind is the first. A session counts as "on court", with all its minutes, if it has at least one on-court type.

  • training_update (p_id and the same fields): replaces everything, and any optional field you leave out is cleared. Marked destructive. Send every field.
  • training_delete (p_id): destructive.
  • training_week (p_week_start: any day of the week; without it, the current one): sessions, minutes and recent, the latest combinations to repeat.
  • training_summary (p_member): month minutes and weekly streak. For another member, never the detail.

Errors: invalid_training_date, invalid_training_kind, invalid_training_minutes, invalid_training_focus, invalid_training_effort, invalid_training_partner, invalid_training_note, training_not_found.

3.10 Stats and leaderboards

player_stats (p_member, p_period, p_mode, p_rival):

ParameterValues
p_memberMember id. For another member, the private keys are left out
p_periodall (default), year (since January 1) or 6m
p_modesingles (default) or doubles. Never combined
p_rivalall (default), coach or hitting_partner: only matches against someone who is marked today as a coach or hitting partner (in doubles, one rival is enough)

It returns {summary, by_kind, by_surface, vs_level, streaks, rankings, network, rival_counts, external_played, training, feedback}. It only counts confirmed scores; matches against external rivals are not included. rival_counts says how many matches were against a coach and against a hitting partner, without the filter. (20 Nov) For the member themselves it also has vision: the Bolea Vision numbers from all their videos, independent of period and mode. It has videos; serve (fastest_kmh, first_avg_kmh, first_in out of points, double_faults over matches videos); strokes (forehand_avg_kmh, backhand_avg_kmh, fastest with kmh and type); movement (distance_m over videos videos, peak_mps); and game (shots_per_point, forehands, backhands, inside_out_forehands). Each block is null without data, and vision is null without videos. Speeds are estimates made from the video. First serves in % is first_in / points. Any other period, mode or rival: invalid_stats_period, invalid_stats_mode, invalid_stats_rival.

ranking_board (p_kind, p_period, p_gender, p_area):

p_kindp_periodWhat it measures
levelDon't sendThe rounded BLE
streaksDon't sendWin streak
winsRequired: week, month or allMatches won
activityRequired: week, month or allMatches played

p_gender: all (default), female or male. p_area: all (default) or near (within 100 km). Any combination that doesn't exist returns invalid_ranking. It returns {rows, me, calibrating, previous}; rows are the top 50.

Others:

  • my_rating_evolution (p_since, a date YYYY-MM-DD): each BLE change with its delta and reason.
  • my_streak: weekly activity streak, win streak and the last 8 weeks.
  • my_match_history (p_rival, p_result won or lost): confirmed matches.
  • badge_overview: badges and progress.
  • community_feed (p_limit up to 50, p_filter results, badges, ranking, members or contacts), community_match (p_match), community_doubles (p_doubles): what is happening in the community. Nearby first, along with new members wherever they are; each community_feed entry has near and city. With contacts, only what involves people in the member's phone contacts and people who played with them.

3.11 Retake the level assessment

It changes the member's BLE and makes it provisional again. It is only possible if they have no reported score in one of their matches.

  1. my_assessment_retake_available: true or false. If false, tell them they can't retake it.
  2. Ask the member for permission. request_my_assessment_retake and submit_assessment are destructive.
  3. assessment_questions: the keys and options for p_answers, and when each is asked.
  4. Ask the member each question. Don't answer on their behalf. Age and gender come from the profile; the age and the country for the competition question are in my_onboarding_status.
  5. With all answers gathered, call request_my_assessment_retake and then submit_assessment with p_answers right away. If a retake is left pending, the app asks the member to do it.
  6. If they answer across several conversations, save_assessment_progress (p_answers, p_current_step) saves progress. p_current_step is the question key (competition_level, strokes.serve).

submit_assessment returns {ble, strengths, weaknesses, is_retake, scale}. If answers are missing: invalid_assessment. With no retake pending: assessment_not_required. With a reported score: retake_not_available.

3.12 Profile, work and network

  • get_my_profile, update_my_profile: bio (up to 160), dominant_hand (right, left), backhand (one_handed, two_handed), availability (a list of slots as in 3.1; it replaces the whole list and can't be left empty), coach and hitting_partner (see 3.19). Only what you send changes. An invalid value returns the generic error.
  • my_work, update_my_work (p_data with company, title, school, area, role; "" clears a field; company and title up to 80, school up to 120). No tool lists the area and role codes: send those two only with a code my_work already returned. An invalid value returns invalid_work. If the member hasn't accepted the terms, legal_not_accepted.
  • set_company_hidden (p_hidden): hides or shows their company. dismiss_work_notice: closes the work-data notice.
  • set_linkedin_url (p_url, or null to remove it): only if the member already connected LinkedIn (linkedin_not_connected); invalid_linkedin_url if it isn't linkedin.com/in/<username>.
  • remove_member_photo (p_position 1 to 3): removes a gallery photo. Destructive. You can't upload any.
  • my_network: up to 150 members with something in common (with feature_off if the feature is off).
  • my_invite_link: your member's personal link to invite people to Bolea, {code, short_code, url, uses}. url is https://bolea.club/i/<code>: it works for several people, doesn't expire and is always the same. Whoever creates an account with it shows up as invited by your member. Give it to your member to share; you don't send it. uses is how many people joined with it.
  • create_invitation (p_phone in E.164, p_name, p_email, p_estimate): an invite for one person. Returns {id, code, short_code, expires_at}. The link is https://bolea.club/i/<code>: give it to the member. The person installs Bolea and taps the link again to join with the invite. p_estimate is how the person plays compared with the member: better, similar, worse or unknown. With p_email, Bolea sends that person an email: ask first. annul_invitation (p_invitation) cancels a pending one; destructive.

3.13 Places and location

  • search_venues (p_query required, p_limit up to 100, p_latitude and p_longitude together or neither): gives the venue_id.
  • venue_map_cities: the cities where Bolea has venues, with how many each has.
  • venue_map (p_ble_min, p_ble_max, p_availability): nearby venues (up to 300 within 100 km) and your member's own, with member counts. For another city, search_venues.
  • Another city: venue_map_cities gives the cities and their coordinates. search_venues searches by the city's or the venue's name. With the venue_id, venue_players gives who plays there; or search_players with p_cities and the city that search_venues returned. If your member is traveling, set_travel_mode changes their city.
  • suggest_venue (p_name, and optional p_kind, p_address, p_city, p_latitude with p_longitude, p_country_code, p_timezone): suggests a venue that doesn't exist. Search first. p_kind: club, public_court or residential. It goes into review. Up to 10 new ones a day (too_many_attempts).
  • set_my_venues (p_venues: [{"venue_id": "...", "can_book": true}], 1 to 3): replaces the member's venues. Each one needs can_book: true, which the member has to confirm. Ask them before sending it.
  • set_max_distance (p_km 1 to 100, or null), update_my_location (p_latitude, p_longitude, p_city, p_country_code 2 letters), clear_my_location, set_travel_mode (p_city, p_country_code, p_latitude, p_longitude; with p_city as null it turns off). Use coordinates the member gives you. They are stored rounded to about 1.1 km.
  • my_last_surface: see 3.4.

3.14 News preferences

set_news_preferences is the permission to receive news, events and promotions from Bolea by email, push or WhatsApp. It is not the news tool.

  • my_news_preferences: {email, push, whatsapp, answered_at}.
  • set_news_preferences (p_email, p_push, p_whatsapp, p_source): an agent can only turn things off. Turning a channel on returns not_allowed. Send the channels that don't change exactly as my_news_preferences reads them. p_source: onboarding, home_card or settings; use settings.

3.15 What's new: news

news returns {since, agenda, unread_messages, open_matches}: the member's agenda, unread messages and the open matches they can ask to join or already asked to join, since the last time this agent asked (since, or null the first time). Calling it marks what you saw. Use it to tell the member what is pending.

3.16 Tournaments and leagues

There are three kinds: Bolea's and a club's (official) and community ones (unofficial). Any member creates a community one with tournament_create, up to 3 unfinished. A tournament has categories, each with its draw: elimination, round robin or groups into elimination, with an optional consolation draw (Cuadro B) in elimination.

To create one, call tournament_create with p_data:

{
  "kind": "tournament",
  "name": "Tuesday Cup",
  "venue_text": "Club El Lago",
  "access": "public",
  "starts_on": "2026-12-10",
  "ends_on": "2026-12-20",
  "registration_closes_at": "2026-12-09T23:00:00Z",
  "timezone": "America/Bogota",
  "categories": [
    {"name": "Open", "capacity": 8, "draw_type": "elimination", "format_main": {"kind": "best_of_3", "decider": "super_10"}}
  ]
}

Each category in categories:

FieldValues
nameRequired, up to 40 characters
capacityRequired, 3 to 64. Round robin, up to 8; a league division, up to 10
format_mainRequired. kind: one_set, best_of_5, eight_game_set (with tb_at 7 or 8), best_of_3 (with decider set, tiebreak_7 or super_10), short_sets (with sets 1, 3 or 5) or points (with to from 3 to 99, sets and underhand)
draw_typeelimination (default), round_robin or groups (with group_size 3 to 6 and group_advance 1 or 2, and at least 6 spots). A league division is always round_robin
has_consolation, format_consolationConsolation draw, only in elimination
mode, mixedsingles (default) or doubles. mixed only in doubles, without gender
gender, ble_min, ble_maxWho can join. gender: male or female. In doubles, the range is on the pair's sum, up to 200
draw_modeassisted (default) or manual
agendaflexible (default) or scheduled
playoff_top4Only in a league: semifinals and final with the top 4

A league lasts at least 14 days, or 28 with semifinals. If tournaments aren't open for the member, tournament_create answers feature_off.

  • Joining: tournaments_list, tournament_detail and tournament_apply. The organizer accepts or rejects. For a level cap, the highest BLE in the last 90 days counts. If it returns tournament_unavailable, it doesn't say why.
  • Building: tournament_seeds, tournament_set_seeds if needed, and tournament_make_draw, only once. Or tournament_load_draw with a draw made by hand.
  • Playing: tournament_draw and tournament_line. Report with tournament_report_line, using the stage's format and "a" = the reporter. To schedule, propose_match and then tournament_link_match.
  • Scores: the rival answers with confirm_result, correct_result or disagree_result. Finally the organizer approves or edits with tournament_review_result. A disagreement voids nothing: the organizer decides. BLE moves on approval. After 5 days without an answer it's approved automatically, unless there's a disagreement.
  • Check first: before reporting a regular match, look at tournament_pending_line. If there's one pending with that rival, ask whether it's the tournament match.
  • Someone not on Bolea: tournament_add_guest and tournament_invite_guest. They play one match; to continue they must create a profile. Their matches move BLE when they join.
  • Organizing: tournament_todo says what's missing. tournament_walkover gives a walkover, a double walkover or more days. Nobody judges their own match.
  • Leagues: tournament_create with kind league. Divisions of up to 10, round robin until the end date, 3 points for a win and 1 for playing. If an opponent isn't answering, tournament_rival_silent. When it ends, tournament_new_season with promotion and relegation.
  • Doubles: a division with mode doubles. tournament_apply takes the partner: p_partner, or p_partner_name and p_partner_phone if they're not on Bolea. The partner answers with tournament_answer_partner, and the organizer can use tournament_add_pair. The opponent answers with confirm_doubles_result or disagree_doubles_result. They don't move BLE.
  • Profile: player_competition returns tournament matches separately. player_stats accepts p_scope competition and p_tournament.

Errors: tournament_not_eligible, tournament_closed, tournament_wrong_format, tournament_needs_winner, guest_must_register, next_line_has_result, not_tournament_staff, not_tournament_judge, draw_already_made, not_enough_entries, invalid_draw, too_many_tournaments, tournament_name_reserved.

3.17 Bolea Vision (beta)

Bolea Vision analyzes the video of a match or training session your member records with their phone: it returns the video without the breaks, each rally as a clip, stats and a heatmap. It's in beta and only some members have it: check my_features (vision). Without Vision, these tools return feature_off.

  • my_vision_analyses: their videos, newest first. status is queued, processing, completed, failed or expired. If the video belongs to a match, it has match_id, rival_name and played_on; with a training session, training_id and played_on. summary is null until the analysis has numbers; then it has rallies (how many rallies), highlights (how many highlighted rallies), shots_total, effective_play_s (seconds of play) and analyzed_duration_s (seconds of video analyzed). (20 Nov) If the video has the ball trail, once it's completed it also has speed, the ball speed on the member's shots in km/h: first_serve, second_serve, forehand, backhand, slice, lob, return and groundstrokes (each {avg_kmh, max_kmh, measured} or null), fastest_shot ({kmh, type, shot_id, rally_id}), measured_shots and shots. They're estimates made from the video: say so, and don't give a figure with fewer than 3 measured shots (measured). Without the trail, speed is missing or null.
  • vision_link (p_analysis, and p_match or p_training): links the video to a match they played or to one of their training sessions. Find the match with my_match_history and the session with training_week. Without p_match or p_training (leave them out, don't send null), it removes the link.
  • request_vision_access (Nov 18): asks for Vision for a member who doesn't have it, like "I want to try Bolea Vision" in the app. Returns status: has_access if they already have it or pending if the request is in (asking again doesn't send anything new). Bolea gets an email to approve it; once approved, your member gets a notification and an email, and my_features has vision set to true. While it's waiting, my_features has vision_access set to pending. If it isn't approved within 30 days, or if the email to Bolea doesn't go out, it goes back to none and they can ask again.
  • Uploading a video, watching the clips, the per-shot stats and the heatmap, reporting a clip or deleting a video happen in the app, in the Vision tab.

Errors: feature_off, match_not_found, invalid_value, rate_limited (request_vision_access: too many requests from everyone today; try again tomorrow).

3.18 Shop

The Bolea shop sells what we recommend for playing. Today it's the tripod for recording with Bolea Vision (USD 55, shipping separate), and only members with Vision see it. Nothing is paid in the app: Bolea writes to your member on WhatsApp to arrange payment and shipping.

  • shop_products (p_lang es or en): the products with id, name, description, specs, shipping, price_cents and currency, and in contact the WhatsApp number and city your member has on Bolea.
  • request_product (p_product, p_quantity from 1 to 5, p_whatsapp in E.164, p_city, optional p_note up to 300): places the order and returns order_id. It's a purchase: show your member the product, quantity, total before shipping, WhatsApp number and city, and wait for their yes.

Errors: not_found (a product that doesn't exist or your member can't see), invalid_value, rate_limited (more than 5 orders in 24 hours).

3.19 Classes and hitting (pilot)

Some members teach tennis (coaches) or get paid to hit (hitting partners). It's a pilot:

  • Each one says it about themselves. Bolea only puts them in touch: it doesn't verify it, give the class or charge for it.
  • The day, time, place and price are agreed in the Bolea chat.
  • Classes happen at public courts or at clubs that rent the court to anyone. Never inside private clubs, residential complexes or compensation funds: those are booked with the venue and follow its rules.
  • Classes aren't matches: they don't move the BLE or count in stats.

Finding one.

  • class_offers (p_kind: coach, hitting_partner or nothing for both): up to 50 people taking students. First those who come to your member's court (travels_to_you), then by distance to their nearest court (venue, distance_km). Each one has member, coach_rate, hitting_rate (per hour; with p_kind, only that role's), currency, note, books_court, court_included, city, rating (the average, from 3 reviews; before that, null) and reviews_count.
  • player_profile: classes has the same, with all their places, travels and travel_km, and whether your member can review them (can_review, my_review). If that person isn't taking students, null.
  • class_reviews (p_coach, p_limit up to 50, p_offset): {items, summary}. Each review has who wrote it (member), rating, body, created_at and mine.

Requesting a class. request_class (p_coach, p_kind, p_message from 1 to 1000, p_accept_terms): sends the first message to that person's chat, even if they aren't connected, and returns {conversation_id, message_id, created_at}. Then they continue in the chat (3.8). If they aren't connected, the first message always goes this way: send_message returns chat_needs_match.

  • First, show your member who they're writing to, whether it's a class or hitting, and the message. Wait for their yes.
  • The first time, the student confirmation is required (class_terms_required). my_classes says whether they already gave it (class_terms_accepted). Show them this text exactly and send p_accept_terms: true only if they say yes:

> If the class is at a private club, residential complex or compensation fund, I make sure its rules allow it. Bolea only puts us in touch: it doesn't give the class or charge for it. What we agree is between the two of us.

  • Up to 5 requests every 24 hours, and 1 to the same person every 24 hours.

Reviews. The stars and the text are your member's to decide: don't write them yourself. Show them the review and wait for their yes.

  • review_class (p_coach, p_rating from 1 to 5, optional p_body up to 300): creates or changes your member's review. Only if they requested a class through Bolea, that person replied in the chat and 24 hours have passed (review_not_allowed).
  • delete_my_class_review (p_coach): deletes theirs. If Bolea hid it, it removes the text and it stays hidden.
  • report_class_review (p_review): reports someone else's review. It goes to the admin, who hides it or keeps it.

If your member coaches or hits.

  1. update_my_profile with coach or hitting_partner set to true (false removes it). Everyone sees it on their card. Do it only if your member asks.
  2. my_classes: what's saved, attested (they signed the current confirmations), phone_verified, listed (they already show up in Classes) and has_identity (they already gave their ID and address; you don't get them).
  3. set_my_classes saves everything at once. Anything you leave out is cleared, except the ID and the address: start from my_classes and send every field.
ParameterWhat it is
p_open"I take students". Required
p_coach_rate, p_hitting_rateHourly rate for each role, per person, a whole number (37.5 is saved as 38). More than 0 and less than 100,000,000
p_currencyISO 4217 code (COP, USD, MXN, EUR). Defaults to COP
p_noteOptional, up to 140 characters: packages, groups, kids
p_books_court, p_court_included"I book the court" and whether the rate includes it
p_venue_idsUp to 3 approved places where they book: public courts or clubs. Never residential complexes or compensation funds (venue_not_allowed)
p_travels, p_travel_km"I go to your court" and how many km from their city, 1 to 100
p_attestSigns the coach's 4 confirmations
p_id_document, p_notice_addressTheir ID number (4 to 30 characters) and an address for legal notices (5 to 200). Not published: Colombian consumer law requires Bolea to keep them and give them to a student who files a complaint or to an authority. If you leave them out, the saved ones stay

To take students (p_open: true) they need:

  • to be marked as a coach or hitting partner (not_a_coach);
  • their phone verified through WhatsApp (phone_not_verified); the person verifies it in the app, not you;
  • the rate for their role (rate_required);
  • to book the court or go to the student's (court_mode_required), and a place if they book (venue_required);
  • the 4 confirmations (attestation_required);
  • their ID and an address for legal notices (identity_required). Ask your member for them: don't make them up or take them from elsewhere.

If Bolea removed their roles (classes_removed), they can't mark themselves again or take students.

Before p_open: true or p_attest: true, ask. Taking students publishes their rate and places. The confirmations are your member's personal statement. Show them the 4 texts exactly and send p_attest: true only if they say yes to all 4:

  1. I coach or hit on my own, without breaking a contract with a club or employer, or their rules.
  2. I book in my name at public courts or at clubs that rent to anyone, or I go to the student's court.
  3. I only teach where the venue's rules allow it. I don't offer classes through Bolea inside private clubs, residential complexes or compensation funds.
  4. I agree on price, payment and cancellations with each student. I'm responsible for the class and for any conflict with a club or employer. Bolea only puts us in touch.

Also tell them: "By confirming, you agree that people who ask you for a class through Bolea can rate you. Reviews show on your profile." Bolea saves whether they confirmed in the app or through an agent.

What's signed stays. Don't send p_attest again unless my_classes returns attested: false.

Errors: see "Classes and hitting" in 8.

4. Dates and time zones

DataFormat
A moment (p_scheduled_at, p_played_at)ISO 8601 with a zone: 2026-11-12T18:00:00-05:00 or 2026-11-12T23:00:00Z. Always send the offset or Z
A day (p_on_date, p_week_start, p_from, p_to, p_since)YYYY-MM-DD
A zone (p_timezone)IANA name, like America/Bogota. One that doesn't exist returns invalid_timezone
  • The venue decides. A match is stored in its venue's time zone. p_timezone only counts with no venue that has a zone; if you don't send one either, the member's zone is used. Responses include scheduled_at and timezone: convert the time to the match's zone when you show it to the member.
  • Future dates. propose_match and counter_proposal require a future time (scheduled_in_past). publish_open_match and create_doubles need a time between 1 hour and 30 days from now (invalid_open_match_time).
  • Past dates. To report a match already played (report_match, report_external_match, report_doubles, and report_result with p_played_at): up to 31 days back (played_too_old) and up to 1 hour in the future (played_in_future). A training session can be up to a year back and not in the future.
  • Weeks. The week runs Monday to Sunday in the member's time zone. The match day decides which week it belongs to for streaks.
  • Don't assume the time. If the member says "Saturday", confirm the time and the zone.

5. Rules

  1. You act in the member's name. You use their account, with the same rules as in the app. What you do is done in their name and other members see it.
  2. Ask before anything Bolea marks as destructive. The tools with annotations.destructiveHint are these (44):
AreaTools
Matchescancel_match, reject_proposal
Scoresreport_match, report_result, confirm_result, correct_result, disagree_result, file_complaint, archive_competition
External rivalsexternal_rival_add, external_rival_update, external_rival_delete, external_rival_invite, report_external_match, external_match_delete
Doublesreport_doubles, report_doubles_result, confirm_doubles_result, disagree_doubles_result, leave_doubles, cancel_doubles, withdraw_doubles_request
Open matchescancel_open_match, withdraw_open_match_request
Trainingtraining_update, training_delete
Messagesshare_my_whatsapp
Assessmentrequest_my_assessment_retake, submit_assessment
Safetyblock_member, unblock_member, report_member, report_message, report_doubles_message
Account and profilestop_sharing_contacts, disconnect_linkedin, remove_member_photo
Invitationsannul_invitation
Shoprequest_product
Classes and hittingset_my_classes, request_class, review_class, delete_my_class_review, report_class_review

Show the member what you are about to do, with the details, and wait for a yes. With p_attest or p_accept_terms, also show them the texts in 3.19 exactly.

  1. If the member didn't ask for it, ask before anything that commits them to other people, even if Bolea doesn't mark it: send_message, propose_match, create_invitation and set_my_venues.
  2. Don't make things up. Don't guess scores, times, phone numbers, locations or assessment answers. If something is missing, ask. Use the tools, not your memory.
  3. Other members' data is for helping your member. Don't store it, don't summarize it somewhere else, don't share it.
  4. Don't use errors to guess. A block looks like a member who doesn't exist. Don't push or try to work it out.
  5. Retry sparingly. If an action fails, read the code, fix what applies or tell the member. Don't loop.

6. What an agent cannot do

Only the person can give these. There is no tool for them. Tell the member to do them in the app.

ThingWhyWhat to tell them
Apple HealthNo agent sees or touches their Health activity, per the published privacy policyTo bring it in from the app, on a training session or a match
Sharing phone contactsThey are on their phone and the permission is theirsTo do it in the app. You can only stop sharing them
Connecting LinkedInIt goes through the LinkedIn sign-inTo connect it in the app. You can only disconnect it or set the link, once connected
Giving AI permissionsThe person gives the permissionTo turn it on in Settings
Turning news onThey can only be turned offTo turn them on in Settings or on the Home card
Uploading a photoThe tools don't upload filesTo upload it in Edit profile. You can only remove one
Uploading a video to Bolea Vision or watching its clipsThe tools don't upload files and the clips live in the video engineTo do it in the app, in the Vision tab. You can list their videos and link them to a match
Accepting the termsThe person accepts themTo accept them in the app
Confirming their emailThe person confirms itTo confirm it in the app
Verifying their phoneIt's verified from their WhatsAppTo verify it in the app. It's needed to take students
Deleting the accountOnly the person can do itTo do it in Settings
Removing or revoking an agentThe person decidesMore → Settings → Connected agents. my_agents only lists them
Links to sign back inThey open another person's accountTo use the app
Other members' WhatsAppThe number would end up in the system that runs youTo open it from the conversation in the app
The community group linkSameTo ask for it in the app

7. Limits

LimitValue
Calls per minute, per member60 (all their agents together)
Writes per minute, per member20
Matches with someone not on Bolea20 logged every 24 hours
New external rivals or changed phone numbers30 every 24 hours
Reporting a scoreUp to 31 days back
Unanswered scoreCounts after 5 days (120 hours)
Match proposalsExpire at the match time. Up to 5 unanswered to the same person, in the last 60 days
Distinct profiles viewed (player_profile)300 a day
Active open matches per organizer3
Active doubles per organizer3
Pending requests to open matches or doubles5 per member
Messages30 per minute; 20 new conversations every 24 hours
New suggested venues10 per day
Invitations by email30 per day
Invitations by phone100 per day
New member reports10 every 24 hours
Feedback (send_feedback)10 every 24 hours
Shop orders5 every 24 hours
Class or hitting requests5 every 24 hours; 1 to the same person every 24 hours

Sizes and pages: bio 160 characters; message 1000; open match note 200; training note 280; competition name 60; external rival name 120; class note 140; class review 300; up to 3 places where they teach; search_players up to 200 per page; my_conversations up to 200; conversation_messages up to 100; open_matches up to 100; community_feed up to 50; external_matches_mine up to 100; search_venues up to 100; class_offers up to 50; class_reviews up to 50.

When you hit the per-minute cap, wait a few seconds and retry once.

8. Errors

An error arrives as text: code: message. Only the code says what happened; the message on domain errors is generic ("La acción no se pudo hacer", Spanish for "the action couldn't be done"). An error with no recognizable code arrives as error.

If the server responds 401, the member hasn't connected or has removed your access. If it responds 403 with not_an_agent_token, the token isn't an agent's.

Access and account

CodeWhat to do
not_a_memberThe account isn't an active member's. Tell the member to finish joining in the app
agents_offAgents aren't open for this member yet. Don't retry
agent_revokedThe member removed your access. Stop
agent_not_grantedThe member didn't give you permission. Ask them to connect you again
agent_gateway_requiredServer failure. Retry later
too_many_agent_callsYou passed 60 calls or 20 writes in a minute. Wait and retry
legal_not_acceptedThe member hasn't accepted the current terms. They must accept in the app
not_allowedAn agent can't do this (for example, turning news on), or the thing isn't the member's
feature_offThe feature is off for this member. Don't use it
errorA rejection with no code: a value outside the list, a malformed UUID, an empty schedule list or a server failure. Check the parameters; if they are fine, retry once

People

CodeWhat to do
member_not_foundThat person doesn't exist, isn't an active member, or there is a block. Don't push
opponent_not_activeThe rival isn't an active member or there is a block. Pick someone else
cannot_play_yourselfYou chose the member themselves
player_unavailableIn doubles: a repeated player, an inactive one, or one with a block
cannot_messageYou can't message that person: inactive, the member themselves, or a block
too_many_profilesYour member viewed more than 300 distinct profiles today. Try again tomorrow

Proposals and matches

CodeWhat to do
scheduled_in_pastThe time has passed. Send a future one
proposal_not_pendingThe proposal was already answered, cancelled or expired. Check my_agenda
not_your_turnIt is the other member's turn to answer
not_a_participantThe member isn't in that match or score
match_not_foundThe match doesn't exist or isn't the member's
match_not_cancellableOnly proposals and accepted matches without a score can be cancelled
too_many_proposalsThere are already 5 unanswered proposals to that person. Wait until they accept a match or write
invalid_venueThe venue doesn't exist, isn't approved or isn't the member's. Look it up with search_venues
invalid_timezoneAn IANA zone that doesn't exist
invalid_match_targetIn set_match_details or set_match_competition, send p_match or p_doubles, not both and not neither

Scores

CodeWhat to do
invalid_scoreThe score breaks the rules in 3.3. Check format, sets, tiebreaks and p_finished
played_in_futureMore than 1 hour in the future
played_too_oldMore than 31 days back. It can't be reported
match_not_reportableThe match isn't accepted, or already has a score
result_not_found, result_not_pendingThe score doesn't exist, was already answered or expired
match_not_playedset_match_details on a match with no score
no_disagreementfile_complaint without a recent disagreement by the member
invalid_durationMinutes outside 5 to 600 (60, 90 or 120 for open matches and doubles from the app)
competition_not_foundThe competition doesn't exist, isn't the member's or is archived
competition_exists, invalid_competition_name, invalid_competition_kindRepeated name, empty or over 60 characters; a type that isn't club, league or tournament

External rivals and invitations

CodeWhat to do
rival_not_foundThe rival doesn't exist or belongs to another member
rival_already_savedThe member already has another rival with that phone
invalid_rival_nameEmpty name or over 120 characters
external_match_not_foundThe external match doesn't exist or belongs to someone else
too_many_external_matches20 in 24 hours. Wait
too_many_attemptsYou passed a daily cap (rivals, invitations, suggested venues). Wait
already_memberThat person is already a member (or was). Don't invite them
invalid_phone, invalid_whatsappThe phone must be E.164: + and 7 to 15 digits
invalid_email, invalid_estimate, already_invited, invitations_pausedMalformed email; p_estimate outside the list; a pending invitation already exists; invitations are paused
invitation_not_pendingThat invitation is no longer pending

Doubles and open matches

CodeWhat to do
invalid_doubles_slotsp_slots is malformed: it must be positions 2, 3 and 4, each invited or open
invalid_ble_rangeRange outside 0 to 100, reversed, or not including the member's BLE
court_not_bookedp_court_booked must be true
invalid_open_match_timeMust be between 1 hour and 30 days from now
invalid_gender_limitp_only_gender must be the organizer's own
too_many_open_matches, too_many_doublesThey already have 3 active
too_many_requestsThey already have 5 pending requests
own_open_match, not_in_range, wrong_gender, already_requested, already_in_doublesThey can't ask for that spot or already did
open_match_not_found, open_match_not_open, doubles_not_found, doubles_not_open, doubles_not_full, doubles_startedThe match doesn't exist, is already full, cancelled, expired or started
slot_not_open, slot_takenThe spot isn't open or already has someone
request_not_pending, invite_not_pendingAlready answered or withdrawn
not_organizer, not_in_doubles, organizer_cannot_leaveThe member doesn't have that role
result_already_reportedThat doubles match already has a score
doubles_chat_closedThe chat has closed

Messages, training and stats

CodeWhat to do
invalid_messageEmpty message or over 1000 characters, or a p_id another member already used. Generate a new UUID
too_many_messages, too_many_conversationsMessage or new-conversation cap. Wait
conversation_not_found, message_not_foundIt doesn't exist or isn't the member's
whatsapp_requiredThe member has no WhatsApp in Settings. Ask them to add it or send p_number
invalid_training_date, invalid_training_kind, invalid_training_minutes, invalid_training_focus, invalid_training_effort, invalid_training_partner, invalid_training_note, training_not_foundSee 3.9
invalid_ranking, invalid_stats_period, invalid_stats_mode, invalid_stats_rival, invalid_sort, invalid_result_filterA value or combination outside what is allowed. See 3.1 and 3.10

Profile, venues, assessment and safety

CodeWhat to do
invalid_locationLatitude or longitude missing or out of range
invalid_distancep_km outside 1 to 100
invalid_name, invalid_venue_detailsVenue: name of 2 to 120 characters; invalid type, address, city, country or zone
venue_required, too_many_venues, duplicate_venue, booking_confirmation_requiredset_my_venues: 1 to 3 distinct venues, each with can_book: true
invalid_work, invalid_linkedin_url, linkedin_not_connectedSee 3.12
assessment_not_required, retake_not_available, invalid_assessment, invalid_answersSee 3.11
invalid_sourcep_source outside onboarding, home_card, settings
reason_required, invalid_reason, try_laterReports: missing reason, a reason that doesn't fit (profile: content, harassment, fake, other; message: offensive, harassment, spam, other), or more than 10 in 24 hours
invalid_feedback_kind, invalid_feedback_message, too_many_feedbackA type other than improvement or bug; empty text or over 1000 characters; 10 in 24 hours

Classes and hitting

CodeWhat to do
not_a_coachYour member isn't marked as a coach or hitting partner. If they ask, update_my_profile with coach or hitting_partner
phone_not_verifiedThey need to verify their phone through WhatsApp in the app
rate_required, court_mode_required, venue_requiredMissing the rate for their role, the choice between booking the court or going to the student's, or a place where they book
attestation_requiredThe 4 confirmations are missing. See 3.19
identity_required, invalid_identityThe ID or the address for legal notices is missing, or doesn't have the required length (4 to 30 and 5 to 200). Ask your member for them
classes_removedBolea removed their coach and hitting partner roles: they can't mark themselves again. If they think it's a mistake, they can write to hola@bolea.club
invalid_currency, invalid_rate, invalid_note, invalid_travel_kmA currency that isn't a 3-letter code; a rate out of range; a note over 140; km outside 1 to 100
too_many_venues, venue_not_found, venue_not_allowedMore than 3 places; a place that doesn't exist or isn't approved; a residential complex, a compensation fund or a place closed to classes
invalid_class_kindp_kind must be coach or hitting_partner
not_taking_studentsThat person isn't taking students for that kind
class_terms_requiredThe student confirmation is missing. See 3.19
class_request_recent, class_requests_dailyThey already asked that person in the last 24 hours, or already made 5 requests. Wait
invalid_rating, invalid_reviewStars outside 1 to 5; text over 300
review_not_allowedThey can't review yet: they need to ask through Bolea, get a reply and wait 24 hours
review_not_foundThe review doesn't exist, is hidden or is your member's own

All the tools

There are 181. With their types and what each one returns, in /mcp/tools.json. A parameter with * is required.

Finding players

count_players

Counts how many players match the search_players filters without returning the list. Use it to test filters before searching.

Read-only · Parameters: p_query, p_ble_min, p_ble_max, p_venue_ids, p_cities, p_slots, p_availability, p_max_km

in_common

What your member and another player have in common: matches together, contacts, venues and who invited whom. Use it to decide whom to message.

Read-only · Parameters: p_member*

player_profile

A member's profile without private data: level, venues, stats, recent matches and head-to-head against your member. With your member's own id it returns their BLE.

Changes something · Parameters: p_member*

rival_insights

How your member does against another player: head-to-head, recent form, win probability and common rivals. Use it before proposing a match.

Read-only · Parameters: p_member*

search_players

Searches players by name, BLE level, venue, city, schedule or distance. Use it first to find a rival and get their member_id.

Read-only · Parameters: p_query, p_ble_min, p_ble_max, p_venue_ids, p_cities, p_slots, p_sort, p_limit, p_availability, p_max_km, p_offset

suggested_players

Up to 5 players Bolea suggests for the member, with the level gap. A good starting point when the member has nobody specific in mind.

Read-only

venue_players

Players at one approved venue, with level and schedule filters. Use it to look for rivals at a specific place.

Read-only · Parameters: p_venue*, p_ble_min, p_ble_max, p_slots, p_availability

Proposing and scheduling

accept_proposal

Accepts a match proposal someone sent. It only works if it is your member's turn to answer and the proposal has not expired.

Changes something · Parameters: p_match*

cancel_match

Cancels an accepted match or an unanswered proposal your member sent. It does not work once a score has been reported.

Ask the member first · Parameters: p_match*

counter_proposal

Answers a proposal you received with another time or place, without accepting or rejecting it. The other member must now answer.

Changes something · Parameters: p_match*, p_scheduled_at*, p_venue_id, p_venue_text

match_detail

Detail of one of the member's matches: status, rival, venue, current score and which side they play (my_side). You need it to orient p_sets.

Read-only · Parameters: p_match*

my_agenda

Everything pending for the member: proposals to answer or awaiting reply, scores to report or confirm, and upcoming matches. Read it first.

Read-only

proposal_defaults

Suggested times to propose a match to a rival, based on both schedules, plus their shared venue. Use it before propose_match.

Read-only · Parameters: p_opponent*, p_count

propose_match

Proposes a match to another member with date, time and place. It stays pending until they answer and expires at the match time.

Changes something · Parameters: p_opponent*, p_scheduled_at*, p_venue_id, p_venue_text, p_note, p_timezone

reject_proposal

Rejects a match proposal someone sent and notifies them. It only works if it is your member's turn to answer.

Ask the member first · Parameters: p_match*

Scores, match type and competitions

archive_competition

Archives a competition: it leaves the list and cannot be used on new matches, but matches that already have it keep it.

Ask the member first · Parameters: p_competition*

confirm_result

Confirms the score the rival reported. It makes the match official and updates levels; if nobody answers, it counts after 5 days.

Ask the member first · Parameters: p_result*

correct_result

Proposes a different score when the rival's report is wrong. Your member becomes the reporter and the rival must confirm it.

Ask the member first · Parameters: p_result*, p_format*, p_sets*, p_finished*, p_kind, p_surface, p_duration_minutes, p_competition

create_competition

Creates the member's own competition (club, league or tournament) or returns the one already using that name. Only the member sees it.

Changes something · Parameters: p_name*, p_kind*

disagree_result

Says your member disagrees with the score: it is annulled and the match does not count. With p_complain it also files a private complaint.

Ask the member first · Parameters: p_result*, p_complain

file_complaint

Files the private complaint about the rival, within 14 days of a disagreement your member recorded. It fails if there was no disagreement.

Ask the member first · Parameters: p_match*

my_competitions

The member's competitions (league, tournament or club), without archived ones, with the id to use when reporting a score.

Read-only

my_last_surface

The last surface your member used at a venue, to suggest when reporting. Returns null if there is none.

Read-only · Parameters: p_venue*

rename_competition

Renames one of the member's competitions. It fails if the member already has another one with that name.

Changes something · Parameters: p_competition*, p_name*

report_match

Reports a played match that was never scheduled in Bolea, up to 31 days back. It creates the match and its score at once; the rival confirms.

Ask the member first · Parameters: p_opponent*, p_played_at*, p_format*, p_sets*, p_finished*, p_venue_id, p_venue_text, p_timezone, p_kind, p_surface, p_duration_minutes, p_competition

report_result

Reports the score of a match that was already accepted in Bolea. For a match that was never scheduled, use report_match.

Ask the member first · Parameters: p_match*, p_format*, p_sets*, p_finished*, p_played_at, p_kind, p_surface, p_duration_minutes, p_competition

set_match_competition

Sets, changes or removes (with null) your member's competition on a match or doubles. It does not touch the other player's.

Changes something · Parameters: p_match, p_doubles, p_competition

set_match_details

Sets type, surface or duration on a match or doubles that has a reported score. Duration belongs to each player: if you didn't report it and there already was one, it only changes for you. Anything you send as null is left unchanged.

Changes something · Parameters: p_match, p_doubles, p_kind, p_surface, p_duration_minutes

Matches with people not on Bolea

external_match_delete

Deletes a match logged with an external rival and recalculates the streak. It does not work for matches with members.

Ask the member first · Parameters: p_id*

external_matches_mine

Matches logged with rivals who are not on Bolea, newest first, with the id you need to delete them.

Read-only · Parameters: p_limit, p_before

external_rival_add

Saves someone who is not on Bolea as a rival, with a name and, if there is one, a phone. If the phone belongs to a member, nothing is saved and the answer says so.

Ask the member first · Parameters: p_name*, p_phone

external_rival_delete

Deletes a saved rival. Their matches stay, with no rival name.

Ask the member first · Parameters: p_rival*

external_rival_invite

Creates the code to invite a saved rival; the link is bolea.club/i/code. Give it to your member: you do not send the message.

Ask the member first · Parameters: p_rival*

external_rival_update

Changes the name or phone of a saved rival; an empty phone removes it. With a new phone number, it drops the invitation the rival had.

Ask the member first · Parameters: p_rival*, p_name, p_phone

external_rivals_mine

Saved rivals who are not on Bolea, most recent opponent first. For an agent, the phone number comes back empty.

Read-only

report_external_match

Logs a match with a saved rival who is not on Bolea, up to 31 days back. It becomes official when that person joins and confirms it.

Ask the member first · Parameters: p_rival*, p_played_at*, p_format*, p_sets*, p_finished*, p_venue_id, p_venue_text, p_timezone, p_kind, p_surface, p_duration_minutes, p_competition

Doubles

answer_doubles_invite

Accepts or declines the invitation your member received to play a doubles match.

Changes something · Parameters: p_id*, p_accept*

cancel_doubles

As the organizer, cancels the doubles match. It does not work if it has started or has a score.

Ask the member first · Parameters: p_id*

change_doubles_slot

As the organizer, changes a spot: invites another person or opens it with gender and level limits. It does not work once a score exists.

Changes something · Parameters: p_id*, p_position*, p_invite, p_gender, p_ble_min, p_ble_max

confirm_doubles_result

Confirms the score of a doubles match that the other pair reported. If nobody answers, it counts after 120 hours.

Ask the member first · Parameters: p_result*

create_doubles

Organizes a doubles match with a booked court. The organizer takes position 1; you send positions 2, 3 and 4, invited or open.

Changes something · Parameters: p_scheduled_at*, p_minutes*, p_court_booked*, p_slots*, p_ble_min, p_ble_max, p_venue_id, p_venue_text, p_timezone, p_note

disagree_doubles_result

Says your member disagrees with a doubles score. The score does not count.

Ask the member first · Parameters: p_result*

doubles_agenda

What is pending in doubles: the member's own, invitations, requests to answer, scores to report or confirm, and those waiting on the other pair.

Read-only

doubles_detail

Detail of a doubles match: spots, players, each one's side (a or b), score and, for the organizer, the requests for each open spot.

Read-only · Parameters: p_id*

leave_doubles

Your member leaves a doubles match they play in. The organizer cannot leave and must cancel. It does not work once a score exists.

Ask the member first · Parameters: p_id*

open_doubles

Other members' doubles matches that have an open spot. Use request_doubles_slot to ask for one.

Read-only · Parameters: p_max_km, p_from, p_to, p_level, p_limit

report_doubles

Reports a played doubles match that was never scheduled in Bolea, with partner and two rivals, up to 31 days back. In p_sets, a is your member's pair.

Ask the member first · Parameters: p_partner*, p_rival_1*, p_rival_2*, p_played_at*, p_format*, p_sets*, p_finished*, p_venue_id, p_venue_text, p_timezone, p_kind, p_surface, p_duration_minutes, p_competition

report_doubles_result

Reports the score of a filled, played doubles match from the app. In p_sets, a is side A (positions 1 and 2) and b is side B.

Ask the member first · Parameters: p_id*, p_format*, p_sets*, p_finished*, p_kind, p_surface, p_duration_minutes, p_competition

request_doubles_slot

Asks for an open spot in a doubles match, using p_position. The organizer decides.

Changes something · Parameters: p_id*, p_position*

respond_doubles_request

As the organizer, accepts or rejects someone's request for a spot in the doubles match.

Changes something · Parameters: p_request*, p_accept*

withdraw_doubles_request

Withdraws a spot request in a doubles match that has not been answered yet.

Ask the member first · Parameters: p_id*

Open matches

cancel_open_match

As the organizer, cancels an open match that has not been played yet.

Ask the member first · Parameters: p_id*

my_open_matches

The member's own open matches that are still open or yet to be played.

Read-only

open_match_detail

Detail of an open match. If the member is the organizer, it includes the pending requests.

Read-only · Parameters: p_id*

open_match_requests_to_answer

Other members' requests to your member's open matches that are waiting for an answer.

Read-only

open_matches

Other members' open matches. With p_level mine it keeps only those your member can request; viewer says whether they can.

Read-only · Parameters: p_max_km, p_from, p_to, p_level, p_limit

publish_open_match

Posts an open match with an already booked court, for anyone in the level range to request. The member picks a rival from those who ask.

Changes something · Parameters: p_scheduled_at*, p_minutes*, p_ble_min*, p_ble_max*, p_court_booked*, p_venue_id, p_venue_text, p_timezone, p_only_gender, p_note

request_open_match

Asks to join another member's open match. The organizer accepts or rejects.

Changes something · Parameters: p_id*

respond_open_match_request

As the organizer, accepts or rejects a request. Accepting creates the match and returns its id.

Changes something · Parameters: p_request*, p_accept*

withdraw_open_match_request

Withdraws your member's request to join an open match.

Ask the member first · Parameters: p_id*

Messages

conversation_messages

Messages in a conversation, newest first. Use p_before_id to page back to older ones.

Read-only · Parameters: p_conversation*, p_before_id, p_limit

doubles_chat

Messages in a doubles match chat, newest first, with its participants.

Read-only · Parameters: p_id*, p_before_id, p_limit

mark_conversation_read

Marks a conversation as read, so the other member sees your member has read it.

Changes something · Parameters: p_conversation*

mark_doubles_chat_read

Marks a doubles match chat as read.

Changes something · Parameters: p_id*

my_conversations

Conversations that have messages, newest first, with the last message and whether any are unread. Gives you the conversation_id.

Read-only · Parameters: p_limit, p_before_id

my_doubles_chats

Chats for the member's doubles matches, with the last message and whether any are unread.

Read-only · Parameters: p_limit

my_unread_messages

How many unread messages your member has in total.

Read-only

open_conversation

State of a conversation with a member (p_member) or by id: blocks and any pending match between them. With no messages yet, conversation_id is null.

Read-only · Parameters: p_member, p_conversation

send_doubles_message

Sends a message to a doubles match chat. p_message_id is a new UUID you generate. The chat must be open.

Changes something · Parameters: p_id*, p_message_id*, p_body*

send_message

Sends a text message of 1 to 1000 characters to another member. p_id is a new UUID you generate; resending the same one does not duplicate.

Changes something · Parameters: p_member*, p_id*, p_body*

share_my_whatsapp

Sends your member's WhatsApp number to another member inside the chat. It is personal data: ask first. p_id is a new UUID.

Ask the member first · Parameters: p_member*, p_id*, p_number

Training

training_delete

Deletes one of the member's training sessions.

Ask the member first · Parameters: p_id*

training_log

Logs a training session: day, type(s), total minutes, strokes, effort. It does not count toward the BLE or as a match.

Changes something · Parameters: p_on_date*, p_kind*, p_minutes*, p_focus, p_effort, p_partner, p_note, p_kinds

training_summary

Month minutes and weekly training streak, for your member or another member. Never the session detail of someone else.

Read-only · Parameters: p_member*

training_update

Replaces a whole session: any optional field you leave out is cleared. Send every field, not only the change.

Ask the member first · Parameters: p_id*, p_on_date*, p_kind*, p_minutes*, p_focus, p_effort, p_partner, p_note, p_kinds

training_week

The sessions in one week (Monday to Sunday), total and on-court minutes, and recent combinations to repeat.

Read-only · Parameters: p_week_start

Stats, leaderboards and community

badge_overview

How many members hold each badge, and your member's progress: matches, rivals, venues and invitees.

Read-only

community_doubles

A doubles match from the community, with both pairs and the score.

Read-only · Parameters: p_doubles*

community_feed

What is happening in the community, nearby first along with new members from any city: results, badges and arrivals. Filter with p_filter. For context, not for storing. With p_tournaments it also brings the champion of each public tournament that ended.

Read-only · Parameters: p_limit, p_filter, p_tournaments

community_match

A singles match from the community, with players, levels before and after, and their head-to-head.

Read-only · Parameters: p_match*

my_match_history

The member's confirmed matches, newest first. Filter by rival or by won and lost.

Read-only · Parameters: p_rival, p_result

my_rating_evolution

The member's BLE history: each change with its value, the delta and the reason. p_since is a date.

Read-only · Parameters: p_since

my_streak

Weekly activity streak, win streak and the last 8 weeks. Says whether this week is still pending.

Read-only

player_stats

Confirmed stats for a member by period and by singles or doubles: record, type, surface, rival level, streaks and rankings.

Read-only · Parameters: p_member*, p_period, p_mode, p_scope, p_tournament, p_rival

ranking_board

A leaderboard: level, wins, activity or streaks. wins and activity require p_period; level and streaks do not accept it.

Read-only · Parameters: p_kind*, p_period, p_gender, p_area

Level assessment

my_assessment_retake_available

Says whether the member can retake the assessment: only if they have no reported score.

Read-only

request_my_assessment_retake

Opens a level assessment retake. Call it only once you have all the answers, and call submit_assessment right after.

Ask the member first

save_assessment_progress

Saves partial answers to the pending assessment, with the current step. Useful if the retake spans several conversations.

Changes something · Parameters: p_answers*, p_current_step*

submit_assessment

Submits your member's answers and sets their new BLE, provisional again. Use only answers the member gave, never invented ones.

Ask the member first · Parameters: p_answers

Profile and work

get_my_profile

The member's profile: id, name, city, hand, backhand, bio, schedule and maximum distance. Their id works in player_stats and player_profile.

Read-only

update_my_profile

Changes the bio (up to 160), hand, backhand or schedule. Only what you send changes; the schedule replaces the whole list.

Changes something · Parameters: bio, dominant_hand, backhand, availability, coach, hitting_partner

dismiss_work_notice

Dismisses the pending notice about work data, once the member has reviewed it.

Changes something

my_work

The member's work and studies: company, title, schools, area and role, and whether they came from LinkedIn or from the member.

Read-only

remove_member_photo

Removes one photo from the member's gallery, by position 1 to 3. You cannot upload a new one.

Ask the member first · Parameters: p_position*

set_company_hidden

Hides or shows your member's company on their profile for others.

Changes something · Parameters: p_hidden*

set_linkedin_url

Saves or removes (with null) the LinkedIn profile link. Only works if the member already connected LinkedIn in the app.

Changes something · Parameters: p_url*

update_my_work

Edits company, title, school, area or role. An empty string clears the field. Send area and role only with codes my_work returned.

Changes something · Parameters: p_data*

Network and invitations

annul_invitation

Cancels a pending invitation your member sent; its link stops working.

Ask the member first · Parameters: p_invitation*

create_invitation

Creates a Bolea invitation with the invitee's phone (p_phone) or email. With an email, Bolea sends them a message: ask first.

Changes something · Parameters: p_name, p_email, p_ambassador, p_estimate, p_phone

my_invite_link

Your member's personal link to invite people to Bolea (url): it works for several people and doesn't expire. Whoever creates an account with it shows up as invited by your member. Give it to your member to share; you don't send it.

Changes something

my_network

Up to 150 members who share something with your member (venue, company, school, contacts, matches), closest first. It may return feature_off.

Read-only

Places and location

clear_my_location

Clears the last saved location; distances go back to being measured from the member's home city.

Changes something

search_venues

Searches venues by name or city, with each one's member count. Gives you the venue_id for proposing, reporting or posting.

Read-only · Parameters: p_query*, p_limit, p_latitude, p_longitude

set_max_distance

Sets the maximum distance in km (1 to 100) for suggestions and searches; null means no limit.

Changes something · Parameters: p_km*

set_my_venues

Replaces your member's venues (1 to 3). Each needs can_book true: the member must confirm they can book there.

Changes something · Parameters: p_venues*

set_travel_mode

Puts your member in travel mode in another city so they can find players there, with coordinates. With p_city null it turns it off.

Changes something · Parameters: p_city*, p_country_code, p_latitude, p_longitude

suggest_venue

Suggests a new venue when search_venues does not find it. It goes into review. Up to 10 new ones a day.

Changes something · Parameters: p_name*, p_kind, p_address, p_city, p_latitude, p_longitude, p_country_code, p_timezone

update_my_location

Saves your member's location (latitude and longitude, rounded to about 1.1 km) to measure distances. Use it only with real coordinates they give you.

Changes something · Parameters: p_latitude*, p_longitude*, p_city, p_country_code

venue_map

Venues near your member (up to 300 within 100 km) and their own, with member counts, how many match a level and schedule range, and whether they are your member's. For another city, use search_venues.

Read-only · Parameters: p_ble_min, p_ble_max, p_slots, p_availability

venue_map_cities

The cities where Bolea has venues, with how many each has. To look at another one, use search_venues or venue_players.

Read-only

Account and permissions

contacts_status

Whether your member shares their phone contacts with Bolea, how many, and their permission to classify them with AI.

Read-only

disconnect_linkedin

Disconnects the member's LinkedIn. You cannot connect it again: that happens in the app.

Ask the member first

linkedin_status

Whether the member connected LinkedIn, their link, and whether they need to reconnect. Connecting happens in the app.

Read-only

my_agents

The agents with access to the member's account and when each was last used. To remove one, the member does it in the app.

Read-only

my_features

Which features are turned on for your member (venue pins, network, LinkedIn, agents, contact types).

Read-only

my_news_preferences

Whether the member receives Bolea news by email, push or WhatsApp. It is not the news tool.

Read-only

my_onboarding_status

The member's account state: whether it is active, what is missing and whether they accepted the current terms. Also gives the age and country the assessment needs.

Read-only

set_news_preferences

Turns Bolea news off per channel. An agent can only turn off: turning on returns not_allowed. Send the other channels as they are.

Changes something · Parameters: p_email*, p_push*, p_whatsapp*, p_source*

stop_sharing_contacts

Stops sharing the member's contacts and deletes the uploaded ones. You cannot share them again: that happens in the app.

Ask the member first

Safety: blocks, reports and feedback

block_member

Blocks another member: neither sees the other, and their proposals and unplayed matches are cancelled. They are not notified.

Ask the member first · Parameters: p_member*

my_blocks

The members your member blocked, newest first. Use it to find whom to unblock.

Read-only

report_doubles_message

Reports a doubles chat message by its id and reason. Ask first.

Ask the member first · Parameters: p_message_id*, p_reason*, p_text

report_member

Reports a member to the Bolea team (content, harassment, fake or other), with optional text. Ask first.

Ask the member first · Parameters: p_member*, p_reason*, p_message, p_conversation

report_message

Reports a chat message (offensive, harassment, spam or other) by its id. Ask first.

Ask the member first · Parameters: p_message_id*, p_reason*, p_text

send_feedback

Sends feedback to the Bolea team: an improvement or a bug, 1 to 1000 characters. Up to 10 a day. Do not send screenshots.

Changes something · Parameters: p_kind*, p_message*, p_screenshot_path, p_app_version, p_os_version, p_device_model, p_screen

unblock_member

Removes a block on a member. What was cancelled when blocking does not come back.

Ask the member first · Parameters: p_member*

Bolea itself

assessment_questions

The level assessment questions, with the keys and options for p_answers. Read it before a retake.

Read-only

news

What is new for the member since this agent last asked: agenda, unread messages and open matches. Use it to brief the member.

Read-only

how_bolea_works

Explains in plain text how Bolea works: the level, matches, scores and the rules for agents. Read it when you connect.

Read-only · Parameters: lang

Tournaments

my_admin_venues

The clubs I administer, where I can create official tournaments.

Read-only

player_competition

A member's tournament matches, separate from the rest: figures, titles and each tournament. Private ones only if the caller is in them.

Read-only · Parameters: p_member

report_tournament

Reports a tournament to Bolea or, in a community one, a fake score. It doesn't stop the tournament.

Ask the member first · Parameters: p_tournament*, p_reason*, p_text, p_line

tournament_accept_all

Accepts every applicant who qualifies, up to capacity. Team only.

Ask the member first · Parameters: p_category*

tournament_add_guest

Adds someone who isn't on Bolea, with name and phone: they show in the draw with a "?". They can play one match; to continue they must create a profile.

Changes something · Parameters: p_category*, p_name*, p_phone*

tournament_add_pair

The organizer signs up a doubles pair, with a member or a name and phone for each. Ask first.

Ask the member first · Parameters: p_category*, p_a_member, p_a_name, p_a_phone, p_b_member, p_b_name, p_b_phone

tournament_answer_invite

Accepts or declines a tournament invitation.

Changes something · Parameters: p_entry*, p_accept*, p_wants_consolation, p_partner, p_partner_name, p_partner_phone

tournament_answer_partner

Answers whether they'll be the partner of the person who chose them, in doubles. Ask first.

Ask the member first · Parameters: p_entry*, p_accept*

tournament_apply

Applies to a category of a public tournament. The organizer accepts or rejects. In doubles, with p_partner or with p_partner_name and p_partner_phone.

Changes something · Parameters: p_category*, p_wants_consolation, p_partner, p_partner_name, p_partner_phone

tournament_cancel

Cancels a tournament and notifies players. Approved scores stay. Ask first.

Ask the member first · Parameters: p_tournament*

tournament_category_entries

A category's players. The team also sees who is awaiting an answer.

Read-only · Parameters: p_category*

tournament_create

Creates a tournament with its categories. A member creates an unofficial one; Bolea and a club administrator, an official one. Pass the name, dates, sign-up close and at least one category with its draw and format. kind: tournament or league; each category with mode: singles or doubles. Each category needs name, capacity and format_main, such as {"kind":"best_of_3","decider":"super_10"}. The other fields and a full example are in how_bolea_works, under Tournaments and leagues.

Changes something · Parameters: p_data*

tournament_detail

A tournament: organizer, dates, rules, categories, where I stand and whether I can apply.

Read-only · Parameters: p_tournament*

tournament_draw

A category's draw: stages, matches, scores and group tables.

Changes something · Parameters: p_category*

tournament_home

My next tournament match and how much I have to resolve.

Read-only

tournament_invite_guest

Creates that person's personal invitation, with the tournament included. Returns the code to build the message.

Changes something · Parameters: p_entry*, p_slot

tournament_invite_member

Invites a member to a category. Team only.

Changes something · Parameters: p_category*, p_member*

tournament_line

A draw match: players, deadline, format, score and what the caller can do.

Read-only · Parameters: p_line*

tournament_link_match

Links a match proposed with the same rival to a draw line.

Changes something · Parameters: p_line*, p_match*

tournament_load_draw

Loads a draw made by hand: each player on their line, or the groups. It then advances the same way. Ask first.

Ask the member first · Parameters: p_category*, p_draw*

tournament_make_draw

Makes the draw using USTA rules. It happens once and is published. Ask first.

Ask the member first · Parameters: p_category*

tournament_move_line

Moves or replaces someone before the first match is played. The draw shows it. Team only. Use one of movable_entries from tournament_line.

Changes something · Parameters: p_line*, p_slot*, p_entry*

tournament_new_season

Creates the next season of a finished league, with promotion and relegation. Each player gets an invite. Ask first.

Ask the member first · Parameters: p_tournament*, p_data*

tournament_pending_line

Whether I have a pending tournament match with this rival. Use it before reporting a regular match.

Read-only · Parameters: p_rival*

tournament_report_line

Reports the score of a tournament match, with "a" = the reporter and the stage's format. The rival confirms and then the organizer approves. Ask first.

Ask the member first · Parameters: p_line*, p_format*, p_sets*, p_finished, p_retired, p_played_at, p_venue_id, p_venue_text, p_surface, p_duration_minutes

tournament_review_entry

Accepts, rejects or waitlists an applicant. Team only.

Ask the member first · Parameters: p_entry*, p_decision*

tournament_review_result

Approves, edits or removes a score. With 'edit', "a" is the line's side a. With 'clear', the match goes back to not played. Nobody judges their own match. Ask first.

Ask the member first · Parameters: p_line*, p_decision*, p_format, p_sets, p_finished, p_retired

tournament_rival_silent

"My opponent isn't answering": lets the organizer know. Ask first.

Ask the member first · Parameters: p_line*

tournament_seeds

Players in seed order, with how many seeds and byes the draw will have. Team only.

Changes something · Parameters: p_category*

tournament_set_deadline

Changes a match's deadline. Team only.

Changes something · Parameters: p_line*, p_deadline*

tournament_set_schedule

Sets a match's day, time and court. Team only.

Changes something · Parameters: p_line*, p_at*, p_venue_id, p_court

tournament_set_seeds

Reorders seeds before the draw. The draw will say the organizer adjusted them. Team only.

Changes something · Parameters: p_category*, p_entries*

tournament_staff_add

Adds an admin or judge to the tournament team.

Changes something · Parameters: p_tournament*, p_member*, p_role*

tournament_staff_remove

Removes someone from the tournament team.

Changes something · Parameters: p_tournament*, p_member*

tournament_todo

What the team has to resolve: disagreements, scores to approve, overdue deadlines and applications.

Read-only · Parameters: p_tournament*

tournament_update

Changes tournament data: name, rules, fee, prizes and dates. Team only.

Changes something · Parameters: p_tournament*, p_data*

tournament_walkover

Gives a walkover to one side ('a' or 'b'), a double walkover ('double') or more days ('extend'). Judges only. Ask first.

Ask the member first · Parameters: p_line*, p_decision*, p_days

tournament_withdraw

Withdraws a player from a tournament. After the draw, their pending matches become walkovers. Ask first.

Ask the member first · Parameters: p_entry*

tournaments_list

Lists tournaments: mine, official ones and community ones nearby (p_area 'near') or everywhere ('all').

Read-only · Parameters: p_area

Bolea Vision (beta)

my_vision_analyses

The videos your member analyzed with Bolea Vision: status, which match or training session they belong to and the summary (rallies, shots, active play). Only if they have Vision.

Read-only

request_vision_access

Asks for Bolea Vision for a member who doesn't have it. Bolea gets an email to approve it; once approved, your member gets a notification. If they already asked, nothing is sent again.

Changes something

vision_link

Links a Vision video to a match your member played or to one of their training sessions. With neither, it removes the link.

Changes something · Parameters: p_analysis*, p_match, p_training

Shop

request_product

Orders a shop product. Nothing is charged here: Bolea writes to your member on WhatsApp to arrange payment and shipping.

Ask the member first · Parameters: p_product*, p_quantity*, p_whatsapp*, p_city*, p_note

shop_products

The products in the Bolea shop, with price and shipping, plus your member's WhatsApp and city for the order. Today it's the tripod for Bolea Vision, only for members who have Vision.

Read-only · Parameters: p_lang

Classes and hitting (pilot)

class_offers

Coaches and hitting partners taking students: first those who come to your member's court, then by distance, with hourly rate, currency, note, court and reviews. Each one says it themselves; Bolea doesn't verify it.

Read-only · Parameters: p_kind

class_reviews

A coach's or hitting partner's reviews, newest first, with the average (from 3 reviews) and how many there are.

Read-only · Parameters: p_coach*, p_limit, p_offset

delete_my_class_review

Deletes the review your member wrote about a coach or hitting partner. Ask first.

Ask the member first · Parameters: p_coach*

my_classes

Your member's class profile: whether they coach or hit, whether they take students, rates, court and places, whether they signed the confirmations, whether their phone is verified and whether they already show up in Classes.

Read-only

report_class_review

Reports someone else's review: Bolea checks it and hides it or keeps it. Ask first.

Ask the member first · Parameters: p_review*

request_class

Requests a class or a hitting session: sends the first message to that person's chat, even if they aren't connected. Everything else is agreed in the chat. The first time, your member gives their confirmation. Ask first.

Ask the member first · Parameters: p_coach*, p_kind*, p_message*, p_accept_terms

review_class

Rates a coach or hitting partner from 1 to 5 stars, with optional text. One per person; doing it again changes it. Only after asking them through Bolea and getting a reply. Ask first.

Ask the member first · Parameters: p_coach*, p_rating*, p_body

set_my_classes

Saves the whole class profile at once: anything you leave out is cleared (except the ID and the address), so start from my_classes. Taking students, the 4 confirmations and their details are your member's decision. Ask first.

Ask the member first · Parameters: p_open*, p_coach_rate, p_hitting_rate, p_currency, p_note, p_books_court, p_court_included, p_venue_ids, p_travels, p_travel_km, p_attest, p_id_document, p_notice_address

Bolea · Tennis community

PrivacyTermsSupportCourts: OpenStreetMap