Skip to main content
Glama
barvhaim

Israeli Land Authority MCP Server

by barvhaim

get_recent_results

Retrieve recently completed Israeli Land Authority tenders with published results for detailed market analysis and trend monitoring. Specify the number of past days to customize your search.

Instructions

Get tenders with results from recent days

Find completed tenders with published results for market analysis and trend monitoring.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsYes

Implementation Reference

  • MCP tool handler for 'get_recent_results' that fetches recent tender results via the API client and formats the response.
    @mcp.tool() def get_recent_results(args: RecentResultsArgs) -> Dict[str, Any]: """ Get tenders with results from recent days Find completed tenders with published results for market analysis and trend monitoring. """ try: results = api_client.get_recent_results(days=args.days) if isinstance(results, list): tender_list = results else: tender_list = results.get("results", results) return { "success": True, "count": len(tender_list), "days_back": args.days, "recent_results": tender_list, } except Exception as e: return {"success": False, "error": str(e), "days_back": args.days}
  • Pydantic model defining the input schema for the get_recent_results tool, with a 'days' parameter defaulting to 30.
    class RecentResultsArgs(BaseModel): """Arguments for recent results query""" days: int = Field(30, description="Number of days to look back for results")
  • Helper method in the IsraeliLandAPI client that implements the core logic for fetching recent results by searching tenders with has_results=True and date filter.
    def get_recent_results(self, days: int = 30) -> List[Dict[str, Any]]: """ Get tenders with results from the last N days Args: days: Number of days to look back Returns: List of tenders with recent results """ date_from = datetime.now() - timedelta(days=days) return self.search_tenders( has_results=True, submission_date_from=date_from, page_size=10000 )
  • Registration of all tools (including get_recent_results) via register_tools call during server initialization.
    # Register tools and resources register_tools(mcp, api_client) register_resources(mcp)
  • Registration function for tender tools where the @mcp.tool() decorators for get_recent_results and others are defined.
    def register_tender_tools(mcp, api_client): """Register tender-related tools"""

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/barvhaim/remy-mcp'

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