Skip to main content
Glama
CodeDreamer06

Unstop MCP Server

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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
  • Core implementation of refresh_cache in the service class.
    def refresh_cache(self) -> CacheInfoResponse:
        self.build_cache(force=True)
        return self.get_cache_info()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodeDreamer06/UnstopMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server