package_show
Retrieve detailed metadata for a specific dataset using the provided ID, facilitating targeted data access and analysis on the Data.gov.il platform.
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 handler function for the 'package_show' tool. It fetches metadata for a specific dataset by ID using the Data.gov.il 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()