package_show
Retrieve metadata for specific datasets from the Israeli government's open data portal to identify available information and access details.
Instructions
Get metadata about one specific package (dataset).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- server.py:59-66 (handler)The package_show tool handler function, decorated with @mcp.tool(), fetches detailed metadata for a specific dataset (package) by its ID from the Data.gov.il CKAN API.@mcp.tool() async def package_show(ctx: Context, id: str): """Get metadata about one specific package (dataset).""" await ctx.info(f"Fetching metadata for package: {id}") params = {"id": id} response = requests.get(f"{BASE_URL}/action/package_show", params=params) response.raise_for_status() return response.json()
- server.py:59-59 (registration)The @mcp.tool() decorator registers the package_show function as an MCP tool.@mcp.tool()