"Airport On-Time Performance API skill. Use when working with Airport On-Time Performance for airport. Covers 1 endpoint."
Resources
1Install
npx skillscat add lap-platform/claude-marketplace/airport-on-time-performance Install via the SkillsCat registry.
SKILL.md
Airport On-Time Performance
API version: 1.0.4
Auth
No authentication required.
Base URL
https://test.api.amadeus.com/v1
Setup
- No auth setup needed
- GET /airport/predictions/on-time -- verify access
Endpoints
1 endpoints across 1 groups. See references/api-spec.lap for full details.
airport
| Method | Path | Description |
|---|---|---|
| GET | /airport/predictions/on-time | Returns a percentage of on-time flight departures from a given airport. |
Enhanced Skill Content
Question Mapping
- "What is the on-time performance prediction for JFK?" -> GET /airport/predictions/on-time
- "How likely is my flight from LAX to be on time tomorrow?" -> GET /airport/predictions/on-time
- "Which airports have the best on-time ratings for a given date?" -> GET /airport/predictions/on-time (loop over airport codes)
- "Is there a delay risk at O'Hare on 2026-03-15?" -> GET /airport/predictions/on-time
- "What's the punctuality forecast for Heathrow next Monday?" -> GET /airport/predictions/on-time
- "Compare on-time performance between SFO and SJC for a date" -> GET /airport/predictions/on-time (two calls, compare results)
- "Should I book a connection through ATL or CLT based on delay risk?" -> GET /airport/predictions/on-time (two calls, compare)
- "What on-time score does CDG have today?" -> GET /airport/predictions/on-time
- "Get delay predictions for all major US hub airports on a date" -> GET /airport/predictions/on-time (batch calls)
- "Is NRT a reliable airport for connections next Friday?" -> GET /airport/predictions/on-time
- "How does seasonal performance vary for DEN?" -> GET /airport/predictions/on-time (multiple date calls)
- "What happens if I pass an invalid airport code?" -> GET /airport/predictions/on-time (expect 400)
Response Tips
- On-time predictions: Response contains a probability/score object -- surface the percentage or category (e.g., high/medium/low) directly rather than raw nested data. Check for
data.resultordata.predictionkeys. - 400 errors: Typically indicate malformed
airportCode(must be 3-letter IATA) or invaliddateformat (use YYYY-MM-DD). Parseerrors[].detailfor actionable messages. - No pagination: Single-resource endpoint returns one prediction per call -- no cursor or offset handling needed.
Anomaly Flags
- Invalid IATA code: If a 400 response mentions the airport code, proactively suggest the correct 3-letter IATA code or offer to look it up.
- Date out of range: Surface when the requested date falls outside the API's supported prediction window (typically near-term only).
- Low confidence scores: If the prediction confidence or probability is unusually low, flag it so the user can factor uncertainty into decisions.
- Rate limiting (429): Surface rate limit headers (
X-RateLimit-Remaining) proactively when approaching thresholds -- Amadeus test environment has strict quotas. - Test vs production base URL: The spec uses
test.api.amadeus.com-- flag if the user appears to need production data, as test responses may use synthetic data. - Authentication failures (401/403): Amadeus requires OAuth2 bearer tokens -- surface token expiry proactively if calls start failing.
Playbook
1. Check On-Time Performance for a Single Airport
- Confirm the 3-letter IATA airport code (e.g., JFK, LAX, LHR).
- Determine the target date in YYYY-MM-DD format.
- Call
GET /airport/predictions/on-time?airportCode=JFK&date=2026-03-10. - Extract the on-time probability or category from the response.
- Present the result with context (e.g., "JFK has an 82% on-time rating for March 10").
2. Compare Two Airports for Connection Planning
- Identify both candidate airport codes (e.g., ATL and CLT).
- Set the travel date.
- Call
GET /airport/predictions/on-timefor each airport in parallel. - Compare the on-time scores side by side.
- Recommend the airport with the higher on-time probability, noting any caveats about confidence.
3. Batch-Check Multiple Airports
- Define a list of target airports (e.g., top 10 US hubs).
- Set the target date.
- Loop through the list, calling
GET /airport/predictions/on-timefor each. - Collect and sort results by on-time score, highest first.
- Present a ranked summary table.
4. Handle and Recover from Errors
- Make the prediction request.
- If a 400 is returned, parse the error detail from the response body.
- Check for common issues: invalid IATA code (must be exactly 3 uppercase letters), malformed date (must be YYYY-MM-DD), or date out of supported range.
- Correct the parameter and retry.
- If errors persist, verify API authentication is valid and the test environment is reachable.
Response Tips
- Check response schemas in references/api-spec.lap for field details
References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas
Generated from the official API spec by LAP