clear_cache
Clear Formula 1 session data from in-memory cache. Optionally filter by year and event to remove specific cached sessions.
Instructions
Clear cached sessions from in-memory storage.
Args: year: Optional year filter — only clear sessions for this year event: Optional event filter — requires year to be set
Returns: {"cleared": 3, "remaining": 2}
Example: clear_cache() → {"cleared": 5, "remaining": 0} clear_cache(2024, "Monaco") → {"cleared": 1, "remaining": 4}
Note: Clears the in-memory LRU cache only. The FastF1 disk cache (raw timing files) is preserved and unaffected.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| event | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||