clear_entrez_cache
Clear cached Entrez query results to remove stale data and reduce API calls in the BioPython MCP Server's caching system.
Instructions
Clear cached Entrez results.
The caching system stores Entrez query results to reduce API calls and improve response times. Use this tool to clear stale cache data.
Args: database: Database name to clear (empty string clears all databases)
Returns: Dictionary containing: - success: Whether operation succeeded - cleared: Number of cache files removed - database: Database cleared (or "all" if empty string) - cache_location: Path to cache directory
Examples: >>> clear_entrez_cache() # Clear all caches >>> clear_entrez_cache("pubmed") # Clear only PubMed cache >>> clear_entrez_cache("gene") # Clear only Gene cache
Notes: - Caching is optional and controlled via use_cache parameter - Default TTL: 1 hour for searches, 7 days for fetches - Cache stored in ~/.biopython-mcp/cache/ - Cached data includes search results and summaries
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No |