refresh_cache
Force an immediate refresh of cached hackathon data to ensure access to current event information.
Instructions
Force an immediate refresh of the cached open hackathon dataset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/unstop_mcp/server.py:108-116 (handler)MCP tool registration for 'refresh_cache' in server.py.
@server.tool( name="refresh_cache", description="Force an immediate refresh of the cached open hackathon dataset.", ) def refresh_cache() -> dict: try: return service.refresh_cache().model_dump(mode="json") except (UnstopValidationError, UnstopAPIError, ValueError) as exc: raise ValueError(str(exc)) from exc - src/unstop_mcp/service.py:258-260 (handler)Core implementation of refresh_cache in the service class.
def refresh_cache(self) -> CacheInfoResponse: self.build_cache(force=True) return self.get_cache_info()