# Bolea > Bolea es una comunidad de tenis, con una app para iPhone. Este archivo reúne lo que un agente de IA necesita para usar Bolea por un miembro. / Bolea is a tennis community with an iPhone app. This file has what an AI agent needs to use Bolea for a member. Spanish first, English after. - Servidor MCP / MCP server: https://bolea.club/mcp - Herramientas en JSON / Tools as JSON: https://bolea.club/mcp/tools.json - Índice / Index: https://bolea.club/llms.txt # Bolea para agentes: guía de uso Esta guía es para ti, agente de IA que trabajas para un miembro de Bolea. Dice qué puedes hacer, con qué herramienta y qué errores esperar. - Servidor MCP: `https://bolea.club/mcp` (HTTP Streamable, JSON-RPC 2.0, OAuth 2.1). - Catálogo completo con parámetros: `https://bolea.club/mcp/tools.json`. - Regla de fondo: puedes hacer lo que un humano hace en la app, salvo lo que solo puede dar la persona (ver "Lo que un agente no puede hacer"). ## 1. Qué es Bolea y cómo funciona el nivel Bolea es una comunidad de tenis en varias ciudades de América. Cualquier persona mayor de 18 años crea su cuenta en la app. Cada jugador tiene un nivel, el **BLE**, de 0 a 100. - El BLE inicial sale de una evaluación de nivel que el miembro responde una vez. - Después sube o baja con los partidos **confirmados**. Los primeros partidos lo mueven más y el miembro aparece como provisional (`is_provisional`). - Un partido de sencillos entre miembros se propone, se acepta, se juega y se reporta. Uno reporta el marcador y el otro lo confirma, lo corrige o dice que no está de acuerdo. Si nadie responde en 5 días (120 horas), cuenta como se reportó. - Los partidos incompletos o empatados mueven el BLE por games, pero no cuentan como victoria ni derrota. - No mueven el BLE: los dobles, los entrenamientos y los partidos con alguien que no está en Bolea. Varios partidos seguidos contra el mismo rival en una semana pueden no moverlo. - El BLE se actualiza cuando el marcador se confirma o pasan los 5 días. No prometas al miembro cuánto va a subir o bajar. - `level_gap` es el BLE del otro menos el del miembro, redondeados. Positivo quiere decir que el otro juega mejor. - `band` es la banda de nivel que Bolea muestra junto al BLE. - El miembro puede repetir la evaluación solo si no tiene un marcador reportado (ver 3.11). ## 2. Primeros pasos al conectarte Lee en este orden. Cada llamada cuenta para tus límites (ver 7). 1. `how_bolea_works`: esta misma guía (`lang`: `es` o `en`). Lo básico ya viene en las instrucciones del servidor. 2. `get_my_profile`: nombre, ciudad, mano, revés, bio, horarios, si da clases o bolea (`coach`, `hitting_partner`) y `id`. Ese `id` es el `p_member` de `player_stats` y `player_profile` cuando quieres datos del propio miembro. 3. `my_onboarding_status`: confirma que la cuenta está activa y que aceptó los términos vigentes (`legal.accepted`). Si no los aceptó, dile que lo haga en la app. 4. `my_agenda`: lo pendiente. Propuestas por contestar, marcadores por reportar o confirmar, próximos partidos. 5. `doubles_agenda`: lo mismo para dobles. 6. `news`: qué cambió desde la última vez que preguntaste. La primera vez trae todo. Úsala al empezar cada sesión para avisar al miembro. 7. `player_profile` con el `id` del miembro: su BLE, canchas y estadísticas. Lee `assessment_questions` solo si el miembro va a repetir la evaluación. ## 3. Flujos Los parámetros llevan el prefijo `p_` tal como salen en el catálogo. Los ids son UUID. Un miembro llega a ti como una tarjeta: `{id, first_name, last_name, gender, photo_path, ble, is_provisional, band, active, nationality, linkedin, coach, hitting_partner}`; un ex miembro, solo `{id, former: true}`. ### 3.1 Encontrar un rival `search_players` devuelve `{member_id, member, level_gap, distance_km, last_match_on, main_venue, total, ...}`. | Parámetro | Qué es | | --- | --- | | `p_query` | Nombre. Con nombre se busca en toda la comunidad, palabra por palabra | | `p_ble_min`, `p_ble_max` | Rango de BLE | | `p_venue_ids` | Lista de ids de canchas | | `p_cities` | Lista de ciudades | | `p_availability` | Franjas en las que juega (ver abajo) | | `p_max_km` | Distancia máxima en km | | `p_sort` | `level`, `active`, `new`, `near` o `club` (comparte club, después cercanía y nivel) | | `p_limit`, `p_offset` | Página: hasta 200; `p_offset` para la siguiente | Otro valor de `p_sort` da `invalid_sort`. **Franjas (`p_availability`).** Son `_`: días `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`; franjas según la hora local. | Franja | Hora | | --- | --- | | `morning` | 6 a 11 a. m. | | `midday` | 11 a. m. a 2 p. m. | | `afternoon` | 2 a 6 p. m. | | `night` | 6 a 10 p. m. | Ejemplo: `sat_morning`. `p_slots` es de apps viejas: usa `p_availability`. Otras herramientas: - `count_players`: cuántos cumplen los mismos filtros. - `suggested_players`: hasta 5 sugeridos. - `venue_players`: jugadores de una cancha aprobada (`p_venue`). - `player_profile` (`p_member`): perfil sin datos privados. `phone_verified` dice si verificó su celular por WhatsApp, sin el número. - `rival_insights` (`p_member`): historial directo, forma, probabilidad de ganar. - `in_common` (`p_member`): qué tienen en común. - `class_offers`: profesores y boleadores que reciben alumnos (ver 3.19). Un miembro bloqueado, que no existe o que ya no está activo da `member_not_found` u `opponent_not_active`. ### 3.2 Proponer, contraproponer, aceptar, rechazar y cancelar **Proponer.** 1. Opcional: `proposal_defaults` (`p_opponent`, `p_count` hasta 10) da horas sugeridas, la zona y la cancha en común. 2. Consigue el `venue_id` con `search_venues` (3.13) o del perfil del rival. 3. Llama `propose_match`. ```json { "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": "¿Jugamos después del trabajo?" } ``` - Lugar (opcional): `p_venue_id` de una cancha aprobada o una "Otra" propia, o `p_venue_text` con texto libre. - `p_timezone` (nombre IANA, como `America/Bogota`) solo cuenta si no hay cancha con zona. - La hora tiene que ser futura (`scheduled_in_past`). - Devuelve `{match_id, level_gap, level_gap_warning}`. Si `level_gap_warning` es `true`, avisa al miembro de que la diferencia de nivel es grande. - La propuesta vence a la hora del partido. Hasta 5 sin respuesta (pendientes, vencidas o rechazadas) a la misma persona (`too_many_proposals`). Cuentan desde la última vez que el otro aceptó un partido entre los dos o le escribió, y nunca más de 60 días atrás. Con esas 5, tampoco se le puede escribir por el chat. **Recibir y contestar.** Mira `my_agenda`: - `proposals`: te tocan a ti. Cada una trae `match_id`, `scheduled_at`, `timezone`, `venue`, `note`, `expires_at`, `countered` y `from`. - `awaiting_reply`: las que el miembro envió y esperan respuesta. Para contestar una de `proposals`: | Acción | Herramienta | | --- | --- | | Aceptar | `accept_proposal` (`p_match`) | | Rechazar | `reject_proposal` (`p_match`). Marcada como destructiva | | Otra hora u otro lugar | `counter_proposal` (`p_match`, `p_scheduled_at`, y `p_venue_id` o `p_venue_text`). Ahora le toca al otro | Si no mandas lugar en `counter_proposal`, se queda el anterior. Si mandas uno, reemplaza al anterior, también "Otra" con `p_venue_text`. **Cancelar.** `cancel_match` (`p_match`) cancela un partido aceptado o una propuesta propia sin respuesta. Marcada como destructiva. Con un marcador reportado da `match_not_cancellable`. Contestar una propuesta que le toca contestar al otro da `not_your_turn`; una vencida o ya contestada, `proposal_not_pending`. ### 3.3 Reportar y confirmar el marcador de un partido agendado Un partido aceptado queda en `my_agenda.to_report` desde que pasa su hora, hasta que alguien lo reporta o lo cancela. 1. Toma el `match_id` de `to_report`. 2. Llama `match_detail` (`p_match`). Mira `my_side`: `"a"` o `"b"`. 3. Pregunta al miembro el marcador, sets y si terminó. No lo supongas. 4. Llama `report_result`. **Orientación de `p_sets`.** En `report_result` y `correct_result`, `a` son los games del jugador A del partido y `b` los del jugador B. Si `my_side` es `"a"`, tus games van en `a`. Si es `"b"`, van en `b`. ```json { "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 } ``` Este ejemplo es de un miembro con `my_side` `"b"` que ganó 6-3 6-4. Opcionales: `p_played_at` (solo si se jugó otro día u hora que `scheduled_at`), `p_kind`, `p_surface`, `p_duration_minutes`, `p_competition` (ver 3.4). - Sin `p_played_at`, un partido agendado hace más de 31 días se reporta igual. Con `p_played_at` a más de 31 días, `played_too_old`. - El partido tiene que estar aceptado (`match_not_reportable` si no). **Formato y marcador (`p_format`, `p_sets`, `p_finished`).** | `p_format` | Qué es | Sets para ganar | | --- | --- | --- | | `one_set` | Un set a 6 | 1 | | `eight_game_set` | Un set a 8 | 1 | | `best_of_3` | Mejor de 3 | 2 | | `best_of_5` | Mejor de 5 | 3 | | `free` | Libre: cualquier número de sets, hasta 7, o hasta 100 en sets de puntos | Gana quien gana más sets; 1-1 es empate | **Sets a 4 y sets de puntos.** Van con `p_format: "free"` y los datos en cada set. Sets a 4: `{"a": 4, "b": 2, "to": 4}` (4-0 a 4-2, 5-3 y, con `tiebreak`, 4-3 o 5-4). Sets de puntos: `{"a": 21, "b": 15, "to": 21, "points": true}`, con `"underhand": true` si el servicio fue por debajo; todos a los mismos puntos. Se gana llegando a `to` o, si siguieron, por 2. Un set de puntos no mueve el BLE ni cuenta como victoria: queda en el historial y en la actividad. Cada set es un objeto con games: | Caso | Forma | | --- | --- | | Set normal | `{"a": 6, "b": 4}` | | Set con tiebreak, solo 7-6 (o 9-8 en set a 8) | `{"a": 7, "b": 6, "tiebreak": {"a": 7, "b": 4}}`. Lo gana quien gana el set | | Tiebreak decisivo en lugar del último set | `{"a": 10, "b": 7, "super_tiebreak": true}`. Si se jugó a 7: `{"a": 7, "b": 5, "super_tiebreak": true, "tiebreak_to": 7}` | Reglas que el servidor valida cuando `p_finished` es `true`: | Regla | Detalle | | --- | --- | | Set a 6 | 6-0 a 6-4, 7-5 o 7-6 | | Set a 8 | 8-0 a 8-6, 9-7 o 9-8 | | Tiebreak de un set | A 7 puntos con diferencia de 2 | | Tiebreak decisivo | Solo como último set de `best_of_3` o `free`, con los sets iguales. A 10 o a 7 (`tiebreak_to`), con diferencia de 2 | | Sets | No puede haber sets después de que el partido se decidió | | Games | Al menos 1 game jugado | `p_finished: false` es "No alcanzamos a terminar". Entonces cualquier marcador sirve, sin ganador, y no puede llevar tiebreak decisivo. Un marcador inválido da `invalid_score`; el servidor no dice cuál regla falló, así que revisa estas. **Confirmar, corregir o discrepar.** Si el rival reportó, el partido está en `my_agenda.to_confirm` con `result_id`, `sets`, `my_side` y `expires_at`. | Acción | Herramienta | | --- | --- | | Confirmar | `confirm_result` (`p_result`). Lo deja oficial | | Corregir | `correct_result` (`p_result`, `p_format`, `p_sets`, `p_finished`, y los opcionales). El miembro pasa a ser quien reporta y el rival tiene que confirmar | | No estoy de acuerdo | `disagree_result` (`p_result`, `p_complain`). El marcador se anula y el partido no cuenta. Con `p_complain: true` también deja una queja privada | | Queja después | `file_complaint` (`p_match`). Solo quien dijo que no estaba de acuerdo, dentro de los 14 días. Si no, `no_disagreement` | Las cuatro son destructivas: pregunta al miembro. Muéstrale el marcador y qué lado es suyo antes de confirmar. Después de reportar, mira `my_agenda.awaiting_result` (sin confirmar) y `my_agenda.disagreed` (el rival dijo que no). ### 3.4 Reportar un partido que nunca se agendó (también de un día pasado) Usa `report_match` cuando el miembro jugó con otro miembro sin pasar por una propuesta. Crea el partido y el marcador a la vez. - Sirve para hoy o para un día pasado, hasta 31 días atrás (`played_too_old`). - `p_played_at` puede ir hasta 1 hora en el futuro (`played_in_future` después). - En `report_match`, `a` son los games del miembro y `b` los del rival. - El rival recibe el marcador para confirmar, como en 3.3. ```json { "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 } ``` Devuelve `{match_id, result_id}`. Pregunta al miembro el día y, si puede, la hora; el día define la semana para sus rachas. Es destructiva, porque crea un marcador que el rival ve: confirma los datos con el miembro antes. **Datos opcionales de cualquier marcador.** | Parámetro | Valores | | --- | --- | | `p_kind` | `practice`, `social`, `club`, `league`, `tournament` | | `p_surface` | `clay`, `hard`, `grass`, `har_tru` | | `p_duration_minutes` | Entero de 5 a 600 (`invalid_duration`) | | `p_competition` | Id de una competencia del miembro (`my_competitions`). Otra o archivada da `competition_not_found` | Todos cuentan igual para el BLE, los rankings y las rachas. La duración es de cada jugador: si no la reportaste tú y ya había una, solo cambia para ti. Pueden corregirse después con `set_match_details` (`p_match` o `p_doubles`, uno solo; lo que mandes en `null` no se borra) y `set_match_competition`. `my_last_surface` (`p_venue`) dice la última superficie en esa cancha. Competencias: `my_competitions`, `create_competition` (`p_name` hasta 60, `p_kind` `club`, `league` o `tournament`), `rename_competition`, `archive_competition`. Solo el dueño ve sus competencias. ### 3.5 Partido con alguien que no está en Bolea Solo sencillos. Se guarda a la persona, se anota el partido y se la invita. Hasta que entra, el partido suma a la racha de actividad del miembro y a su tiempo en cancha, y a nada más: no mueve el BLE ni cuenta en rankings ni estadísticas. 1. `external_rivals_mine`: los guardados. Tu vista no trae su celular. 2. Si no está: `external_rival_add` (`p_name` de 1 a 120; `p_phone` opcional, en formato E.164, por ejemplo `+573105550142`). El miembro te da el número; no lo inventes. Sin celular se guarda solo el nombre, y esa persona pasa a miembro solo si entra con el link que le mande el miembro. - Respuesta `{kind: "external", rival}`: quedó guardado. - Respuesta `{kind: "member", member}`: ese celular es de un miembro activo y no se guardó nada. Sigue con 3.3 o 3.4 usando `member.id`. - Su propio celular da `cannot_play_yourself`. 3. `report_external_match`. Aquí `a` son los games del miembro y `b` los del rival. ```json { "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" } ``` Devuelve el partido con su `id`. Lo mismo que `report_match` en fechas (31 días), marcador y opcionales. Hasta 20 al día (`too_many_external_matches`). 4. `external_rival_invite` (`p_rival`) devuelve `{kind: "external", code, short_code}`. El link es `https://bolea.club/i/`. Dáselo al miembro para que lo envíe; tú no mandas el mensaje. La persona instala Bolea y vuelve a tocar el link para entrar con la invitación. - `{kind: "member", member, converted}`: la persona ya es miembro. Sus partidos pasaron ahora a confirmación. - `{kind: "unavailable"}`: no se puede invitar a esa persona. No des más explicaciones. - `already_member` o `invitations_paused` si corresponde. 5. **Cuándo es oficial.** Cuando la persona entra, cada partido pasa a ser un partido normal con marcador por confirmar. Cuenta cuando la persona lo confirma o a los 5 días si no responde. Gestión: `external_matches_mine`, `external_match_delete` (`p_id`, recalcula la racha), `external_rival_update` (`p_rival`, `p_name`, `p_phone`; `p_phone: ""` quita el celular), `external_rival_delete` (sus partidos quedan sin nombre de rival). ### 3.6 Dobles Un dobles es de 4. El organizador ocupa el lugar 1. Los lugares 1 y 2 son el lado A, y el 3 y el 4, el lado B. Los dobles no mueven el BLE; cuentan en los rankings de victorias y actividad y en la racha semanal. **Organizar.** `create_doubles` con la cancha ya reservada: ```json { "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 } ``` Ajusta el rango para que incluya el BLE del miembro. - `p_slots` tiene siempre 3 lugares: 2, 3 y 4. Cada uno es `{position, invite}` con el id de un miembro, o `{position, open: true, gender}` con `any`, `female` o `male`. - `p_ble_min` y `p_ble_max` son obligatorios con algún lugar abierto y tienen que incluir el BLE del miembro (`invalid_ble_range`). - `p_minutes`: 60, 90 o 120. `p_court_booked`: tiene que ser `true`. Pregunta al miembro si reservó la cancha. - Hora entre 1 hora y 30 días desde ahora (`invalid_open_match_time`). Hace falta lugar: `p_venue_id` o `p_venue_text`. - Hasta 3 dobles activos por organizador (`too_many_doubles`). **Participar.** | Quiero | Herramienta | | --- | --- | | Ver dobles con lugar abierto | `open_doubles` | | Pedir un lugar | `request_doubles_slot` (`p_id`, `p_position`) | | Retirar el pedido | `withdraw_doubles_request` (`p_id`) | | Contestar una invitación | `answer_doubles_invite` (`p_id`, `p_accept`) | | Salir | `leave_doubles` (`p_id`). El organizador cancela | | Ver pendientes | `doubles_agenda`; detalle con `doubles_detail` (`p_id`) | Como organizador: `respond_doubles_request` (`p_request`, `p_accept`), `change_doubles_slot` (`p_id`, `p_position`, y `p_invite`, o `p_gender` con `any`, `female` o `male`, y opcional `p_ble_min`/`p_ble_max`), `cancel_doubles` (`p_id`). Con un marcador reportado, `result_already_reported`. **Marcador.** - Dobles de la app: `report_doubles_result` (`p_id`, `p_format`, `p_sets`, `p_finished`, opcionales). El dobles tiene que estar lleno (`doubles_not_full`). En `p_sets`, `a` es el lado A (lugares 1 y 2) y `b` el lado B, sin importar quién reporta. Mira el lado de cada uno en `doubles_detail.slots[].side`. - Dobles que nunca se agendó: `report_doubles` (`p_partner`, `p_rival_1`, `p_rival_2`, `p_played_at`, `p_format`, `p_sets`, `p_finished`, lugar y opcionales). Aquí `a` es la pareja del miembro y `b` los dos rivales. Hasta 31 días atrás. - La otra pareja confirma con `confirm_doubles_result` (`p_result`) o discrepa con `disagree_doubles_result` (`p_result`). Si nadie responde, cuenta a las 120 horas. El `result_id` sale de `doubles_agenda.to_confirm`. **Chat del dobles.** `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`). Genera un UUID nuevo para `p_message_id`. Con el chat cerrado, `doubles_chat_closed`. ### 3.7 Partidos abiertos Un miembro con la cancha ya reservada publica un partido; quien esté en el rango de nivel pide unirse y el organizador elige. **Publicar.** `publish_open_match`: ```json { "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": "Cancha 3, llevo las pelotas." } ``` - `p_minutes`: 60, 90 o 120. `p_court_booked` tiene que ser `true`. - Hora entre 1 hora y 30 días desde ahora. Hasta 3 partidos abiertos activos. - `p_ble_min`/`p_ble_max` van de 0 a 100. - `p_only_gender` (`female` o `male`) solo puede ser el del organizador. - `p_note` hasta 200 caracteres. `p_venue_text` ("Otra") crea un lugar por revisar. - `p_timezone` solo si la cancha no tiene zona. **Buscar y pedir.** `open_matches` (`p_max_km`, `p_from`, `p_to` como fecha local de la cancha `YYYY-MM-DD`, `p_level` `mine` o `all`, `p_limit` hasta 100). Cada partido trae `viewer`: `can_request`, `requested`, `out_of_range` u `other_gender`. Pide con `request_open_match` (`p_id`); retira con `withdraw_open_match_request` (`p_id`). Hasta 5 pedidos pendientes. **Organizar.** `my_open_matches`, `open_match_detail` (`p_id`, trae `requests`), `open_match_requests_to_answer`, `respond_open_match_request` (`p_request`, `p_accept`; al aceptar devuelve el `match_id` del partido nuevo, que sigue como un partido normal), `cancel_open_match` (`p_id`). ### 3.8 Mensajes y compartir WhatsApp - `my_conversations` (`p_limit` hasta 200, `p_before_id`): las conversaciones con mensajes. - `open_conversation` (`p_member` o `p_conversation`): estado, partido pendiente entre ambos. Sin mensajes, `conversation_id` es `null`. - `conversation_messages` (`p_conversation`, `p_before_id`, `p_limit` hasta 100): del más nuevo al más viejo. - `send_message` (`p_member`, `p_id`, `p_body`): ```json { "p_member": "3f2b8c1e-5a4d-4e7f-9b21-6c0d1a2e3f40", "p_id": "f0a1b2c3-d4e5-4f60-9a7b-8c9d0e1f2a3b", "p_body": "Hola, ¿te sirve el sábado a las 9?" } ``` `p_id` es un UUID nuevo que generas tú. Si reintentas con el mismo `p_id`, no se duplica. Cuerpo de 1 a 1000 caracteres, sin espacios en los bordes. - `mark_conversation_read` (`p_conversation`), `my_unread_messages`. - `share_my_whatsapp` (`p_member`, `p_id`, `p_number` opcional): envía el número del miembro dentro del chat. Es destructiva: pregunta antes. Sin `p_number` usa el de Ajustes; si no hay, `whatsapp_required`. Con `p_number` debe ser E.164 (`invalid_whatsapp`). - Si en `conversation_messages` ves un mensaje `kind: "whatsapp"`, trae el número que el otro compartió con el miembro. No lo guardes ni lo copies a otro lugar. Solo se escribe entre miembros activos sin bloqueo (`cannot_message`). ### 3.9 Entrenamientos Las sesiones no cuentan para el BLE, las rachas de partidos ni los rankings, y no sirven para reportar un partido. `training_log`: ```json { "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": "Sparring del club", "p_note": "Trabajé el segundo saque." } ``` | Campo | Valores | | --- | --- | | `p_on_date` | `YYYY-MM-DD`. No futuro en la zona del miembro ni de hace más de un año | | `p_kind` | Obligatorio. En cancha: `lesson`, `clinic`, `hitting_partner`, `rally`, `basket`, `ball_machine`, `serve`, `drills`. Juegos: `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`. Fuera de la cancha: `strength`, `cardio`, `footwork`, `mobility` | | `p_kinds` | Opcional. Lista de varios tipos, sin repetir. Manda sobre `p_kind` | | `p_minutes` | De 5 a 600: el total de la sesión, aunque tenga varios tipos | | `p_focus` | Opcional. Golpes sin repetir: `serve`, `return`, `forehand`, `backhand`, `volley`, `smash`, `movement`, `tactics` | | `p_effort` | Opcional. De 1 a 5 | | `p_partner` | Opcional. Hasta 80 caracteres | | `p_note` | Opcional. Hasta 280 caracteres | Con varios tipos, manda `p_kind` con cualquiera de ellos (es obligatorio) y la lista completa en `p_kinds`. El servidor guarda los tipos con los de cancha primero y `kind` es el primero. Una sesión cuenta "en cancha", con todos sus minutos, si tiene al menos un tipo de cancha. - `training_update` (`p_id` y los mismos campos): reemplaza todo, lo opcional que no mandes queda vacío. Marcada como destructiva. Manda todos los campos. - `training_delete` (`p_id`): destructiva. - `training_week` (`p_week_start`: cualquier día de la semana; sin ese parámetro, la actual): sesiones, minutos y `recent`, las últimas combinaciones para repetir. - `training_summary` (`p_member`): minutos del mes y racha semanal. De otro miembro, nunca el detalle. Errores: `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 Estadísticas y rankings **`player_stats`** (`p_member`, `p_period`, `p_mode`, `p_rival`): | Parámetro | Valores | | --- | --- | | `p_member` | Id del miembro. De otro miembro, sin las llaves privadas | | `p_period` | `all` (por defecto), `year` (desde el 1 de enero) o `6m` | | `p_mode` | `singles` (por defecto) o `doubles`. Nunca juntos | | `p_rival` | `all` (por defecto), `coach` o `hitting_partner`: solo los partidos contra alguien que hoy se marca como profesor o boleador (en dobles, basta un rival) | Devuelve `{summary, by_kind, by_surface, vs_level, streaks, rankings, network, rival_counts, external_played, training, feedback}`. Solo cuenta marcadores confirmados; los partidos con rivales externos no entran. `rival_counts` dice cuántos partidos fueron contra un profesor y contra un boleador, sin el filtro. (20 nov) Del propio miembro trae también `vision`: los números de Bolea Vision de todos sus videos, que no dependen del período ni del modo. Trae `videos`; `serve` (`fastest_kmh`, `first_avg_kmh`, `first_in` de `points`, `double_faults` en `matches` videos); `strokes` (`forehand_avg_kmh`, `backhand_avg_kmh`, `fastest` con `kmh` y `type`); `movement` (`distance_m` en `videos` videos, `peak_mps`); y `game` (`shots_per_point`, `forehands`, `backhands`, `inside_out_forehands`). Cada bloque es `null` sin datos, y `vision` es `null` sin videos. Las velocidades son estimaciones hechas con el video. El % de primeros adentro es `first_in` / `points`. Otro período, modo o rival: `invalid_stats_period`, `invalid_stats_mode`, `invalid_stats_rival`. **`ranking_board`** (`p_kind`, `p_period`, `p_gender`, `p_area`): | `p_kind` | `p_period` | Qué mide | | --- | --- | --- | | `level` | No se manda | El BLE redondeado | | `streaks` | No se manda | Racha de victorias | | `wins` | Obligatorio: `week`, `month` o `all` | Partidos ganados | | `activity` | Obligatorio: `week`, `month` o `all` | Partidos jugados | `p_gender`: `all` (por defecto), `female` o `male`. `p_area`: `all` (por defecto) o `near` (a 100 km o menos). Cualquier combinación que no exista da `invalid_ranking`. Devuelve `{rows, me, calibrating, previous}`; `rows` son los 50 primeros. Otras: - `my_rating_evolution` (`p_since`, una fecha `YYYY-MM-DD`): cada cambio de BLE con su `delta` y motivo. - `my_streak`: racha semanal de actividad, racha de victorias y las últimas 8 semanas. - `my_match_history` (`p_rival`, `p_result` `won` o `lost`): partidos confirmados. - `badge_overview`: insignias y avance. - `community_feed` (`p_limit` hasta 50, `p_filter` `results`, `badges`, `ranking`, `members` o `contacts`), `community_match` (`p_match`), `community_doubles` (`p_doubles`): lo que pasa en la comunidad. Primero lo cercano y los ingresos nuevos, estén donde estén; cada entrada de `community_feed` trae `near` y `city`. Con `contacts`, solo lo de quienes el miembro tiene en los contactos de su teléfono y de quienes jugaron con él. ### 3.11 Repetir la evaluación de nivel Cambia el BLE del miembro y lo vuelve provisional. Solo se puede si no tiene un marcador reportado en un partido suyo. 1. `my_assessment_retake_available`: `true` o `false`. Si es `false`, dile que no puede repetirla. 2. Pide permiso al miembro. `request_my_assessment_retake` y `submit_assessment` son destructivas. 3. `assessment_questions`: las claves y opciones de `p_answers`, y cuándo se pregunta cada una. 4. Hazle **cada** pregunta al miembro. No respondas en su nombre. La edad y el género salen del perfil; la edad y el país para la pregunta de competencia están en `my_onboarding_status`. 5. Con todas las respuestas reunidas, llama `request_my_assessment_retake` y enseguida `submit_assessment` con `p_answers`. Si la repetición queda pendiente, la app se la pide al miembro. 6. Si la hace en varias conversaciones, `save_assessment_progress` (`p_answers`, `p_current_step`) guarda lo que lleva. `p_current_step` es la clave de la pregunta (`competition_level`, `strokes.serve`). `submit_assessment` devuelve `{ble, strengths, weaknesses, is_retake, scale}`. Si faltan respuestas: `invalid_assessment`. Sin una repetición pendiente: `assessment_not_required`. Con un marcador reportado: `retake_not_available`. ### 3.12 Perfil, trabajo y red - `get_my_profile`, `update_my_profile`: `bio` (hasta 160), `dominant_hand` (`right`, `left`), `backhand` (`one_handed`, `two_handed`), `availability` (lista de franjas como en 3.1; reemplaza la lista completa y no puede quedar vacía), `coach` y `hitting_partner` (ver 3.19). Solo cambia lo que mandas. Un valor inválido da el error genérico `error`. - `my_work`, `update_my_work` (`p_data` con `company`, `title`, `school`, `area`, `role`; `""` borra un campo; empresa y cargo hasta 80, estudios hasta 120). No hay herramienta que liste los códigos de `area` y `role`: manda esos dos solo con un código que `my_work` ya devolvió. Un valor inválido da `invalid_work`. Si el miembro no aceptó los términos, `legal_not_accepted`. - `set_company_hidden` (`p_hidden`): oculta o muestra su empresa. `dismiss_work_notice`: cierra el aviso de datos de trabajo. - `set_linkedin_url` (`p_url`, o `null` para quitarlo): solo si el miembro ya conectó LinkedIn (`linkedin_not_connected`); `invalid_linkedin_url` si no es `linkedin.com/in/`. - `remove_member_photo` (`p_position` de 1 a 3): quita una foto de la galería. Destructiva. No puedes subir ninguna. - `my_network`: hasta 150 miembros con algo en común (con `feature_off` si la función está apagada). - `my_invite_link`: el link personal del miembro para invitar a Bolea, `{code, short_code, url, uses}`. `url` es `https://bolea.club/i/`: sirve para varias personas, no vence y es siempre el mismo. Quien crea su cuenta con él queda como invitado por el miembro. Dáselo al miembro para que lo comparta; tú no lo envías. `uses` es cuántas personas entraron con él. - `create_invitation` (`p_phone` en E.164, `p_name`, `p_email`, `p_estimate`): una invitación para una persona. Devuelve `{id, code, short_code, expires_at}`. El link es `https://bolea.club/i/`: dáselo al miembro. La persona instala Bolea y vuelve a tocar el link para entrar con la invitación. `p_estimate` es cómo juega la persona comparado con el miembro: `better`, `similar`, `worse` o `unknown`. Con `p_email`, Bolea manda un correo a esa persona: pregunta antes. `annul_invitation` (`p_invitation`) anula una pendiente; destructiva. ### 3.13 Canchas y ubicación - `search_venues` (`p_query` obligatorio, `p_limit` hasta 100, `p_latitude` y `p_longitude` juntos o ninguno): da el `venue_id`. - `venue_map_cities`: las ciudades donde Bolea tiene canchas, con cuántas tiene cada una. - `venue_map` (`p_ble_min`, `p_ble_max`, `p_availability`): las canchas cercanas (hasta 300 a 100 km) y las del miembro, con cuántos miembros hay. Para otra ciudad, `search_venues`. - **Otra ciudad:** `venue_map_cities` da las ciudades y sus coordenadas. `search_venues` busca por el nombre de la ciudad o de la cancha. Con el `venue_id`, `venue_players` da quién juega ahí; o `search_players` con `p_cities` y el `city` que devolvió `search_venues`. Si el miembro va a viajar, `set_travel_mode` le cambia la ciudad. - `suggest_venue` (`p_name`, y opcionales `p_kind`, `p_address`, `p_city`, `p_latitude` con `p_longitude`, `p_country_code`, `p_timezone`): propone una cancha que no existe. Primero búscala. `p_kind`: `club`, `public_court` o `residential`. Queda en revisión. Hasta 10 nuevas al día (`too_many_attempts`). - `set_my_venues` (`p_venues`: `[{"venue_id": "...", "can_book": true}]`, de 1 a 3): reemplaza las canchas del miembro. Cada una necesita `can_book: true`, que el miembro tiene que confirmar. Pregúntale antes de mandarlo. - `set_max_distance` (`p_km` de 1 a 100, o `null`), `update_my_location` (`p_latitude`, `p_longitude`, `p_city`, `p_country_code` de 2 letras), `clear_my_location`, `set_travel_mode` (`p_city`, `p_country_code`, `p_latitude`, `p_longitude`; con `p_city` en `null` se apaga). Usa coordenadas que el miembro te dé. Se guardan redondeadas a unos 1,1 km. - `my_last_surface`: ver 3.4. ### 3.14 Preferencias de novedades `set_news_preferences` es el permiso para recibir novedades, eventos y promociones de Bolea por correo, push o WhatsApp. No es la herramienta `news`. - `my_news_preferences`: `{email, push, whatsapp, answered_at}`. - `set_news_preferences` (`p_email`, `p_push`, `p_whatsapp`, `p_source`): **un agente solo apaga**. Prender un canal da `not_allowed`. Manda los canales que no cambian tal como los lee `my_news_preferences`. `p_source`: `onboarding`, `home_card` o `settings`; usa `settings`. ### 3.15 Qué hay de nuevo: `news` `news` devuelve `{since, agenda, unread_messages, open_matches}`: la agenda del miembro, los mensajes sin leer y los partidos abiertos a los que puede pedir unirse o ya pidió, desde la última vez que este agente preguntó (`since`, o `null` la primera vez). Llamarla marca lo visto. Úsala para avisar al miembro de lo que tiene pendiente. ### 3.16 Torneos y ligas Hay tres clases: de Bolea y de un club (oficiales) y de la comunidad (no oficiales). Cualquier miembro crea uno de la comunidad con `tournament_create`, hasta 3 sin terminar. Un torneo tiene categorías, y cada una, su cuadro: eliminación, todos contra todos o grupos con eliminación, con Cuadro B opcional en eliminación. Para crear uno, `tournament_create` con `p_data`: ```json { "kind": "tournament", "name": "Copa de los martes", "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": "Abierta", "capacity": 8, "draw_type": "elimination", "format_main": {"kind": "best_of_3", "decider": "super_10"}} ] } ``` Cada categoría de `categories`: | Campo | Valores | | --- | --- | | `name` | Obligatorio, hasta 40 caracteres | | `capacity` | Obligatorio, de 3 a 64. Todos contra todos, hasta 8; una división de liga, hasta 10 | | `format_main` | Obligatorio. `kind`: `one_set`, `best_of_5`, `eight_game_set` (con `tb_at` 7 u 8), `best_of_3` (con `decider` `set`, `tiebreak_7` o `super_10`), `short_sets` (con `sets` 1, 3 o 5) o `points` (con `to` de 3 a 99, `sets` y `underhand`) | | `draw_type` | `elimination` (por defecto), `round_robin` o `groups` (con `group_size` de 3 a 6 y `group_advance` 1 o 2, y al menos 6 cupos). Una división de liga es siempre `round_robin` | | `has_consolation`, `format_consolation` | Cuadro B, solo en `elimination` | | `mode`, `mixed` | `singles` (por defecto) o `doubles`. `mixed` solo en dobles, sin `gender` | | `gender`, `ble_min`, `ble_max` | Quién puede entrar. `gender`: `male` o `female`. En dobles, el rango es sobre la suma de la pareja, hasta 200 | | `draw_mode` | `assisted` (por defecto) o `manual` | | `agenda` | `flexible` (por defecto) o `scheduled` | | `playoff_top4` | Solo en una liga: semifinales y final con los 4 primeros | Una liga dura al menos 14 días, o 28 con semifinales. Si los torneos no están abiertos para el miembro, `tournament_create` responde `feature_off`. - **Entrar:** `tournaments_list`, `tournament_detail` y `tournament_apply`. El organizador acepta o rechaza. Para el tope de nivel cuenta el BLE más alto de los últimos 90 días. Si responde `tournament_unavailable`, no se dice por qué. - **Armar:** `tournament_seeds`, `tournament_set_seeds` si hace falta, y `tournament_make_draw`, una sola vez. O `tournament_load_draw` con un cuadro hecho a mano. - **Jugar:** `tournament_draw` y `tournament_line`. Se reporta con `tournament_report_line`, con el formato de la etapa y con "a" = quien reporta. Para cuadrar, `propose_match` y luego `tournament_link_match`. - **Marcador:** el rival responde con `confirm_result`, `correct_result` o `disagree_result`. Al final, el organizador aprueba o edita con `tournament_review_result`. Un desacuerdo no anula nada: decide el organizador. El BLE se mueve al aprobar. A los 5 días sin respuesta se aprueba solo, salvo si hay desacuerdo. - **Reporta primero:** antes de reportar un partido normal, mira `tournament_pending_line`. Si hay uno pendiente con ese rival, pregunta si es del torneo. - **Quien no está en Bolea:** `tournament_add_guest` e `tournament_invite_guest`. Juega un partido; para seguir tiene que crear su perfil. Sus partidos mueven el BLE cuando entra. - **Organizar:** `tournament_todo` dice qué falta. `tournament_walkover` da WO, doble WO o más días. Nadie juzga su propio partido. - **Ligas:** `tournament_create` con `kind` `league`. Divisiones de hasta 10, todos contra todos hasta la fecha final, 3 puntos por ganar y 1 por jugar. Si el rival no responde, `tournament_rival_silent`. Al terminar, `tournament_new_season` con ascensos y descensos. - **Dobles:** una categoría con `mode` `doubles`. `tournament_apply` lleva la pareja: `p_partner`, o `p_partner_name` y `p_partner_phone` si no está en Bolea. El compañero responde con `tournament_answer_partner`, y el organizador puede usar `tournament_add_pair`. El rival responde con `confirm_doubles_result` o `disagree_doubles_result`. No mueven el BLE. - **Perfil:** `player_competition` trae los partidos de torneo aparte. `player_stats` acepta `p_scope` `competition` y `p_tournament`. Errores: `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 analiza el video de un partido o un entrenamiento que el miembro graba con su celular: le devuelve el video sin las pausas, cada punto como clip, estadísticas y un mapa de calor. Está en beta y solo lo tienen algunos miembros: míralo en `my_features` (`vision`). Sin Vision, estas herramientas responden `feature_off`. - `my_vision_analyses`: sus videos, del más nuevo al más viejo. `status` es `queued`, `processing`, `completed`, `failed` o `expired`. Si el video va con un partido, trae `match_id`, `rival_name` y `played_on`; con un entrenamiento, `training_id` y `played_on`. `summary` es `null` hasta que el análisis tiene números; después trae `rallies` (cuántas jugadas), `highlights` (cuántas jugadas destacadas), `shots_total`, `effective_play_s` (segundos de juego) y `analyzed_duration_s` (segundos de video analizados). (20 nov) Si el video tiene la estela de la pelota, al terminar (`completed`) trae también `speed`, la velocidad de la pelota en los golpes del miembro, en km/h: `first_serve`, `second_serve`, `forehand`, `backhand`, `slice`, `lob`, `return` y `groundstrokes` (cada uno `{avg_kmh, max_kmh, measured}` o `null`), `fastest_shot` (`{kmh, type, shot_id, rally_id}`), `measured_shots` y `shots`. Son estimaciones hechas con el video: dilo así, y no des una cifra con menos de 3 golpes medidos (`measured`). Sin estela, `speed` no viene o es `null`. - `vision_link` (`p_analysis`, y `p_match` o `p_training`): une el video a un partido en que jugó o a uno de sus entrenamientos. El partido lo encuentras con `my_match_history` y el entrenamiento con `training_week`. Sin `p_match` ni `p_training` (omítelos, no mandes `null`), quita la unión. - `request_vision_access` (18 nov): pide Vision para el miembro que no lo tiene, como "Quiero probar Bolea Vision" en la app. Devuelve `status`: `has_access` si ya lo tiene o `pending` si quedó pedido (pedir otra vez no repite nada). A Bolea le llega un correo para aprobarlo; al aprobarlo, el miembro recibe un aviso y un correo, y `my_features` trae `vision` en `true`. Mientras espera, `my_features` trae `vision_access` en `pending`. Si en 30 días no se aprueba, o si el correo a Bolea no sale, vuelve a `none` y se puede pedir de nuevo. - Subir un video, ver los clips, las estadísticas por golpe y el mapa de calor, reportar un clip o borrar un video se hace en la app, en la pestaña Vision. Errores: `feature_off`, `match_not_found`, `invalid_value`, `rate_limited` (`request_vision_access`: hubo muchos pedidos hoy; que lo intente mañana). ### 3.18 Tienda La tienda de Bolea vende lo que recomendamos para jugar. Hoy es el trípode para grabar con Bolea Vision (USD 55, el envío aparte), y solo lo ve quien tiene Vision. En la app no se paga nada: Bolea le escribe al miembro por WhatsApp para coordinar el pago y el envío. - `shop_products` (`p_lang` `es` o `en`): los productos con `id`, `name`, `description`, `specs`, `shipping`, `price_cents` y `currency`, y en `contact` el WhatsApp y la ciudad que el miembro tiene en Bolea. - `request_product` (`p_product`, `p_quantity` de 1 a 5, `p_whatsapp` en E.164, `p_city`, `p_note` opcional hasta 300): deja el pedido y devuelve `order_id`. Es una compra: muéstrale al miembro el producto, la cantidad, el total sin envío, el WhatsApp y la ciudad, y espera su sí. Errores: `not_found` (un producto que no existe o que el miembro no ve), `invalid_value`, `rate_limited` (más de 5 pedidos en 24 horas). ### 3.19 Clases y peloteo (piloto) Algunos miembros dan clases de tenis (profesores) o cobran por pelotear (boleadores). Es un piloto: - Cada uno lo dice de sí mismo. Bolea solo los pone en contacto: no lo verifica, no da la clase ni la cobra. - El día, la hora, el lugar y el precio se acuerdan por el chat de Bolea. - Las clases son en canchas públicas o en clubes que alquilan la cancha a cualquiera. Nunca dentro de clubes privados, conjuntos ni cajas de compensación: esas se reservan con el lugar y siguen sus reglas. - Las clases no son partidos: no mueven el BLE ni cuentan en las estadísticas. **Buscar.** - `class_offers` (`p_kind`: `coach`, `hitting_partner` o nada para los dos): hasta 50 que reciben alumnos. Primero quienes van a la cancha del miembro (`travels_to_you`), después por cercanía a su cancha más cercana (`venue`, `distance_km`). Cada uno trae `member`, `coach_rate`, `hitting_rate` (por hora; con `p_kind`, solo la de ese rol), `currency`, `note`, `books_court`, `court_included`, `city`, `rating` (el promedio, desde 3 reseñas; antes `null`) y `reviews_count`. - `player_profile`: `classes` trae lo mismo, con todos sus lugares, `travels` y `travel_km`, y si el miembro puede calificar (`can_review`, `my_review`). Si esa persona no recibe alumnos, `null`. - `class_reviews` (`p_coach`, `p_limit` hasta 50, `p_offset`): `{items, summary}`. Cada reseña trae quién la escribió (`member`), `rating`, `body`, `created_at` y `mine`. **Pedir una clase.** `request_class` (`p_coach`, `p_kind`, `p_message` de 1 a 1000, `p_accept_terms`): manda el primer mensaje al chat de esa persona, aunque no estén conectados, y devuelve `{conversation_id, message_id, created_at}`. Después siguen por el chat (3.8). Si no están conectados, el primer mensaje va siempre por aquí: `send_message` da `chat_needs_match`. - Antes, muéstrale al miembro a quién le escribe, si es clase o peloteo, y el mensaje. Espera su sí. - La primera vez hace falta la confirmación del alumno (`class_terms_required`). `my_classes` dice si ya la dio (`class_terms_accepted`). Muéstrale este texto tal cual y manda `p_accept_terms: true` solo si dice que sí: > Si la clase es en un club privado, conjunto o caja, me aseguro de que sus reglas lo permitan. Bolea solo nos pone en contacto: no da la clase ni la cobra. Lo que acordemos es entre los dos. - Hasta 5 pedidos cada 24 horas, y 1 a la misma persona cada 24 horas. **Reseñas.** Las estrellas y el texto los decide el miembro: no los escribas tú. Muéstrale la reseña y espera su sí. - `review_class` (`p_coach`, `p_rating` de 1 a 5, `p_body` opcional hasta 300): crea o cambia la del miembro. Solo si le pidió una clase por Bolea, esa persona le respondió en el chat y pasaron 24 horas (`review_not_allowed`). - `delete_my_class_review` (`p_coach`): borra la suya. Si Bolea la ocultó, le quita el texto y sigue oculta. - `report_class_review` (`p_review`): reporta la reseña de otra persona. Le llega al admin, que la oculta o la deja. **Si el miembro da clases o bolea.** 1. `update_my_profile` con `coach` o `hitting_partner` en `true` (en `false`, lo quita). Se ve en su tarjeta para todos. Hazlo solo si el miembro lo pide. 2. `my_classes`: lo guardado, `attested` (ya firmó las confirmaciones vigentes), `phone_verified`, `listed` (ya sale en Clases) y `has_identity` (ya dejó su documento y su dirección; a ti no te llegan). 3. `set_my_classes` guarda todo de una vez. Lo que no mandes queda vacío, salvo el documento y la dirección: parte de `my_classes` y manda todos los campos. | Parámetro | Qué es | | --- | --- | | `p_open` | "Recibo alumnos". Obligatorio | | `p_coach_rate`, `p_hitting_rate` | Tarifa por hora de cada rol, por persona, entera (37,5 se guarda 38). Más de 0 y menos de 100.000.000 | | `p_currency` | Código ISO 4217 (`COP`, `USD`, `MXN`, `EUR`). Por defecto `COP` | | `p_note` | Opcional, hasta 140 caracteres: paquetes, grupos, niños | | `p_books_court`, `p_court_included` | "Reservo la cancha" y si la tarifa la incluye | | `p_venue_ids` | Hasta 3 lugares aprobados donde reserva: canchas públicas o clubes. Nunca conjuntos ni cajas (`venue_not_allowed`) | | `p_travels`, `p_travel_km` | "Voy a tu cancha" y hasta cuántos km desde su ciudad, de 1 a 100 | | `p_attest` | Firma las 4 confirmaciones del profesor | | `p_id_document`, `p_notice_address` | Su documento de identidad (4 a 30 caracteres) y una dirección para notificaciones (5 a 200). No se publican: la ley de consumo de Colombia pide que Bolea los tenga y los dé a un alumno que presente una queja o a una autoridad. Sin mandarlos, quedan los guardados | Para recibir alumnos (`p_open: true`) hace falta: - estar marcado como profesor o boleador (`not_a_coach`); - el celular verificado por WhatsApp (`phone_not_verified`); lo verifica la persona en la app, tú no; - la tarifa de su rol (`rate_required`); - reservar la cancha o ir a la del alumno (`court_mode_required`), y un lugar si reserva (`venue_required`); - las 4 confirmaciones (`attestation_required`); - su documento y una dirección para notificaciones (`identity_required`). Pídeselos al miembro: no los inventes ni los saques de otro lado. Si Bolea le quitó los roles (`classes_removed`), no puede volver a marcarse ni a recibir alumnos. **Antes de `p_open: true` o `p_attest: true`, pregunta.** Recibir alumnos publica su tarifa y sus lugares. Las confirmaciones son una declaración personal del miembro. Muéstrale los 4 textos tal cual y manda `p_attest: true` solo si dice que sí a los 4: 1. Doy clases o peloteo por mi cuenta, sin incumplir el contrato con un club o empleador ni sus reglas. 2. Reservo a mi nombre en canchas públicas o en clubes que alquilan a cualquiera, o voy a la cancha del alumno. 3. Solo doy clases donde las reglas del lugar lo permiten. No ofrezco por Bolea clases dentro de clubes privados, conjuntos ni cajas. 4. Acuerdo con cada alumno el precio, el pago y las cancelaciones. Respondo por la clase y por cualquier conflicto con un club o empleador. Bolea solo nos pone en contacto. Dile también: "Al confirmar, aceptas que quienes te pidan una clase por Bolea te califiquen. Las reseñas se ven en tu perfil." Queda guardado si las confirmó en la app o por medio de un agente. Lo firmado se queda. No vuelvas a mandar `p_attest` salvo que `my_classes` traiga `attested: false`. Errores: ver "Clases y peloteo" en 8. ## 4. Fechas y zonas horarias | Dato | Formato | | --- | --- | | Momento (`p_scheduled_at`, `p_played_at`) | ISO 8601 con zona: `2026-11-12T18:00:00-05:00` o `2026-11-12T23:00:00Z`. Manda siempre el desfase o `Z` | | Día (`p_on_date`, `p_week_start`, `p_from`, `p_to`, `p_since`) | `YYYY-MM-DD` | | Zona (`p_timezone`) | Nombre IANA, como `America/Bogota`. Uno que no existe da `invalid_timezone` | - **La cancha manda.** Un partido se guarda en la zona de su cancha. `p_timezone` solo cuenta sin cancha con zona; si tampoco la mandas, se usa la del miembro. Las respuestas traen `scheduled_at` y `timezone`: convierte la hora a la zona del partido cuando se la muestres al miembro. - **Futuras.** `propose_match` y `counter_proposal` exigen una hora futura (`scheduled_in_past`). `publish_open_match` y `create_doubles`, entre 1 hora y 30 días desde ahora (`invalid_open_match_time`). - **Pasadas.** Para reportar un partido ya jugado (`report_match`, `report_external_match`, `report_doubles`, y `report_result` con `p_played_at`): hasta 31 días atrás (`played_too_old`) y hasta 1 hora en el futuro (`played_in_future`). Un entrenamiento puede ser de hasta un año atrás y no del futuro. - **Semanas.** La semana va de lunes a domingo en la zona del miembro. El día del partido define a qué semana pertenece para las rachas. - **No supongas la hora.** Si el miembro dice "el sábado", confirma la hora y la zona. ## 5. Reglas 1. **Actúas en nombre del miembro.** Usas su cuenta, con las mismas reglas que en la app. Lo que hagas queda a su nombre y lo ven otros miembros. 2. **Pregunta antes de lo que Bolea marca como destructivo.** Las herramientas con `annotations.destructiveHint` son estas (44): | Área | Herramientas | | --- | --- | | Partidos | `cancel_match`, `reject_proposal` | | Marcadores | `report_match`, `report_result`, `confirm_result`, `correct_result`, `disagree_result`, `file_complaint`, `archive_competition` | | Rivales externos | `external_rival_add`, `external_rival_update`, `external_rival_delete`, `external_rival_invite`, `report_external_match`, `external_match_delete` | | Dobles | `report_doubles`, `report_doubles_result`, `confirm_doubles_result`, `disagree_doubles_result`, `leave_doubles`, `cancel_doubles`, `withdraw_doubles_request` | | Partidos abiertos | `cancel_open_match`, `withdraw_open_match_request` | | Entrenamientos | `training_update`, `training_delete` | | Mensajes | `share_my_whatsapp` | | Evaluación | `request_my_assessment_retake`, `submit_assessment` | | Seguridad | `block_member`, `unblock_member`, `report_member`, `report_message`, `report_doubles_message` | | Cuenta y perfil | `stop_sharing_contacts`, `disconnect_linkedin`, `remove_member_photo` | | Invitaciones | `annul_invitation` | | Tienda | `request_product` | | Clases y peloteo | `set_my_classes`, `request_class`, `review_class`, `delete_my_class_review`, `report_class_review` | Muestra al miembro qué vas a hacer, con los datos, y espera su sí. Con `p_attest` o `p_accept_terms`, muéstrale también los textos de 3.19 tal cual. 3. **Si el miembro no te lo pidió, pregúntale antes de lo que lo compromete con otras personas**, aunque Bolea no lo marque: `send_message`, `propose_match`, `create_invitation` y `set_my_venues`. 4. **No inventes datos.** No supongas marcadores, horas, celulares, ubicaciones ni respuestas de la evaluación. Si falta algo, pregunta. Usa las herramientas, no tu memoria. 5. **Los datos de otros miembros son para ayudar a tu miembro.** No los guardes, no los resumas en otro sitio, no los compartas. 6. **No uses los errores para adivinar.** Un bloqueo se ve como un miembro que no existe. No insistas ni intentes deducirlo. 7. **Reintenta poco.** Si una acción falla, lee el código, corrige lo que toque o díselo al miembro. No repitas en bucle. ## 6. Lo que un agente no puede hacer Estas cosas solo las da la persona. No hay herramienta para ellas. Dile al miembro que las haga en la app. | Cosa | Por qué | Qué decirle | | --- | --- | --- | | Apple Salud | Su actividad de Salud no la ve ni la toca ningún agente, según la política de privacidad | Que la traiga desde la app, en un entrenamiento o partido | | Compartir los contactos del teléfono | Están en su teléfono y el permiso es suyo | Que lo haga en la app. Tú solo puedes dejar de compartirlos | | Conectar LinkedIn | Pasa por el inicio de sesión de LinkedIn | Que lo conecte en la app. Tú solo puedes desconectarlo o poner el link, si ya está conectado | | Dar permisos de IA | El permiso lo da la persona | Que lo active en Ajustes | | Prender las novedades | Solo se pueden apagar | Que las prenda en Ajustes o en la tarjeta del Inicio | | Subir una foto | Las herramientas no suben archivos | Que la suba en Editar perfil. Tú solo puedes quitar una | | Subir un video a Bolea Vision o ver sus clips | Las herramientas no suben archivos y los clips viven en el motor de video | Que lo haga en la app, en la pestaña Vision. Tú puedes listar sus videos y unirlos a un partido | | Aceptar los términos | Los acepta la persona | Que los acepte en la app | | Confirmar su correo | Lo confirma la persona | Que lo confirme en la app | | Verificar su celular | Se verifica desde su WhatsApp | Que lo verifique en la app. Hace falta para recibir alumnos | | Eliminar la cuenta | Solo la persona puede hacerlo | Que lo haga en Ajustes | | Quitar o revocar un agente | Lo decide la persona | Más → Ajustes → Agentes conectados. `my_agents` solo los lista | | Links para volver a entrar | Abren la cuenta de otra persona | Que use la app | | El WhatsApp de otros miembros | El número quedaría en el sistema que te ejecuta | Que lo abra desde la conversación de la app | | El link del grupo de la comunidad | Igual | Que lo pida en la app | ## 7. Límites | Límite | Valor | | --- | --- | | Llamadas por minuto, por miembro | 60 (todos sus agentes juntos) | | Escrituras por minuto, por miembro | 20 | | Partidos con alguien que no está en Bolea | 20 anotados cada 24 horas | | Rivales externos nuevos o con celular cambiado | 30 cada 24 horas | | Reportar un marcador | Hasta 31 días atrás | | Marcador sin respuesta | Cuenta a los 5 días (120 horas) | | Propuestas de partido | Vencen a la hora del partido. Hasta 5 sin respuesta a la misma persona, en los últimos 60 días | | Perfiles distintos vistos (`player_profile`) | 300 por día | | Partidos abiertos activos por organizador | 3 | | Dobles activos por organizador | 3 | | Pedidos pendientes a partidos abiertos o dobles | 5 por miembro | | Mensajes | 30 por minuto; 20 conversaciones nuevas cada 24 horas | | Canchas nuevas sugeridas | 10 por día | | Invitaciones por correo | 30 por día | | Invitaciones por celular | 100 por día | | Reportes de miembros nuevos | 10 cada 24 horas | | Comentarios (`send_feedback`) | 10 cada 24 horas | | Pedidos en la tienda | 5 cada 24 horas | | Pedir clases o peloteo | 5 cada 24 horas; 1 a la misma persona cada 24 horas | Tamaños y páginas: bio 160 caracteres; mensaje 1000; nota de un partido abierto 200; nota de un entrenamiento 280; nombre de competencia 60; nombre de rival externo 120; nota de clases 140; reseña de una clase 300; hasta 3 lugares donde da clases; `search_players` hasta 200 por página; `my_conversations` hasta 200; `conversation_messages` hasta 100; `open_matches` hasta 100; `community_feed` hasta 50; `external_matches_mine` hasta 100; `search_venues` hasta 100; `class_offers` hasta 50; `class_reviews` hasta 50. Cuando llegas a un tope por minuto, espera unos segundos y reintenta una vez. ## 8. Errores Un error llega como texto: `código: mensaje`. Solo el código dice qué pasó; el mensaje de los errores de dominio es genérico ("La acción no se pudo hacer"). Un error sin código reconocible llega como `error`. Si el servidor responde `401`, el miembro no ha conectado o ya quitó tu acceso. Si responde `403` con `not_an_agent_token`, el token no es de un agente. **Acceso y cuenta** | Código | Qué hacer | | --- | --- | | `not_a_member` | La cuenta no es de un miembro activo. Dile al miembro que termine de entrar en la app | | `agents_off` | Los agentes todavía no están abiertos para este miembro. No reintentes | | `agent_revoked` | El miembro te quitó el acceso. Para | | `agent_not_granted` | El miembro no te dio permiso. Pídele que te conecte de nuevo | | `agent_gateway_required` | Falla del servidor. Reintenta más tarde | | `too_many_agent_calls` | Pasaste 60 llamadas o 20 escrituras en un minuto. Espera y reintenta | | `legal_not_accepted` | El miembro no aceptó los términos vigentes. Que los acepte en la app | | `not_allowed` | Un agente no puede hacer esto (por ejemplo, prender novedades), o la cosa no es del miembro | | `feature_off` | La función está apagada para este miembro. No la uses | | `error` | Rechazo sin código: un valor fuera de lista, un UUID mal escrito, una lista de horarios vacía o una falla del servidor. Revisa los parámetros; si están bien, reintenta una vez | **Personas** | Código | Qué hacer | | --- | --- | | `member_not_found` | Esa persona no existe, no es miembro activo o hay un bloqueo. No insistas | | `opponent_not_active` | El rival no es miembro activo o hay un bloqueo. Elige a otro | | `cannot_play_yourself` | Escogiste al propio miembro | | `player_unavailable` | En un dobles: un jugador repetido, no activo o con bloqueo | | `cannot_message` | No se puede escribir a esa persona: no activa, el propio miembro o hay bloqueo | | `too_many_profiles` | El miembro vio más de 300 perfiles distintos hoy. Que vuelva mañana | **Propuestas y partidos** | Código | Qué hacer | | --- | --- | | `scheduled_in_past` | La hora ya pasó. Manda una futura | | `proposal_not_pending` | La propuesta ya fue contestada, cancelada o venció. Revisa `my_agenda` | | `not_your_turn` | Le toca contestar al otro | | `not_a_participant` | El miembro no juega ese partido o marcador | | `match_not_found` | El partido no existe o no es del miembro | | `match_not_cancellable` | Solo se cancelan propuestas y partidos aceptados sin marcador | | `too_many_proposals` | Ya hay 5 propuestas sin respuesta a esa persona. Espera a que acepte un partido o escriba | | `invalid_venue` | La cancha no existe, no está aprobada o no es del miembro. Búscala con `search_venues` | | `invalid_timezone` | Zona IANA que no existe | | `invalid_match_target` | En `set_match_details` o `set_match_competition`, manda `p_match` o `p_doubles`, no los dos ni ninguno | **Marcadores** | Código | Qué hacer | | --- | --- | | `invalid_score` | El marcador no cumple las reglas de 3.3. Revisa formato, sets, tiebreaks y `p_finished` | | `played_in_future` | Más de 1 hora en el futuro | | `played_too_old` | Más de 31 días atrás. No se puede reportar | | `match_not_reportable` | El partido no está aceptado, o ya tiene marcador | | `result_not_found`, `result_not_pending` | El marcador no existe, ya se contestó o venció | | `match_not_played` | `set_match_details` sobre un partido sin marcador | | `no_disagreement` | `file_complaint` sin un desacuerdo reciente del miembro | | `invalid_duration` | Minutos fuera de 5 a 600 (60, 90 o 120 en abiertos y dobles de la app) | | `competition_not_found` | La competencia no existe, no es del miembro o está archivada | | `competition_exists`, `invalid_competition_name`, `invalid_competition_kind` | Nombre repetido, vacío o de más de 60; tipo que no es `club`, `league` ni `tournament` | **Rivales externos e invitaciones** | Código | Qué hacer | | --- | --- | | `rival_not_found` | El rival no existe o es de otro miembro | | `rival_already_saved` | El miembro ya tiene otro rival con ese celular | | `invalid_rival_name` | Nombre vacío o de más de 120 | | `external_match_not_found` | El partido externo no existe o es de otro | | `too_many_external_matches` | 20 en 24 horas. Espera | | `too_many_attempts` | Pasaste un tope diario (rivales, invitaciones, canchas sugeridas). Espera | | `already_member` | Esa persona ya es miembro (o lo fue). No la invites | | `invalid_phone`, `invalid_whatsapp` | El celular debe ser E.164: `+` y de 7 a 15 dígitos | | `invalid_email`, `invalid_estimate`, `already_invited`, `invitations_paused` | Correo mal escrito; `p_estimate` fuera de lista; ya hay una invitación pendiente; las invitaciones están pausadas | | `invitation_not_pending` | Esa invitación ya no está pendiente | **Dobles y partidos abiertos** | Código | Qué hacer | | --- | --- | | `invalid_doubles_slots` | `p_slots` mal armado: deben ser los lugares 2, 3 y 4, cada uno invitado o abierto | | `invalid_ble_range` | Rango fuera de 0 a 100, invertido o que no incluye el BLE del miembro | | `court_not_booked` | `p_court_booked` tiene que ser `true` | | `invalid_open_match_time` | Debe ser entre 1 hora y 30 días desde ahora | | `invalid_gender_limit` | `p_only_gender` debe ser el del organizador | | `too_many_open_matches`, `too_many_doubles` | Ya tiene 3 activos | | `too_many_requests` | Ya tiene 5 pedidos pendientes | | `own_open_match`, `not_in_range`, `wrong_gender`, `already_requested`, `already_in_doubles` | No puede pedir ese lugar o ya lo pidió | | `open_match_not_found`, `open_match_not_open`, `doubles_not_found`, `doubles_not_open`, `doubles_not_full`, `doubles_started` | El partido no existe, ya se llenó, se canceló, venció o empezó | | `slot_not_open`, `slot_taken` | El lugar no está abierto o ya tiene a alguien | | `request_not_pending`, `invite_not_pending` | Ya se contestó o se retiró | | `not_organizer`, `not_in_doubles`, `organizer_cannot_leave` | El miembro no tiene ese rol | | `result_already_reported` | Ya hay un marcador en ese dobles | | `doubles_chat_closed` | El chat ya cerró | **Mensajes, entrenamientos y estadísticas** | Código | Qué hacer | | --- | --- | | `invalid_message` | Mensaje vacío o de más de 1000, o un `p_id` que ya usó otro. Genera un UUID nuevo | | `too_many_messages`, `too_many_conversations` | Tope de mensajes o de conversaciones nuevas. Espera | | `conversation_not_found`, `message_not_found` | No existe o no es del miembro | | `whatsapp_required` | El miembro no tiene WhatsApp en Ajustes. Pídele que lo agregue o manda `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_found` | Ver 3.9 | | `invalid_ranking`, `invalid_stats_period`, `invalid_stats_mode`, `invalid_stats_rival`, `invalid_sort`, `invalid_result_filter` | Valor o combinación fuera de lo permitido. Ver 3.1 y 3.10 | **Perfil, canchas, evaluación y seguridad** | Código | Qué hacer | | --- | --- | | `invalid_location` | Latitud o longitud que faltan o fuera de rango | | `invalid_distance` | `p_km` fuera de 1 a 100 | | `invalid_name`, `invalid_venue_details` | Cancha: nombre de 2 a 120; tipo, dirección, ciudad, país o zona inválidos | | `venue_required`, `too_many_venues`, `duplicate_venue`, `booking_confirmation_required` | `set_my_venues`: de 1 a 3 canchas distintas, cada una con `can_book: true` | | `invalid_work`, `invalid_linkedin_url`, `linkedin_not_connected` | Ver 3.12 | | `assessment_not_required`, `retake_not_available`, `invalid_assessment`, `invalid_answers` | Ver 3.11 | | `invalid_source` | `p_source` fuera de `onboarding`, `home_card`, `settings` | | `reason_required`, `invalid_reason`, `try_later` | Reportes: falta el motivo, el motivo no corresponde (de perfil: `content`, `harassment`, `fake`, `other`; de mensaje: `offensive`, `harassment`, `spam`, `other`) o más de 10 en 24 horas | | `invalid_feedback_kind`, `invalid_feedback_message`, `too_many_feedback` | Tipo distinto de `improvement` o `bug`; texto vacío o de más de 1000; 10 en 24 horas | **Clases y peloteo** | Código | Qué hacer | | --- | --- | | `not_a_coach` | El miembro no está marcado como profesor ni boleador. Si lo pide, `update_my_profile` con `coach` o `hitting_partner` | | `phone_not_verified` | Que verifique su celular por WhatsApp en la app | | `rate_required`, `court_mode_required`, `venue_required` | Falta la tarifa de su rol, elegir si reserva la cancha o va a la del alumno, o un lugar donde reserva | | `attestation_required` | Faltan las 4 confirmaciones. Ver 3.19 | | `identity_required`, `invalid_identity` | Faltan el documento o la dirección para notificaciones, o no tienen el largo que piden (4 a 30 y 5 a 200). Pídeselos al miembro | | `classes_removed` | Bolea le quitó los roles de profesor y boleador: no se vuelve a marcar. Si cree que es un error, que escriba a hola@bolea.club | | `invalid_currency`, `invalid_rate`, `invalid_note`, `invalid_travel_km` | Moneda que no es un código de 3 letras; tarifa fuera de rango; nota de más de 140; km fuera de 1 a 100 | | `too_many_venues`, `venue_not_found`, `venue_not_allowed` | Más de 3 lugares; un lugar que no existe o no está aprobado; un conjunto, una caja o un lugar sin clases | | `invalid_class_kind` | `p_kind` debe ser `coach` o `hitting_partner` | | `not_taking_students` | Esa persona no recibe alumnos para ese tipo | | `class_terms_required` | Falta la confirmación del alumno. Ver 3.19 | | `class_request_recent`, `class_requests_daily` | Ya le pidió a esa persona en las últimas 24 horas, o ya hizo 5 pedidos. Espera | | `invalid_rating`, `invalid_review` | Estrellas fuera de 1 a 5; texto de más de 300 | | `review_not_allowed` | Todavía no puede calificar: le falta pedir por Bolea, que le respondan o que pasen 24 horas | | `review_not_found` | La reseña no existe, está oculta o es del miembro | ## Todas las herramientas Un parámetro con * es obligatorio. ### Buscar jugadores - `count_players`: Cuenta cuántos jugadores cumplen los filtros de search_players, sin traer la lista. Sirve para probar filtros antes de buscar. (Solo lee; p_query, p_ble_min, p_ble_max, p_venue_ids, p_cities, p_slots, p_availability, p_max_km) - `in_common`: Qué tienen en común el miembro y otro jugador: partidos juntos, contactos, canchas y quién invitó a quién. Para decidir a quién escribir. (Solo lee; p_member*) - `player_profile`: Perfil de un miembro sin datos privados: nivel, canchas, estadísticas, últimos partidos y su historial contra el miembro. Con el id propio da el BLE del miembro. (Cambia algo; p_member*) - `rival_insights`: Cómo le va al miembro contra otro jugador: historial directo, forma reciente, probabilidad de ganar y rivales en común. Úsala antes de proponer un partido. (Solo lee; p_member*) - `search_players`: Busca jugadores por nombre, nivel BLE, cancha, ciudad, horario o distancia. Úsala primero para encontrar un rival y su member_id. (Solo lee; 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`: Hasta 5 jugadores que Bolea sugiere al miembro, con la diferencia de nivel. Un buen punto de partida cuando no pide a nadie en concreto. (Solo lee) - `venue_players`: Jugadores de una cancha aprobada, con filtros de nivel y horario. Úsala para buscar rivales en un lugar concreto. (Solo lee; p_venue*, p_ble_min, p_ble_max, p_slots, p_availability) ### Proponer y agendar partidos - `accept_proposal`: Acepta una propuesta de partido que te hicieron. Solo funciona si te toca contestar y no ha vencido. (Cambia algo; p_match*) - `cancel_match`: Cancela un partido aceptado o una propuesta propia sin respuesta. No sirve para un partido que ya tiene marcador. (Pregúntale antes al miembro; p_match*) - `counter_proposal`: Contesta una propuesta recibida con otra hora u otro lugar, sin aceptarla ni rechazarla. Ahora le toca responder al otro. (Cambia algo; p_match*, p_scheduled_at*, p_venue_id, p_venue_text) - `match_detail`: Detalle de un partido del miembro: estado, rival, lugar, marcador vigente y de qué lado juega (my_side). Necesaria para orientar p_sets. (Solo lee; p_match*) - `my_agenda`: Lo pendiente del miembro: propuestas por contestar, enviadas, marcadores por reportar o confirmar, y próximos partidos. Léela al empezar. (Solo lee) - `proposal_defaults`: Horas sugeridas para proponer un partido a un rival, según los horarios de ambos, más la cancha en común. Úsala antes de propose_match. (Solo lee; p_opponent*, p_count) - `propose_match`: Propone a otro miembro un partido con fecha, hora y lugar. Queda pendiente hasta que conteste y vence a la hora del partido. (Cambia algo; p_opponent*, p_scheduled_at*, p_venue_id, p_venue_text, p_note, p_timezone) - `reject_proposal`: Rechaza una propuesta de partido que te hicieron y se lo avisa al otro. Solo funciona si te toca contestar. (Pregúntale antes al miembro; p_match*) ### Marcadores, tipo y competencias - `archive_competition`: Archiva una competencia: sale de la lista y no se puede usar en partidos nuevos, pero los que ya la tienen la conservan. (Pregúntale antes al miembro; p_competition*) - `confirm_result`: Confirma el marcador que reportó el rival. Lo deja oficial y actualiza el nivel; si nadie responde, cuenta a los 5 días. (Pregúntale antes al miembro; p_result*) - `correct_result`: Propone otro marcador cuando el que reportó el rival está mal. Tu miembro queda como quien reporta y el rival debe confirmarlo. (Pregúntale antes al miembro; p_result*, p_format*, p_sets*, p_finished*, p_kind, p_surface, p_duration_minutes, p_competition) - `create_competition`: Crea una competencia propia (club, league o tournament) o devuelve la que ya tiene con ese nombre. Solo el miembro la ve. (Cambia algo; p_name*, p_kind*) - `disagree_result`: Dice que no estás de acuerdo con el marcador: queda anulado y el partido no cuenta. Con p_complain también deja una queja privada. (Pregúntale antes al miembro; p_result*, p_complain) - `file_complaint`: Deja la queja privada sobre el rival, dentro de los 14 días de un desacuerdo que tu miembro registró. Sin desacuerdo, falla. (Pregúntale antes al miembro; p_match*) - `my_competitions`: Competencias del miembro (liga, torneo o club) sin las archivadas, con su id para usar al reportar un marcador. (Solo lee) - `my_last_surface`: Última superficie que el miembro usó en una cancha, para sugerirla al reportar. Devuelve null si no hay ninguna. (Solo lee; p_venue*) - `rename_competition`: Cambia el nombre de una competencia propia. Falla si el miembro ya tiene otra con ese nombre. (Cambia algo; p_competition*, p_name*) - `report_match`: Reporta un partido jugado que nunca se agendó en Bolea, hasta 31 días atrás. Crea el partido y su marcador de una vez; el rival lo confirma. (Pregúntale antes al miembro; 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`: Reporta el marcador de un partido ya aceptado en Bolea. Para uno que nunca se agendó, usa report_match. (Pregúntale antes al miembro; p_match*, p_format*, p_sets*, p_finished*, p_played_at, p_kind, p_surface, p_duration_minutes, p_competition) - `set_match_competition`: Pone, cambia o quita (con null) la competencia del miembro en un partido o dobles. No toca la del otro jugador. (Cambia algo; p_match, p_doubles, p_competition) - `set_match_details`: Pone tipo, superficie o duración a un partido o dobles con marcador reportado. La duración es de cada jugador: si no la reportaste y ya había una, solo cambia para ti. Lo que mandes en null no se borra. (Cambia algo; p_match, p_doubles, p_kind, p_surface, p_duration_minutes) ### Partidos con personas fuera de Bolea - `external_match_delete`: Borra un partido anotado con un rival externo y recalcula la racha. No sirve para partidos con miembros. (Pregúntale antes al miembro; p_id*) - `external_matches_mine`: Partidos anotados con rivales que no están en Bolea, del más nuevo al más viejo, con el id para borrarlos. (Solo lee; p_limit, p_before) - `external_rival_add`: Guarda como rival a alguien que no está en Bolea, con nombre y, si lo hay, celular. Si el celular es de un miembro, no guarda nada y lo dice. (Pregúntale antes al miembro; p_name*, p_phone) - `external_rival_delete`: Borra un rival guardado. Sus partidos se quedan, sin nombre de rival. (Pregúntale antes al miembro; p_rival*) - `external_rival_invite`: Crea el código para invitar a un rival guardado; el link es bolea.club/i/código. Se lo das al miembro: tú no envías el mensaje. (Pregúntale antes al miembro; p_rival*) - `external_rival_update`: Cambia el nombre o el celular de un rival guardado; un celular vacío lo quita. Con otro celular, suelta la invitación que tenía. (Pregúntale antes al miembro; p_rival*, p_name, p_phone) - `external_rivals_mine`: Rivales guardados que no están en Bolea, el último con quien jugó primero. Con un agente, el celular llega vacío. (Solo lee) - `report_external_match`: Anota un partido con un rival guardado que no está en Bolea, hasta 31 días atrás. Pasa a ser oficial cuando esa persona entra y lo confirma. (Pregúntale antes al miembro; 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) ### Dobles - `answer_doubles_invite`: Acepta o rechaza la invitación que recibió el miembro para jugar un dobles. (Cambia algo; p_id*, p_accept*) - `cancel_doubles`: Como organizador, cancela el dobles. No sirve si ya empezó o tiene marcador. (Pregúntale antes al miembro; p_id*) - `change_doubles_slot`: Como organizador, cambia un lugar: invita a otra persona o lo abre con género y nivel. No sirve si ya hay marcador. (Cambia algo; p_id*, p_position*, p_invite, p_gender, p_ble_min, p_ble_max) - `confirm_doubles_result`: Confirma el marcador de un dobles que reportó la otra pareja. Si nadie responde, cuenta a las 120 horas. (Pregúntale antes al miembro; p_result*) - `create_doubles`: Organiza un dobles con la cancha reservada. El organizador ocupa el lugar 1; mandas los lugares 2, 3 y 4, invitados o abiertos. (Cambia algo; 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`: Dice que no estás de acuerdo con el marcador de un dobles. El marcador no cuenta. (Pregúntale antes al miembro; p_result*) - `doubles_agenda`: Lo pendiente en dobles: los propios, invitaciones, pedidos por contestar, marcadores por reportar o confirmar, y los que esperan a la otra pareja. (Solo lee) - `doubles_detail`: Detalle de un dobles: lugares, jugadores, lado de cada uno (a o b), marcador y, para el organizador, los pedidos de cada lugar abierto. (Solo lee; p_id*) - `leave_doubles`: El miembro sale de un dobles en el que juega. El organizador no puede salir: cancela. No sirve con marcador. (Pregúntale antes al miembro; p_id*) - `open_doubles`: Dobles de otros miembros con algún lugar abierto. Para pedir uno con request_doubles_slot. (Solo lee; p_max_km, p_from, p_to, p_level, p_limit) - `report_doubles`: Reporta un dobles jugado que nunca se agendó en Bolea, con pareja y dos rivales, hasta 31 días atrás. En p_sets, a es la pareja del miembro. (Pregúntale antes al miembro; 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`: Reporta el marcador de un dobles de la app ya lleno y jugado. En p_sets, a es el lado A (lugares 1 y 2) y b el lado B. (Pregúntale antes al miembro; p_id*, p_format*, p_sets*, p_finished*, p_kind, p_surface, p_duration_minutes, p_competition) - `request_doubles_slot`: Pide un lugar abierto de un dobles, con p_position. Decide el organizador. (Cambia algo; p_id*, p_position*) - `respond_doubles_request`: Como organizador, acepta o rechaza el pedido de alguien por un lugar del dobles. (Cambia algo; p_request*, p_accept*) - `withdraw_doubles_request`: Retira un pedido de lugar en un dobles que todavía no tiene respuesta. (Pregúntale antes al miembro; p_id*) ### Partidos abiertos - `cancel_open_match`: Como organizador, cancela un partido abierto que todavía no se juega. (Pregúntale antes al miembro; p_id*) - `my_open_matches`: Los partidos abiertos del miembro que siguen abiertos o por jugar. (Solo lee) - `open_match_detail`: Detalle de un partido abierto. Si el miembro es el organizador, incluye los pedidos pendientes. (Solo lee; p_id*) - `open_match_requests_to_answer`: Pedidos de otros miembros a los partidos abiertos del miembro que esperan su respuesta. (Solo lee) - `open_matches`: Partidos abiertos de otros miembros. Con p_level mine deja solo los que el miembro puede pedir; viewer dice si puede o no. (Solo lee; p_max_km, p_from, p_to, p_level, p_limit) - `publish_open_match`: Publica un partido abierto con la cancha ya reservada, para que lo pida quien esté en el rango de nivel. El miembro elige rival entre quienes piden. (Cambia algo; 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`: Pide unirse a un partido abierto de otro miembro. El organizador acepta o rechaza. (Cambia algo; p_id*) - `respond_open_match_request`: Como organizador, acepta o rechaza un pedido. Al aceptar se crea el partido y devuelve su id. (Cambia algo; p_request*, p_accept*) - `withdraw_open_match_request`: Retira el pedido del miembro a un partido abierto. (Pregúntale antes al miembro; p_id*) ### Mensajes - `conversation_messages`: Mensajes de una conversación, del más nuevo al más viejo. Usa p_before_id para pasar a la página anterior. (Solo lee; p_conversation*, p_before_id, p_limit) - `doubles_chat`: Mensajes del chat de un dobles, del más nuevo al más viejo, con sus participantes. (Solo lee; p_id*, p_before_id, p_limit) - `mark_conversation_read`: Marca como leída una conversación, para que el otro vea que el miembro la leyó. (Cambia algo; p_conversation*) - `mark_doubles_chat_read`: Marca como leído el chat de un dobles. (Cambia algo; p_id*) - `my_conversations`: Conversaciones con mensajes, la más reciente primero, con el último mensaje y si hay sin leer. Da el conversation_id. (Solo lee; p_limit, p_before_id) - `my_doubles_chats`: Chats de los dobles del miembro, con el último mensaje y si hay sin leer. (Solo lee; p_limit) - `my_unread_messages`: Cuántos mensajes sin leer tiene el miembro en total. (Solo lee) - `open_conversation`: Estado de una conversación con un miembro (p_member) o por id: bloqueos y partido pendiente entre ambos. Sin mensajes previos, conversation_id es null. (Solo lee; p_member, p_conversation) - `send_doubles_message`: Envía un mensaje al chat de un dobles. p_message_id es un UUID nuevo que generas tú. El chat debe estar abierto. (Cambia algo; p_id*, p_message_id*, p_body*) - `send_message`: Envía un mensaje de texto de 1 a 1000 caracteres a otro miembro. p_id es un UUID nuevo que generas tú; repetir el mismo no duplica. (Cambia algo; p_member*, p_id*, p_body*) - `share_my_whatsapp`: Envía el WhatsApp del miembro a otro miembro dentro del chat. Es un dato personal: pregunta antes. p_id es un UUID nuevo. (Pregúntale antes al miembro; p_member*, p_id*, p_number) ### Entrenamientos - `training_delete`: Borra una sesión de entrenamiento del miembro. (Pregúntale antes al miembro; p_id*) - `training_log`: Registra una sesión de entrenamiento: día, tipo(s), minutos totales, golpes, esfuerzo. No cuenta para el BLE ni para un partido. (Cambia algo; p_on_date*, p_kind*, p_minutes*, p_focus, p_effort, p_partner, p_note, p_kinds) - `training_summary`: Minutos del mes y racha semanal de entrenamiento, del miembro o de otro miembro. Nunca el detalle de las sesiones de otro. (Solo lee; p_member*) - `training_update`: Reemplaza una sesión completa: lo opcional que no mandes queda vacío. Manda todos los campos, no solo el cambio. (Pregúntale antes al miembro; p_id*, p_on_date*, p_kind*, p_minutes*, p_focus, p_effort, p_partner, p_note, p_kinds) - `training_week`: Las sesiones de una semana (lunes a domingo), los minutos totales y en cancha, y las últimas combinaciones para repetir. (Solo lee; p_week_start) ### Estadísticas, rankings y comunidad - `badge_overview`: Cuántos miembros tiene cada insignia y el avance del miembro: partidos, rivales, canchas e invitados. (Solo lee) - `community_doubles`: Un dobles de la comunidad, con las dos parejas y el marcador. (Solo lee; p_doubles*) - `community_feed`: Lo que pasa en la comunidad, primero lo cercano y los nuevos miembros de cualquier ciudad: resultados, insignias e ingresos. Filtra con p_filter. Para dar contexto, no para guardarlo. Con p_tournaments también trae al campeón de cada torneo público que terminó. (Solo lee; p_limit, p_filter, p_tournaments) - `community_match`: Un partido de sencillos de la comunidad, con jugadores, niveles antes y después, y su historial entre ambos. (Solo lee; p_match*) - `my_match_history`: Partidos confirmados del miembro, del más reciente al más antiguo. Se filtra por rival o por ganados y perdidos. (Solo lee; p_rival, p_result) - `my_rating_evolution`: Historial del BLE del miembro: cada cambio con su valor, la diferencia y el motivo. p_since es una fecha. (Solo lee; p_since) - `my_streak`: Racha semanal de actividad, racha de victorias y las últimas 8 semanas. Dice si esta semana está pendiente. (Solo lee) - `player_stats`: Estadísticas confirmadas de un miembro por período y por sencillos o dobles: récord, tipo, superficie, nivel del rival, rachas y puestos. (Solo lee; p_member*, p_period, p_mode, p_scope, p_tournament, p_rival) - `ranking_board`: Tablero de un ranking: level, wins, activity o streaks. wins y activity piden p_period; level y streaks no lo admiten. (Solo lee; p_kind*, p_period, p_gender, p_area) ### Evaluación de nivel - `my_assessment_retake_available`: Dice si el miembro puede repetir la evaluación: solo si no tiene un marcador reportado. (Solo lee) - `request_my_assessment_retake`: Abre una repetición de la evaluación de nivel. Llámala solo con todas las respuestas ya reunidas y envía submit_assessment enseguida. (Pregúntale antes al miembro) - `save_assessment_progress`: Guarda respuestas a medias de la evaluación pendiente, junto con el paso en que va. Sirve si la repetición se hace en varias conversaciones. (Cambia algo; p_answers*, p_current_step*) - `submit_assessment`: Envía las respuestas del miembro y fija su BLE nuevo, otra vez provisional. Solo las respuestas que el miembro dio, nunca inventadas. (Pregúntale antes al miembro; p_answers) ### Perfil y trabajo - `get_my_profile`: Perfil del miembro: id, nombre, ciudad, mano, revés, bio, horarios y distancia máxima. Su id sirve para player_stats y player_profile. (Solo lee) - `update_my_profile`: Cambia la bio (hasta 160), la mano, el revés o los horarios. Solo se cambia lo que mandas; los horarios reemplazan la lista completa. (Cambia algo; bio, dominant_hand, backhand, availability, coach, hitting_partner) - `dismiss_work_notice`: Cierra el aviso pendiente sobre los datos de trabajo, cuando el miembro ya los revisó. (Cambia algo) - `my_work`: Trabajo y estudios del miembro: empresa, cargo, estudios, área y rol, y si vienen de LinkedIn o los puso el miembro. (Solo lee) - `remove_member_photo`: Quita una foto de la galería del miembro, por posición 1 a 3. No puede subir una nueva. (Pregúntale antes al miembro; p_position*) - `set_company_hidden`: Oculta o muestra la empresa del miembro en su perfil para los demás. (Cambia algo; p_hidden*) - `set_linkedin_url`: Guarda o quita (con null) el link del perfil de LinkedIn. Solo si el miembro ya conectó LinkedIn en la app. (Cambia algo; p_url*) - `update_my_work`: Edita empresa, cargo, estudios, área o rol. Una cadena vacía borra el campo. Manda area y role solo con códigos que devolvió my_work. (Cambia algo; p_data*) ### Red e invitaciones - `annul_invitation`: Anula una invitación pendiente que el miembro envió, y su link deja de servir. (Pregúntale antes al miembro; p_invitation*) - `create_invitation`: Crea una invitación a Bolea con el celular de quien se invita (p_phone) o su correo. Con correo, Bolea le manda un email: pregunta antes. (Cambia algo; p_name, p_email, p_ambassador, p_estimate, p_phone) - `my_invite_link`: El link personal del miembro para invitar a Bolea (url): sirve para varias personas y no vence. Quien crea su cuenta con él queda como invitado por el miembro. Dáselo al miembro para que lo comparta; tú no lo envías. (Cambia algo) - `my_network`: Hasta 150 miembros con algo en común con el miembro (cancha, empresa, estudios, contactos, partidos), del más cercano al más lejano. Puede dar feature_off. (Solo lee) ### Canchas y ubicación - `clear_my_location`: Borra la última ubicación guardada; las distancias vuelven a medirse desde la ciudad donde vive el miembro. (Cambia algo) - `search_venues`: Busca canchas por nombre o ciudad, con el número de miembros de cada una. Da el venue_id para proponer, reportar o publicar. (Solo lee; p_query*, p_limit, p_latitude, p_longitude) - `set_max_distance`: Fija la distancia máxima en km (1 a 100) para sugerencias y búsquedas; null es sin límite. (Cambia algo; p_km*) - `set_my_venues`: Reemplaza las canchas del miembro (1 a 3). Cada una exige can_book true: el miembro debe confirmar que puede reservar ahí. (Cambia algo; p_venues*) - `set_travel_mode`: Pone al miembro de viaje en otra ciudad para buscar jugadores allí, con coordenadas. Con p_city null lo apaga. (Cambia algo; p_city*, p_country_code, p_latitude, p_longitude) - `suggest_venue`: Propone una cancha nueva si no aparece en search_venues. Queda en revisión. Hasta 10 nuevas al día. (Cambia algo; p_name*, p_kind, p_address, p_city, p_latitude, p_longitude, p_country_code, p_timezone) - `update_my_location`: Guarda la ubicación del miembro (latitud y longitud, redondeadas a unos 1,1 km) para medir distancias. Úsala solo con coordenadas reales que él te dé. (Cambia algo; p_latitude*, p_longitude*, p_city, p_country_code) - `venue_map`: Las canchas cercanas al miembro (hasta 300 a 100 km) y las suyas, con cuántos miembros hay, cuántos coinciden con un rango de nivel y horario, y si son del miembro. Para otra ciudad usa search_venues. (Solo lee; p_ble_min, p_ble_max, p_slots, p_availability) - `venue_map_cities`: Las ciudades donde Bolea tiene canchas, con cuántas tiene cada una. Para mirar otra, usa search_venues o venue_players. (Solo lee) ### Cuenta y permisos - `contacts_status`: Si el miembro comparte los contactos de su teléfono con Bolea, cuántos y su permiso para clasificarlos con IA. (Solo lee) - `disconnect_linkedin`: Desconecta LinkedIn del miembro. No puede volver a conectarlo: eso se hace en la app. (Pregúntale antes al miembro) - `linkedin_status`: Si el miembro conectó LinkedIn, su link y si hay que reconectar. Conectar se hace en la app. (Solo lee) - `my_agents`: Los agentes con acceso a la cuenta del miembro y cuándo se usaron por última vez. Para quitarlos, el miembro lo hace en la app. (Solo lee) - `my_features`: Qué funciones están prendidas para el miembro (mapa de canchas, red, LinkedIn, agentes, tipos de contacto). (Solo lee) - `my_news_preferences`: Si el miembro recibe novedades de Bolea por correo, push o WhatsApp. No es la herramienta news. (Solo lee) - `my_onboarding_status`: Estado de la cuenta del miembro: si está activa, qué falta y si aceptó los términos vigentes. Además trae la edad y el país para la evaluación. (Solo lee) - `set_news_preferences`: Apaga novedades de Bolea por canal. Un agente solo puede apagar: prender da not_allowed. Manda los otros canales como están. (Cambia algo; p_email*, p_push*, p_whatsapp*, p_source*) - `stop_sharing_contacts`: Deja de compartir los contactos del miembro y borra los ya subidos. No puede compartirlos de nuevo: eso se hace en la app. (Pregúntale antes al miembro) ### Seguridad: bloqueos, reportes y comentarios - `block_member`: Bloquea a otro miembro: ninguno ve al otro y se cancelan sus propuestas y partidos por jugar. No se le avisa. (Pregúntale antes al miembro; p_member*) - `my_blocks`: Miembros que el miembro bloqueó, el más reciente primero. Para saber a quién desbloquear. (Solo lee) - `report_doubles_message`: Reporta un mensaje del chat de un dobles por su id y motivo. Pregunta antes. (Pregúntale antes al miembro; p_message_id*, p_reason*, p_text) - `report_member`: Reporta a un miembro al equipo de Bolea (content, harassment, fake u other), con un texto opcional. Pregunta antes. (Pregúntale antes al miembro; p_member*, p_reason*, p_message, p_conversation) - `report_message`: Reporta un mensaje del chat (offensive, harassment, spam u other) por su id. Pregunta antes. (Pregúntale antes al miembro; p_message_id*, p_reason*, p_text) - `send_feedback`: Envía un comentario al equipo de Bolea: una mejora o un error, de 1 a 1000 caracteres. Hasta 10 al día. No mandes capturas. (Cambia algo; p_kind*, p_message*, p_screenshot_path, p_app_version, p_os_version, p_device_model, p_screen) - `unblock_member`: Quita el bloqueo a un miembro. Lo cancelado al bloquear no se recupera. (Pregúntale antes al miembro; p_member*) ### Bolea en sí - `assessment_questions`: Las preguntas de la evaluación de nivel, con las claves y opciones de p_answers. Léela antes de repetirla. (Solo lee) - `news`: Lo nuevo para el miembro desde la última vez que este agente preguntó: agenda, mensajes sin leer y partidos abiertos. Úsala para avisarle. (Solo lee) - `how_bolea_works`: Explica en texto cómo funciona Bolea: el nivel, los partidos, los marcadores y las reglas para agentes. Léela al conectarte. (Solo lee; lang) ### Torneos - `my_admin_venues`: Los clubes de los que soy administrador, donde puedo crear torneos oficiales. (Solo lee) - `player_competition`: Los partidos de torneo de un miembro, aparte de los demás: cifras, títulos y cada torneo. Los privados solo si quien pregunta está en ellos. (Solo lee; p_member) - `report_tournament`: Reporta a Bolea un torneo o, en uno de la comunidad, un marcador falso. No detiene el torneo. (Pregúntale antes al miembro; p_tournament*, p_reason*, p_text, p_line) - `tournament_accept_all`: Acepta a todos los que aplicaron y cumplen, hasta llenar el cupo. Solo el equipo. (Pregúntale antes al miembro; p_category*) - `tournament_add_guest`: Agrega a alguien que no está en Bolea, con nombre y celular: sale en el cuadro con un "?". Puede jugar un partido; para seguir tiene que crear su perfil. (Cambia algo; p_category*, p_name*, p_phone*) - `tournament_add_pair`: El organizador inscribe una pareja de dobles, con miembro o nombre y celular de cada uno. Pregunta antes. (Pregúntale antes al miembro; p_category*, p_a_member, p_a_name, p_a_phone, p_b_member, p_b_name, p_b_phone) - `tournament_answer_invite`: Acepta o rechaza una invitación a un torneo. (Cambia algo; p_entry*, p_accept*, p_wants_consolation, p_partner, p_partner_name, p_partner_phone) - `tournament_answer_partner`: Responde si juega de pareja con quien lo eligió, en dobles. Pregunta antes. (Pregúntale antes al miembro; p_entry*, p_accept*) - `tournament_apply`: Aplica a una categoría de un torneo público. El organizador acepta o rechaza. En dobles, con p_partner o con p_partner_name y p_partner_phone. (Cambia algo; p_category*, p_wants_consolation, p_partner, p_partner_name, p_partner_phone) - `tournament_cancel`: Cancela un torneo y avisa a los jugadores. Los marcadores aprobados se quedan. Pregunta antes. (Pregúntale antes al miembro; p_tournament*) - `tournament_category_entries`: Los inscritos de una categoría. El equipo también ve quién espera respuesta. (Solo lee; p_category*) - `tournament_create`: Crea un torneo con sus categorías. Un miembro crea uno no oficial; Bolea y un administrador de club, uno oficial. Pasa el nombre, las fechas, el cierre de inscripción y al menos una categoría con su cuadro y su formato. kind: tournament o league; cada categoría con mode: singles o doubles. Cada categoría necesita name, capacity y format_main, como {"kind":"best_of_3","decider":"super_10"}. Los demás campos y un ejemplo completo están en how_bolea_works, en Torneos y ligas. (Cambia algo; p_data*) - `tournament_detail`: Un torneo: quién organiza, fechas, reglas, categorías, en qué voy y si puedo aplicar. (Solo lee; p_tournament*) - `tournament_draw`: El cuadro de una categoría: etapas, partidos, marcadores y tablas de grupos. (Cambia algo; p_category*) - `tournament_home`: Mi próximo partido de torneo y cuánto tengo por resolver. (Solo lee) - `tournament_invite_guest`: Crea la invitación personal de esa persona, con el torneo incluido. Devuelve el código para armar el mensaje. (Cambia algo; p_entry*, p_slot) - `tournament_invite_member`: Invita a un miembro a una categoría. Solo el equipo. (Cambia algo; p_category*, p_member*) - `tournament_line`: Un partido del cuadro: jugadores, plazo, formato, marcador y lo que puede hacer quien pregunta. (Solo lee; p_line*) - `tournament_link_match`: Une a una línea del cuadro un partido propuesto con el mismo rival. (Cambia algo; p_line*, p_match*) - `tournament_load_draw`: Carga un cuadro hecho a mano: cada jugador en su línea, o los grupos. Después avanza igual. Pregunta antes. (Pregúntale antes al miembro; p_category*, p_draw*) - `tournament_make_draw`: Hace el sorteo con las reglas de la USTA. Se hace una sola vez y queda publicado. Pregunta antes. (Pregúntale antes al miembro; p_category*) - `tournament_move_line`: Mueve o reemplaza a alguien antes de que se juegue el primer partido. El cuadro lo dice. Solo el equipo. Usa una de movable_entries de tournament_line. (Cambia algo; p_line*, p_slot*, p_entry*) - `tournament_new_season`: Crea la temporada siguiente de una liga terminada, con ascensos y descensos. Cada jugador recibe su invitación. Pregunta antes. (Pregúntale antes al miembro; p_tournament*, p_data*) - `tournament_pending_line`: Si tengo un partido de torneo pendiente con este rival. Úsala antes de reportar un partido normal. (Solo lee; p_rival*) - `tournament_report_line`: Reporta el marcador de un partido del torneo, con "a" = quien reporta y el formato de la etapa. El rival confirma y después aprueba el organizador. Pregunta antes. (Pregúntale antes al miembro; 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`: Acepta, rechaza o deja en lista de espera a quien aplicó. Solo el equipo. (Pregúntale antes al miembro; p_entry*, p_decision*) - `tournament_review_result`: Aprueba, edita o borra un marcador. Con 'edit', "a" es el lado a de la línea. Con 'clear', el partido vuelve a quedar por jugar. Nadie juzga su propio partido. Pregunta antes. (Pregúntale antes al miembro; p_line*, p_decision*, p_format, p_sets, p_finished, p_retired) - `tournament_rival_silent`: "Mi rival no responde": le avisa al organizador. Pregunta antes. (Pregúntale antes al miembro; p_line*) - `tournament_seeds`: Los inscritos en orden de siembra, con cuántas siembras y pases directos tendrá el cuadro. Solo el equipo. (Cambia algo; p_category*) - `tournament_set_deadline`: Cambia el plazo de un partido. Solo el equipo. (Cambia algo; p_line*, p_deadline*) - `tournament_set_schedule`: Pone día, hora y cancha a un partido. Solo el equipo. (Cambia algo; p_line*, p_at*, p_venue_id, p_court) - `tournament_set_seeds`: Reordena las siembras antes del sorteo. El cuadro dice que las ajustó el organizador. Solo el equipo. (Cambia algo; p_category*, p_entries*) - `tournament_staff_add`: Suma un administrador o un juez al equipo del torneo. (Cambia algo; p_tournament*, p_member*, p_role*) - `tournament_staff_remove`: Quita a alguien del equipo del torneo. (Cambia algo; p_tournament*, p_member*) - `tournament_todo`: Lo que el equipo tiene por resolver: sin acuerdo, marcadores por aprobar, plazos vencidos e inscripciones. (Solo lee; p_tournament*) - `tournament_update`: Cambia datos de un torneo: nombre, reglas, valor, premios y fechas. Solo el equipo. (Cambia algo; p_tournament*, p_data*) - `tournament_walkover`: Da WO a uno de los dos ('a' o 'b'), doble WO ('double') o más días ('extend'). Solo quien juzga. Pregunta antes. (Pregúntale antes al miembro; p_line*, p_decision*, p_days) - `tournament_withdraw`: Retira a un jugador de un torneo. Después del sorteo, sus partidos pendientes quedan como WO. Pregunta antes. (Pregúntale antes al miembro; p_entry*) - `tournaments_list`: Lista los torneos: los míos, los oficiales y los de la comunidad cerca (p_area 'near') o en todas partes ('all'). (Solo lee; p_area) ### Bolea Vision (beta) - `my_vision_analyses`: Los videos que el miembro analizó con Bolea Vision: estado, a qué partido o entrenamiento van y el resumen (puntos, golpes, juego efectivo). Solo si tiene Vision. (Solo lee) - `request_vision_access`: Pide probar Bolea Vision para el miembro que no lo tiene. A Bolea le llega un correo para aprobarlo; al aprobarlo, el miembro recibe un aviso. Si ya lo pidió, no repite nada. (Cambia algo) - `vision_link`: Une un video de Vision a un partido en que jugó el miembro o a uno de sus entrenamientos. Sin los dos, quita la unión. (Cambia algo; p_analysis*, p_match, p_training) ### Tienda - `request_product`: Pide un producto de la tienda. No cobra nada: Bolea le escribe al miembro por WhatsApp para coordinar el pago y el envío. (Pregúntale antes al miembro; p_product*, p_quantity*, p_whatsapp*, p_city*, p_note) - `shop_products`: Los productos de la tienda de Bolea, con precio y envío, y el WhatsApp y la ciudad del miembro para el pedido. Hoy es el trípode para Bolea Vision, solo para quien tiene Vision. (Solo lee; p_lang) ### Clases y peloteo (piloto) - `class_offers`: Profesores y boleadores que reciben alumnos: primero quien va a la cancha del miembro y después por cercanía, con tarifa por hora, moneda, nota, cancha y reseñas. Lo dice cada uno; Bolea no lo verifica. (Solo lee; p_kind) - `class_reviews`: Las reseñas de un profesor o boleador, las más nuevas primero, con el promedio (desde 3 reseñas) y cuántas hay. (Solo lee; p_coach*, p_limit, p_offset) - `delete_my_class_review`: Borra la reseña que el miembro escribió sobre un profesor o boleador. Pregunta antes. (Pregúntale antes al miembro; p_coach*) - `my_classes`: El perfil de clases del miembro: si da clases o bolea, si recibe alumnos, tarifas, cancha y lugares, si firmó las confirmaciones, si verificó su celular y si ya sale en Clases. (Solo lee) - `report_class_review`: Reporta la reseña de otra persona: Bolea la revisa y la oculta o la deja. Pregunta antes. (Pregúntale antes al miembro; p_review*) - `request_class`: Pide una clase o un peloteo: manda el primer mensaje al chat de esa persona, aunque no estén conectados. Lo demás se acuerda por el chat. La primera vez, el miembro da su confirmación. Pregunta antes. (Pregúntale antes al miembro; p_coach*, p_kind*, p_message*, p_accept_terms) - `review_class`: Califica a un profesor o boleador de 1 a 5 estrellas, con un texto opcional. Una por persona; otra vez, la cambia. Solo después de pedirle por Bolea y de que respondiera. Pregunta antes. (Pregúntale antes al miembro; p_coach*, p_rating*, p_body) - `set_my_classes`: Guarda todo el perfil de clases de una vez: lo que no mandes queda vacío (salvo el documento y la dirección), así que parte de my_classes. Recibir alumnos, las 4 confirmaciones y sus datos los decide el miembro. Pregunta antes. (Pregúntale antes al miembro; 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) ## Preguntas frecuentes **¿Cuánto cuesta?** Nada. Bolea es gratis y no tiene publicidad. Bolea Vision, mientras está en beta, también es gratis. **¿Necesito una invitación?** No. Descarga Bolea, crea tu cuenta con tu correo y verifica tu celular con un código por WhatsApp. Tienes que ser mayor de 18 años. Un celular sirve para una sola cuenta. **¿Cómo sé con quién voy a jugar?** Para crear su cuenta, cada persona verifica su celular por WhatsApp. En su perfil ves su nivel, sus partidos y a quién conocen en común. **¿Qué ven los demás de mí?** Tu nombre, tu foto, tu nivel, tu edad y tus partidos. Tu fecha de nacimiento no. Dónde juegas lo ven solo las personas conectadas contigo: con contactos en común, que te tienen en sus contactos o con las que ya jugaste. Los demás ven "Ubicación privada". **¿Qué es Bolea Vision?** El análisis de video de Bolea. Subes el video de un partido o un entrenamiento grabado con el celular y te devuelve el video sin las pausas, cada jugada como un clip, la velocidad de tu saque y tus golpes, y dónde estuviste en la cancha. Está en beta privada: para probarlo, escríbenos desde el correo de tu cuenta de Bolea. **¿Qué es el BLE?** Tu nivel en Bolea, de 0 a 100. Arranca con un assessment de 3 minutos y cambia con cada partido que tu rival confirma. **¿En qué ciudades está?** Bolea funciona en cualquier ciudad. Ves a los jugadores y las canchas que tienes cerca y, con el modo viaje, los de otra ciudad. **¿Funciona en Android?** Todavía no. Por ahora Bolea es solo para iPhone. **¿Cómo vuelvo a entrar a Bolea?** Con tu correo y el código de 6 dígitos que te llega. Si no recuerdas el correo, entra con tu celular: el código llega a tu correo. **¿Qué hace Bolea con mis contactos?** Solo los usa si tú lo permites, para mostrarte quién ya está en Bolea y a quién conocen en común. Se guardan cifrados, ningún otro miembro los ve y los puedes quitar cuando quieras en Ajustes. **¿Puedo usar Bolea desde ChatGPT o Claude?** Sí. Agrega un conector con la dirección https://bolea.club/mcp y entra con tu correo. Los pasos están en la guía de agentes (https://bolea.club/agentes). **¿Cómo los contacto?** Escríbenos a hola@bolea.club (mailto:hola@bolea.club). En la página de soporte (https://bolea.club/soporte) está cómo pedir ayuda y cómo eliminar tu cuenta. # Bolea for agents: usage guide 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, ...}`. | Parameter | What it is | | --- | --- | | `p_query` | Name. With a name, the search covers the whole community, word by word | | `p_ble_min`, `p_ble_max` | BLE range | | `p_venue_ids` | List of venue ids | | `p_cities` | List of cities | | `p_availability` | Time slots when they play (see below) | | `p_max_km` | Maximum distance in km | | `p_sort` | `level`, `active`, `new`, `near` or `club` (shares a club, then proximity and level) | | `p_limit`, `p_offset` | Paging: up to 200; use `p_offset` for the next page | Any other `p_sort` returns `invalid_sort`. **Time slots (`p_availability`).** They look like `_`: days `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`; slots by local time. | Slot | Time | | --- | --- | | `morning` | 6 to 11 a.m. | | `midday` | 11 a.m. to 2 p.m. | | `afternoon` | 2 to 6 p.m. | | `night` | 6 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`. ```json { "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`: | Action | Tool | | --- | --- | | Accept | `accept_proposal` (`p_match`) | | Reject | `reject_proposal` (`p_match`). Marked destructive | | Another time or place | `counter_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`. ```json { "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_format` | What it is | Sets to win | | --- | --- | --- | | `one_set` | One set to 6 | 1 | | `eight_game_set` | One set to 8 | 1 | | `best_of_3` | Best of 3 | 2 | | `best_of_5` | Best of 5 | 3 | | `free` | Free: any number of sets, up to 7, or up to 100 in point sets | Whoever 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: | Case | Shape | | --- | --- | | 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`: | Rule | Detail | | --- | --- | | Set to 6 | 6-0 to 6-4, 7-5 or 7-6 | | Set to 8 | 8-0 to 8-6, 9-7 or 9-8 | | Set tiebreak | To 7 points, win by 2 | | Deciding tiebreak | Only as the last set of `best_of_3` or `free`, with sets tied. To 10 or to 7 (`tiebreak_to`), win by 2 | | Sets | No sets after the match is decided | | Games | At 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`. | Action | Tool | | --- | --- | | Confirm | `confirm_result` (`p_result`). Makes it official | | Correct | `correct_result` (`p_result`, `p_format`, `p_sets`, `p_finished`, and the optionals). The member becomes the reporter and the rival has to confirm | | Disagree | `disagree_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 later | `file_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. ```json { "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.** | Parameter | Values | | --- | --- | | `p_kind` | `practice`, `social`, `club`, `league`, `tournament` | | `p_surface` | `clay`, `hard`, `grass`, `har_tru` | | `p_duration_minutes` | Integer from 5 to 600 (`invalid_duration`) | | `p_competition` | Id 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`. 3. `report_external_match`. Here `a` is the member's games and `b` is the rival's. ```json { "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`). 4. `external_rival_invite` (`p_rival`) returns `{kind: "external", code, short_code}`. The link is `https://bolea.club/i/`. 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. 5. **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: ```json { "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 to | Tool | | --- | --- | | See doubles with an open spot | `open_doubles` | | Ask for a spot | `request_doubles_slot` (`p_id`, `p_position`) | | Withdraw the request | `withdraw_doubles_request` (`p_id`) | | Answer an invitation | `answer_doubles_invite` (`p_id`, `p_accept`) | | Leave | `leave_doubles` (`p_id`). The organizer cancels instead | | See what is pending | `doubles_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`: ```json { "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`): ```json { "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`: ```json { "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." } ``` | Field | Values | | --- | --- | | `p_on_date` | `YYYY-MM-DD`. Not in the future in the member's time zone, and not more than a year back | | `p_kind` | Required. 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_kinds` | Optional. A list of several types, no repeats. Takes precedence over `p_kind` | | `p_minutes` | 5 to 600: the total for the session, even with several types | | `p_focus` | Optional. Strokes, no repeats: `serve`, `return`, `forehand`, `backhand`, `volley`, `smash`, `movement`, `tactics` | | `p_effort` | Optional. 1 to 5 | | `p_partner` | Optional. Up to 80 characters | | `p_note` | Optional. 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`): | Parameter | Values | | --- | --- | | `p_member` | Member id. For another member, the private keys are left out | | `p_period` | `all` (default), `year` (since January 1) or `6m` | | `p_mode` | `singles` (default) or `doubles`. Never combined | | `p_rival` | `all` (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_kind` | `p_period` | What it measures | | --- | --- | --- | | `level` | Don't send | The rounded BLE | | `streaks` | Don't send | Win streak | | `wins` | Required: `week`, `month` or `all` | Matches won | | `activity` | Required: `week`, `month` or `all` | Matches 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/`. - `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/`: 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/`: 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`: ```json { "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`: | Field | Values | | --- | --- | | `name` | Required, up to 40 characters | | `capacity` | Required, 3 to 64. Round robin, up to 8; a league division, up to 10 | | `format_main` | Required. `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_type` | `elimination` (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_consolation` | Consolation draw, only in `elimination` | | `mode`, `mixed` | `singles` (default) or `doubles`. `mixed` only in doubles, without `gender` | | `gender`, `ble_min`, `ble_max` | Who can join. `gender`: `male` or `female`. In doubles, the range is on the pair's sum, up to 200 | | `draw_mode` | `assisted` (default) or `manual` | | `agenda` | `flexible` (default) or `scheduled` | | `playoff_top4` | Only 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. | Parameter | What it is | | --- | --- | | `p_open` | "I take students". Required | | `p_coach_rate`, `p_hitting_rate` | Hourly 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_currency` | ISO 4217 code (`COP`, `USD`, `MXN`, `EUR`). Defaults to `COP` | | `p_note` | Optional, 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_ids` | Up 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_attest` | Signs the coach's 4 confirmations | | `p_id_document`, `p_notice_address` | Their 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 | Data | Format | | --- | --- | | 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): | Area | Tools | | --- | --- | | Matches | `cancel_match`, `reject_proposal` | | Scores | `report_match`, `report_result`, `confirm_result`, `correct_result`, `disagree_result`, `file_complaint`, `archive_competition` | | External rivals | `external_rival_add`, `external_rival_update`, `external_rival_delete`, `external_rival_invite`, `report_external_match`, `external_match_delete` | | Doubles | `report_doubles`, `report_doubles_result`, `confirm_doubles_result`, `disagree_doubles_result`, `leave_doubles`, `cancel_doubles`, `withdraw_doubles_request` | | Open matches | `cancel_open_match`, `withdraw_open_match_request` | | Training | `training_update`, `training_delete` | | Messages | `share_my_whatsapp` | | Assessment | `request_my_assessment_retake`, `submit_assessment` | | Safety | `block_member`, `unblock_member`, `report_member`, `report_message`, `report_doubles_message` | | Account and profile | `stop_sharing_contacts`, `disconnect_linkedin`, `remove_member_photo` | | Invitations | `annul_invitation` | | Shop | `request_product` | | Classes and hitting | `set_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. 3. **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`. 4. **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. 5. **Other members' data is for helping your member.** Don't store it, don't summarize it somewhere else, don't share it. 6. **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. 7. **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. | Thing | Why | What to tell them | | --- | --- | --- | | Apple Health | No agent sees or touches their Health activity, per the published privacy policy | To bring it in from the app, on a training session or a match | | Sharing phone contacts | They are on their phone and the permission is theirs | To do it in the app. You can only stop sharing them | | Connecting LinkedIn | It goes through the LinkedIn sign-in | To connect it in the app. You can only disconnect it or set the link, once connected | | Giving AI permissions | The person gives the permission | To turn it on in Settings | | Turning news on | They can only be turned off | To turn them on in Settings or on the Home card | | Uploading a photo | The tools don't upload files | To upload it in Edit profile. You can only remove one | | Uploading a video to Bolea Vision or watching its clips | The tools don't upload files and the clips live in the video engine | To do it in the app, in the Vision tab. You can list their videos and link them to a match | | Accepting the terms | The person accepts them | To accept them in the app | | Confirming their email | The person confirms it | To confirm it in the app | | Verifying their phone | It's verified from their WhatsApp | To verify it in the app. It's needed to take students | | Deleting the account | Only the person can do it | To do it in Settings | | Removing or revoking an agent | The person decides | More → Settings → Connected agents. `my_agents` only lists them | | Links to sign back in | They open another person's account | To use the app | | Other members' WhatsApp | The number would end up in the system that runs you | To open it from the conversation in the app | | The community group link | Same | To ask for it in the app | ## 7. Limits | Limit | Value | | --- | --- | | Calls per minute, per member | 60 (all their agents together) | | Writes per minute, per member | 20 | | Matches with someone not on Bolea | 20 logged every 24 hours | | New external rivals or changed phone numbers | 30 every 24 hours | | Reporting a score | Up to 31 days back | | Unanswered score | Counts after 5 days (120 hours) | | Match proposals | Expire 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 organizer | 3 | | Active doubles per organizer | 3 | | Pending requests to open matches or doubles | 5 per member | | Messages | 30 per minute; 20 new conversations every 24 hours | | New suggested venues | 10 per day | | Invitations by email | 30 per day | | Invitations by phone | 100 per day | | New member reports | 10 every 24 hours | | Feedback (`send_feedback`) | 10 every 24 hours | | Shop orders | 5 every 24 hours | | Class or hitting requests | 5 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** | Code | What to do | | --- | --- | | `not_a_member` | The account isn't an active member's. Tell the member to finish joining in the app | | `agents_off` | Agents aren't open for this member yet. Don't retry | | `agent_revoked` | The member removed your access. Stop | | `agent_not_granted` | The member didn't give you permission. Ask them to connect you again | | `agent_gateway_required` | Server failure. Retry later | | `too_many_agent_calls` | You passed 60 calls or 20 writes in a minute. Wait and retry | | `legal_not_accepted` | The member hasn't accepted the current terms. They must accept in the app | | `not_allowed` | An agent can't do this (for example, turning news on), or the thing isn't the member's | | `feature_off` | The feature is off for this member. Don't use it | | `error` | A 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** | Code | What to do | | --- | --- | | `member_not_found` | That person doesn't exist, isn't an active member, or there is a block. Don't push | | `opponent_not_active` | The rival isn't an active member or there is a block. Pick someone else | | `cannot_play_yourself` | You chose the member themselves | | `player_unavailable` | In doubles: a repeated player, an inactive one, or one with a block | | `cannot_message` | You can't message that person: inactive, the member themselves, or a block | | `too_many_profiles` | Your member viewed more than 300 distinct profiles today. Try again tomorrow | **Proposals and matches** | Code | What to do | | --- | --- | | `scheduled_in_past` | The time has passed. Send a future one | | `proposal_not_pending` | The proposal was already answered, cancelled or expired. Check `my_agenda` | | `not_your_turn` | It is the other member's turn to answer | | `not_a_participant` | The member isn't in that match or score | | `match_not_found` | The match doesn't exist or isn't the member's | | `match_not_cancellable` | Only proposals and accepted matches without a score can be cancelled | | `too_many_proposals` | There are already 5 unanswered proposals to that person. Wait until they accept a match or write | | `invalid_venue` | The venue doesn't exist, isn't approved or isn't the member's. Look it up with `search_venues` | | `invalid_timezone` | An IANA zone that doesn't exist | | `invalid_match_target` | In `set_match_details` or `set_match_competition`, send `p_match` or `p_doubles`, not both and not neither | **Scores** | Code | What to do | | --- | --- | | `invalid_score` | The score breaks the rules in 3.3. Check format, sets, tiebreaks and `p_finished` | | `played_in_future` | More than 1 hour in the future | | `played_too_old` | More than 31 days back. It can't be reported | | `match_not_reportable` | The match isn't accepted, or already has a score | | `result_not_found`, `result_not_pending` | The score doesn't exist, was already answered or expired | | `match_not_played` | `set_match_details` on a match with no score | | `no_disagreement` | `file_complaint` without a recent disagreement by the member | | `invalid_duration` | Minutes outside 5 to 600 (60, 90 or 120 for open matches and doubles from the app) | | `competition_not_found` | The competition doesn't exist, isn't the member's or is archived | | `competition_exists`, `invalid_competition_name`, `invalid_competition_kind` | Repeated name, empty or over 60 characters; a type that isn't `club`, `league` or `tournament` | **External rivals and invitations** | Code | What to do | | --- | --- | | `rival_not_found` | The rival doesn't exist or belongs to another member | | `rival_already_saved` | The member already has another rival with that phone | | `invalid_rival_name` | Empty name or over 120 characters | | `external_match_not_found` | The external match doesn't exist or belongs to someone else | | `too_many_external_matches` | 20 in 24 hours. Wait | | `too_many_attempts` | You passed a daily cap (rivals, invitations, suggested venues). Wait | | `already_member` | That person is already a member (or was). Don't invite them | | `invalid_phone`, `invalid_whatsapp` | The phone must be E.164: `+` and 7 to 15 digits | | `invalid_email`, `invalid_estimate`, `already_invited`, `invitations_paused` | Malformed email; `p_estimate` outside the list; a pending invitation already exists; invitations are paused | | `invitation_not_pending` | That invitation is no longer pending | **Doubles and open matches** | Code | What to do | | --- | --- | | `invalid_doubles_slots` | `p_slots` is malformed: it must be positions 2, 3 and 4, each invited or open | | `invalid_ble_range` | Range outside 0 to 100, reversed, or not including the member's BLE | | `court_not_booked` | `p_court_booked` must be `true` | | `invalid_open_match_time` | Must be between 1 hour and 30 days from now | | `invalid_gender_limit` | `p_only_gender` must be the organizer's own | | `too_many_open_matches`, `too_many_doubles` | They already have 3 active | | `too_many_requests` | They already have 5 pending requests | | `own_open_match`, `not_in_range`, `wrong_gender`, `already_requested`, `already_in_doubles` | They 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_started` | The match doesn't exist, is already full, cancelled, expired or started | | `slot_not_open`, `slot_taken` | The spot isn't open or already has someone | | `request_not_pending`, `invite_not_pending` | Already answered or withdrawn | | `not_organizer`, `not_in_doubles`, `organizer_cannot_leave` | The member doesn't have that role | | `result_already_reported` | That doubles match already has a score | | `doubles_chat_closed` | The chat has closed | **Messages, training and stats** | Code | What to do | | --- | --- | | `invalid_message` | Empty message or over 1000 characters, or a `p_id` another member already used. Generate a new UUID | | `too_many_messages`, `too_many_conversations` | Message or new-conversation cap. Wait | | `conversation_not_found`, `message_not_found` | It doesn't exist or isn't the member's | | `whatsapp_required` | The 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_found` | See 3.9 | | `invalid_ranking`, `invalid_stats_period`, `invalid_stats_mode`, `invalid_stats_rival`, `invalid_sort`, `invalid_result_filter` | A value or combination outside what is allowed. See 3.1 and 3.10 | **Profile, venues, assessment and safety** | Code | What to do | | --- | --- | | `invalid_location` | Latitude or longitude missing or out of range | | `invalid_distance` | `p_km` outside 1 to 100 | | `invalid_name`, `invalid_venue_details` | Venue: name of 2 to 120 characters; invalid type, address, city, country or zone | | `venue_required`, `too_many_venues`, `duplicate_venue`, `booking_confirmation_required` | `set_my_venues`: 1 to 3 distinct venues, each with `can_book: true` | | `invalid_work`, `invalid_linkedin_url`, `linkedin_not_connected` | See 3.12 | | `assessment_not_required`, `retake_not_available`, `invalid_assessment`, `invalid_answers` | See 3.11 | | `invalid_source` | `p_source` outside `onboarding`, `home_card`, `settings` | | `reason_required`, `invalid_reason`, `try_later` | Reports: 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_feedback` | A type other than `improvement` or `bug`; empty text or over 1000 characters; 10 in 24 hours | **Classes and hitting** | Code | What to do | | --- | --- | | `not_a_coach` | Your member isn't marked as a coach or hitting partner. If they ask, `update_my_profile` with `coach` or `hitting_partner` | | `phone_not_verified` | They need to verify their phone through WhatsApp in the app | | `rate_required`, `court_mode_required`, `venue_required` | Missing the rate for their role, the choice between booking the court or going to the student's, or a place where they book | | `attestation_required` | The 4 confirmations are missing. See 3.19 | | `identity_required`, `invalid_identity` | The 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_removed` | Bolea 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_km` | A 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_allowed` | More 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_kind` | `p_kind` must be `coach` or `hitting_partner` | | `not_taking_students` | That person isn't taking students for that kind | | `class_terms_required` | The student confirmation is missing. See 3.19 | | `class_request_recent`, `class_requests_daily` | They already asked that person in the last 24 hours, or already made 5 requests. Wait | | `invalid_rating`, `invalid_review` | Stars outside 1 to 5; text over 300 | | `review_not_allowed` | They can't review yet: they need to ask through Bolea, get a reply and wait 24 hours | | `review_not_found` | The review doesn't exist, is hidden or is your member's own | ## All the tools 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; p_name*, p_phone) - `external_rival_delete`: Deletes a saved rival. Their matches stay, with no rival name. (Ask the member first; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; p_id*) - `open_doubles`: Other members' doubles matches that have an open spot. Use request_doubles_slot to ask for one. (Read-only; 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; 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; 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; 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; 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; p_id*) ### Open matches - `cancel_open_match`: As the organizer, cancels an open match that has not been played yet. (Ask the member first; 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; 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; 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; 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; p_id*) - `respond_open_match_request`: As the organizer, accepts or rejects a request. Accepting creates the match and returns its id. (Changes something; p_request*, p_accept*) - `withdraw_open_match_request`: Withdraws your member's request to join an open match. (Ask the member first; p_id*) ### Messages - `conversation_messages`: Messages in a conversation, newest first. Use p_before_id to page back to older ones. (Read-only; p_conversation*, p_before_id, p_limit) - `doubles_chat`: Messages in a doubles match chat, newest first, with its participants. (Read-only; 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; p_conversation*) - `mark_doubles_chat_read`: Marks a doubles match chat as read. (Changes something; 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; 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; 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; 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; 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; 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; p_member*, p_id*, p_number) ### Training - `training_delete`: Deletes one of the member's training sessions. (Ask the member first; 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; 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; 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; 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; 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; 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; 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; p_match*) - `my_match_history`: The member's confirmed matches, newest first. Filter by rival or by won and lost. (Read-only; 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; 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; 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; 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; 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; 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; 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; p_position*) - `set_company_hidden`: Hides or shows your member's company on their profile for others. (Changes something; 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; 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; p_data*) ### Network and invitations - `annul_invitation`: Cancels a pending invitation your member sent; its link stops working. (Ask the member first; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; p_tournament*) - `tournament_category_entries`: A category's players. The team also sees who is awaiting an answer. (Read-only; 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; p_data*) - `tournament_detail`: A tournament: organizer, dates, rules, categories, where I stand and whether I can apply. (Read-only; p_tournament*) - `tournament_draw`: A category's draw: stages, matches, scores and group tables. (Changes something; 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; p_entry*, p_slot) - `tournament_invite_member`: Invites a member to a category. Team only. (Changes something; p_category*, p_member*) - `tournament_line`: A draw match: players, deadline, format, score and what the caller can do. (Read-only; p_line*) - `tournament_link_match`: Links a match proposed with the same rival to a draw line. (Changes something; 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; 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; 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; 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; 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; 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; 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; 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; 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; p_line*) - `tournament_seeds`: Players in seed order, with how many seeds and byes the draw will have. Team only. (Changes something; p_category*) - `tournament_set_deadline`: Changes a match's deadline. Team only. (Changes something; p_line*, p_deadline*) - `tournament_set_schedule`: Sets a match's day, time and court. Team only. (Changes something; 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; p_category*, p_entries*) - `tournament_staff_add`: Adds an admin or judge to the tournament team. (Changes something; p_tournament*, p_member*, p_role*) - `tournament_staff_remove`: Removes someone from the tournament team. (Changes something; p_tournament*, p_member*) - `tournament_todo`: What the team has to resolve: disagreements, scores to approve, overdue deadlines and applications. (Read-only; p_tournament*) - `tournament_update`: Changes tournament data: name, rules, fee, prizes and dates. Team only. (Changes something; 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; 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; p_entry*) - `tournaments_list`: Lists tournaments: mine, official ones and community ones nearby (p_area 'near') or everywhere ('all'). (Read-only; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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; 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) ## FAQ **How much does it cost?** Nothing. Bolea is free and has no ads. Bolea Vision is also free while it's in beta. **Do I need an invite?** No. Download Bolea, create your account with your email and verify your phone with a code on WhatsApp. You need to be 18 or older. Each phone number works for one account. **How do I know who I'm playing?** To create an account, everyone verifies their phone number on WhatsApp. On each profile you see their level, their matches and who you know in common. **What do others see about me?** Your name, photo, level, age and matches. Not your date of birth. Where you play is only shown to people connected to you: you have contacts in common, they have you in their contacts, or you've already played each other. Everyone else sees "Private location". **What's Bolea Vision?** Bolea's video analysis. You upload the video of a match or training session recorded on your phone and get back the video without the breaks, every rally as a clip, the speed of your serve and your shots, and where you were on court. It's in private beta: to try it, email us from the email on your Bolea account. **What's BLE?** Your level on Bolea, from 0 to 100. It starts with a 3-minute assessment and changes with every match your opponent confirms. **Which cities is it in?** Bolea works in any city. You see players and courts near you and, with travel mode, the ones in another city. **Is it on Android?** Not yet. For now Bolea is iPhone only. **How do I sign back in?** With your email and the 6-digit code you receive. If you don't remember the email, use your phone number: the code goes to your email. **What does Bolea do with my contacts?** It only uses them if you allow it, to show you who is already on Bolea and who you both know. They're stored encrypted, no other member sees them and you can remove them any time in Settings. **Can I use Bolea from ChatGPT or Claude?** Yes. Add a connector with the address https://bolea.club/mcp and sign in with your email. The steps are in the agents guide (https://bolea.club/en/agents). **How do I contact you?** Email us at hola@bolea.club (mailto:hola@bolea.club). The support page (https://bolea.club/en/support) covers how to get help and how to delete your account.