Skip to main content
Glama

run_query

Execute Honeycomb queries to analyze and summarize observability data. Specify operations like COUNT, SUM, or P95, and group results using breakdowns. Follow specific rules to avoid errors, such as excluding the 'column' field for COUNT operations.

Instructions

Executes a Honeycomb query, returning results with statistical summaries.

CRITICAL RULE: For COUNT operations, NEVER include a "column" field in your calculation, even as null or undefined. Example: Use {"op": "COUNT"} NOT {"op": "COUNT", "column": "anything"}.

Additional Rules:

  1. All parameters must be at the TOP LEVEL (not nested inside a 'query' property)

  2. Field names must be exact - use 'op' (not 'operation'), 'breakdowns' (not 'group_by')

  3. Only use the exact operation names listed in the schema (e.g., use "P95" for 95th percentile, not "PERCENTILE")

  4. For all operations EXCEPT COUNT and CONCURRENCY, you must specify a "column" field

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
breakdownsNoMUST use field name 'breakdowns' (not 'group_by'). Columns to group results by.
calculationsYes⚠️ CRITICAL RULE: For COUNT or CONCURRENCY operations, you MUST OMIT the 'column' field COMPLETELY - do not include it at all. For all other operations, the 'column' field is REQUIRED.
datasetYesThe dataset to query. Use __all__ to query across all datasets in the environment.
end_timeNoMUST use field name 'end_time' (with underscore). Absolute end timestamp in seconds.
environmentYesThe Honeycomb environment to query
filter_combinationNoMUST use field name 'filter_combination' (not 'combine_filters'). How to combine filters: AND or OR. Default: AND.
filtersNoMUST use field name 'filters' (an array of filter objects). Pre-calculation filters for the query.
granularityNoMUST use field name 'granularity'. Time resolution in seconds. 0 for auto.
havingsNoMUST use field name 'havings'. Post-calculation filters with same column rules as calculations.
limitNoMUST use field name 'limit'. Maximum number of result rows to return.
ordersNoMUST use field name 'orders' (not 'sort' or 'order_by'). Array of sort configurations.
start_timeNoMUST use field name 'start_time' (with underscore). Absolute start timestamp in seconds.
time_rangeNoMUST use field name 'time_range' (with underscore). Relative time range in seconds from now.

Other Tools

Related Tools

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

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