get_tender_map_details
Retrieve geographic coordinates and mapping data for a specific land tender from the Israeli Land Authority MCP Server using the tender ID for location analysis and integration.
Instructions
Get geographic and mapping data for a specific tender
Returns location coordinates and map integration data for the specified tender.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes |
Implementation Reference
- MCP tool handler that implements the get_tender_map_details logic by calling the API client's get_tender_map_details method with the provided michraz_id.@mcp.tool() def get_tender_map_details(args: TenderDetailsArgs) -> Dict[str, Any]: """ Get geographic and mapping data for a specific tender Returns location coordinates and map integration data for the specified tender. """ try: map_details = api_client.get_tender_map_details(args.michraz_id) return { "success": True, "tender_id": args.michraz_id, "map_details": map_details, } except Exception as e: return {"success": False, "error": str(e), "tender_id": args.michraz_id}
- Pydantic input schema model for the tool requiring a single michraz_id integer parameter.class TenderDetailsArgs(BaseModel): """Arguments for tender details tools""" michraz_id: int = Field(..., description="The tender ID to get details for")
- API client helper method that performs the HTTP GET request to the Israeli Land Authority API endpoint for tender map details.def get_tender_map_details(self, michraz_id: int) -> Dict[str, Any]: """ Get geographic/mapping data for a tender Args: michraz_id: The tender ID to get map details for Returns: Dictionary containing map details """ self._rate_limit() try: response = self.session.get( f"{self.BASE_URL}/MichrazDetailsApi/GetMichrazMapaDetails", params={"michrazID": michraz_id}, timeout=30, ) response.raise_for_status() return response.json() except requests.exceptions.RequestException as e: raise Exception( f"Failed to get map details for tender ID {michraz_id}: {str(e)}" )
- src/remy_mcp/tools/__init__.py:9-12 (registration)Tool registration entry point that calls register_tender_tools, which defines and registers the get_tender_map_details tool using @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)
- src/remy_mcp/server.py:19-21 (registration)Server initialization that registers all tools including get_tender_map_details.# Register tools and resources register_tools(mcp, api_client) register_resources(mcp)