Skip to main content
Glama

honeycomb_query_result_get

Retrieve specific query execution results by providing the dataset slug and query result ID in honeycomb-mcp-server for targeted data access.

Instructions

Get results of a specific query execution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
datasetSlugYesDataset slug the query result belongs to
queryResultIdYesQuery result ID to retrieve

Implementation Reference

  • MCP CallToolRequest handler case for 'honeycomb_query_result_get'. Extracts arguments (datasetSlug, queryResultId), calls HoneycombClient.getQueryResult, and returns JSON response.
    case "honeycomb_query_result_get": { const args = request.params .arguments as unknown as QueryResultGetArgs; if (!args.datasetSlug || !args.queryResultId) { throw new Error("datasetSlugとqueryResultIdが必要です"); } const response = await client.getQueryResult( args.datasetSlug, args.queryResultId ); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }
  • Tool definition object for 'honeycomb_query_result_get' including name, description, and inputSchema for validation (datasetSlug and queryResultId required).
    const queryResultGetTool: Tool = { name: "honeycomb_query_result_get", description: "Get query results for a previously executed query. The response body will be a JSON object with 'complete': true and the results populated once the query is complete.", inputSchema: { type: "object", properties: { datasetSlug: { type: "string", description: "The dataset slug or use `__all__` for endpoints that support environment-wide operations.", }, queryResultId: { type: "string", description: "The unique identifier (ID) of the query result.", }, }, required: ["datasetSlug", "queryResultId"], }, };
  • index.ts:791-792 (registration)
    Registration of the tool in the list returned by ListToolsRequest handler.
    queryResultCreateTool, queryResultGetTool,
  • HoneycombClient.getQueryResult method: Performs HTTP GET request to Honeycomb API endpoint /query_results/{datasetSlug}/{queryResultId} to fetch the query results, handles errors, returns JSON.
    async getQueryResult(datasetSlug: string, queryResultId: string): Promise<any> { const response = await fetch( `${this.baseUrl}/query_results/${datasetSlug}/${queryResultId}`, { method: "GET", headers: this.headers, } ); if (!response.ok) { const errorBody = await response.text(); console.error(`Query result error: Status=${response.status}, Body=${errorBody}`); throw new Error(`Failed to get query result: ${response.statusText}`); } return await response.json(); }
  • TypeScript interface defining the input arguments for the honeycomb_query_result_get tool.
    interface QueryResultGetArgs { datasetSlug: string; queryResultId: string; }

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/kajirita2002/honeycomb-mcp-server'

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