Skip to main content
Glama
aviveldan

Datagov Israel MCP

by aviveldan

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
NameRequiredDescriptionDefault
idYes

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()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aviveldan/datagov-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server