Skip to main content
Glama
shinkeonkim

독립유공자 공훈록 MCP 서버

by shinkeonkim

clear_cache

Clear all cached data in the 독립유공자 공훈록 MCP 서버 to ensure the latest information is retrieved for independence activist records and achievements.

Instructions

캐시된 데이터를 모두 초기화합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'clear_cache' tool within the call_tool function. It invokes cache_manager.clear() and returns a formatted success response.
    elif name == "clear_cache": # 캐시 초기화 cache_manager.clear() return [ TextContent( type="text", text=format_response({ "success": True, "message": "캐시가 성공적으로 초기화되었습니다." }) ) ]
  • Registration of the 'clear_cache' tool in the list_tools() function, defining its name, description, and input schema (empty object).
    Tool( name="clear_cache", description="캐시된 데이터를 모두 초기화합니다", inputSchema={ "type": "object", "properties": {} } )
  • Implementation of the clear() method in CacheManager class, which clears the cache data and timestamps, and logs the action. This is called by the tool handler.
    def clear(self) -> None: """모든 캐시를 초기화합니다.""" self.last_cache_time.clear() self.cache_data.clear() logger.info("캐시가 초기화되었습니다.")

Other Tools

Related Tools

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/shinkeonkim/e-gonghun-mcp'

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