Skip to main content
Glama

get_dataset

Retrieve detailed information about a specific dataset from a Kafka connection, including fields, policies, permissions, and metadata for data management and exploration.

Instructions

Get a single dataset by connection/name.

Args: environment: The environment name. connection: The connection name (e.g., "kafka"). dataset: The dataset name.

Returns: Dataset details including fields, policies, permissions, and metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentYes
connectionYes
datasetYes

Implementation Reference

  • Handler function implementing the get_dataset tool logic. It makes an API request to retrieve dataset details.
    @mcp.tool() async def get_dataset(environment: str, connection: str, dataset: str) -> Dict[str, Any]: """ Get a single dataset by connection/name. Args: environment: The environment name. connection: The connection name (e.g., "kafka"). dataset: The dataset name. Returns: Dataset details including fields, policies, permissions, and metadata. """ endpoint = f"/api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{dataset}" return await api_client._make_request("GET", endpoint)
  • Registration of the topics module, which includes the get_dataset tool via the register_topics function call.
    register_topics(mcp)

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/stereosky/lenses-mcp'

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