get_cache_info
Inspect cache freshness, TTL, and item counts for hackathon snapshots to verify data currency and optimize query performance.
Instructions
Inspect cache freshness, TTL, and item counts for the open hackathon snapshot.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/unstop_mcp/service.py:262-263 (handler)The service-level implementation of `get_cache_info`, which fetches cache metadata.
def get_cache_info(self) -> CacheInfoResponse: return CacheInfoResponse(cache=self.cache.metadata(is_cached_result=True)) - src/unstop_mcp/server.py:122-124 (registration)The tool handler registration and invocation of `get_cache_info` in the server.
def get_cache_info() -> dict: try: return service.get_cache_info().model_dump(mode="json")