resource_search
Search Israeli government datasets on Data.gov.il by field values to find relevant public data resources for research or analysis.
Instructions
Find resources based on their field values.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| order_by | No | ||
| offset | No | ||
| limit | No |
Implementation Reference
- server.py:89-102 (handler)The main handler function for the 'resource_search' tool, decorated with @mcp.tool() for registration. It searches resources via the Data.gov.il API by constructing parameters and making a GET request.@mcp.tool() async def resource_search(ctx: Context, query: str = "", order_by: str = "", offset: int = 0, limit: int = 100): """Find resources based on their field values.""" await ctx.info("Searching for resources...") params = { "query": query, "order_by": order_by, "offset": offset, "limit": limit } response = requests.get(f"{BASE_URL}/action/resource_search", params=params) response.raise_for_status() return response.json()