honeycomb_dataset_get
Retrieve detailed information about a specific dataset by providing its unique slug using the MCP server tool designed for dataset queries.
Instructions
Get information about a specific dataset
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasetSlug | Yes | Dataset slug to retrieve |
Implementation Reference
- index.ts:652-661 (handler)Handler case in the tool request switch that extracts datasetSlug argument and invokes client.getDataset to retrieve dataset information.case "honeycomb_dataset_get": { const args = request.params.arguments as unknown as DatasetGetArgs; if (!args.datasetSlug) { throw new Error("datasetSlug is required"); } const response = await client.getDataset(args.datasetSlug); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
- index.ts:109-122 (schema)Tool definition object containing the name, description, and inputSchema for parameter validation (requires datasetSlug).const datasetGetTool: Tool = { name: "honeycomb_dataset_get", description: "Get information about a specific dataset. A Dataset represents a collection of related events that come from the same source, or are related to the same source.", inputSchema: { type: "object", properties: { datasetSlug: { type: "string", description: "The dataset slug.", }, }, required: ["datasetSlug"], }, };
- index.ts:786-787 (registration)Registration of the datasetGetTool in the tools array returned by ListToolsRequestHandler.datasetsListTool, datasetGetTool,
- index.ts:469-480 (helper)HoneycombClient.getDataset method: performs HTTP GET to /datasets/{slug} endpoint to fetch dataset details.async getDataset(slug: string): Promise<any> { const response = await fetch(`${this.baseUrl}/datasets/${slug}`, { method: "GET", headers: this.headers, }); if (!response.ok) { throw new Error(`Failed to get dataset: ${response.statusText}`); } return await response.json(); }