honeycomb_datasets_list
Retrieve a comprehensive list of all datasets available in the environment using the MCP server for efficient data management and analysis.
Instructions
List all datasets in the environment
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "honeycomb_datasets_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:645-650 (handler)Handler implementation for the honeycomb_datasets_list tool. It calls the client's listDatasets method and returns the JSON-stringified response as tool output.
case "honeycomb_datasets_list": { const response = await client.listDatasets(); return { content: [{ type: "text", text: JSON.stringify(response) }], }; } - index.ts:100-107 (schema)Tool definition including name, description, and input schema (empty object since no parameters required).
const datasetsListTool: Tool = { name: "honeycomb_datasets_list", description: "List all datasets in the environment. 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: {}, }, }; - index.ts:782-798 (registration)Registration of all tools, including datasetsListTool, in the ListToolsRequest handler.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: [ authTool, datasetsListTool, datasetGetTool, columnsListTool, queryCreateTool, queryGetTool, queryResultCreateTool, queryResultGetTool, datasetDefinitionsListTool, boardsListTool, boardGetTool, ], }; }); - index.ts:456-467 (helper)HoneycombClient method that performs the actual API call to list datasets from https://api.honeycomb.io/1/datasets.
async listDatasets(): Promise<any> { const response = await fetch(`${this.baseUrl}/datasets`, { method: "GET", headers: this.headers, }); if (!response.ok) { throw new Error(`Failed to list datasets: ${response.statusText}`); } return await response.json(); }