get_active_tenders
Retrieve currently open land tenders from the Israeli Land Authority to identify bidding opportunities for land development projects.
Instructions
Get all currently active land tenders
Returns a list of tenders that are currently open for submissions, useful for finding current bidding opportunities.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_results | No |
Implementation Reference
- The main MCP tool handler for 'get_active_tenders', decorated with @mcp.tool(). It fetches active tenders via the API client, limits results, and returns a formatted dictionary response.@mcp.tool() def get_active_tenders(max_results: int = 100) -> Dict[str, Any]: """ Get all currently active land tenders Returns a list of tenders that are currently open for submissions, useful for finding current bidding opportunities. """ try: results = api_client.get_active_tenders() if isinstance(results, list): tender_list = results[:max_results] else: tender_list = results.get("results", results)[:max_results] return { "success": True, "count": len(tender_list), "active_tenders": tender_list, } except Exception as e: return {"success": False, "error": str(e)}
- Supporting API client method in IsraeliLandAPI that implements the core logic for retrieving active tenders by calling search_tenders with active_only=True.def get_active_tenders(self) -> List[Dict[str, Any]]: """ Get only active tenders Returns: List of active tenders """ return self.search_tenders(active_only=True, page_size=10000)
- src/remy_mcp/tools/__init__.py:9-12 (registration)Registration function that calls register_tender_tools(mcp, api_client), which defines and registers the get_active_tenders MCP tool via @mcp.tool() decorator.def register_tools(mcp, api_client): """Register all MCP tools""" register_tender_tools(mcp, api_client) register_settlement_tools(mcp, api_client)