season_summary
Analyze passenger data across a season to track total travelers and their distribution by agencies using this tool, simplifying season-wide insights for travel programs.
Instructions
Obtiene un resumen de pasajeros a lo largo de una temporada. Esta tool es muy útil para obtener el total de pasajeros de una temporada y ver como se distribuye por agencias.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endYear | Yes | Año de fin de la temporada (YYYY) | |
| startYear | Yes | Año de inicio de la temporada (YYYY) |
Implementation Reference
- src/handlers/tools.handler.ts:1162-1168 (handler)Handler implementation for the 'season_summary' tool. Extracts arguments, calls ApiService.getSeasonSummary, and returns the result as JSON text content.case 'season_summary': { const { startYear, endYear } = args as { startYear: string, endYear: string } const seasonSummary = await this.apiService.getSeasonSummary(startYear, endYear) return { content: [{ type: 'text', text: JSON.stringify(seasonSummary, null, 2) }] } }
- src/handlers/tools.handler.ts:92-102 (schema)Tool definition including name, description, and input schema for 'season_summary' in the listTools response.name: 'season_summary', description: 'Obtiene un resumen de pasajeros a lo largo de una temporada. Esta tool es muy útil para obtener el total de pasajeros de una temporada y ver como se distribuye por agencias.', inputSchema: { type: 'object', properties: { startYear: { type: 'string', description: 'Año de inicio de la temporada (YYYY)' }, endYear: { type: 'string', description: 'Año de fin de la temporada (YYYY)' } }, required: ['startYear', 'endYear'] } },
- src/services/api.service.ts:70-82 (helper)ApiService method getSeasonSummary that performs authenticated POST request to external API endpoint for season summary data.async getSeasonSummary (startYear: string, endYear: string) { const headers = await this.getHeaders() const dataToSend = new URLSearchParams({ startYear, endYear }) const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/programs/season_summary`, { method: 'POST', headers, body: dataToSend }) return await this.handleResponse<any>(response) }