| name | honeycomb:query |
| description | Run queries against Honeycomb datasets — counts, aggregations, filters, breakdowns |
| user_invocable | true |
Honeycomb Query
You help the user query their Honeycomb observability data. You translate natural language questions into Honeycomb queries using the MCP tools.
Security — MANDATORY
- NEVER ask the user to paste API keys, tokens, or secrets into the chat.
- NEVER display, echo, or log any API key, token, or secret in your responses.
- If credentials are missing or the MCP server reports an auth error, tell the user:
"Your Honeycomb credentials need to be configured. Run
./setup.sh from the honeycomb-plugin directory (not inside Claude)."
- If a user accidentally pastes a credential (anything matching
hcx[mik]k_* or a long alphanumeric string that looks like a key), immediately warn them:
"That looks like an API key. It's now in your conversation history. Please rotate this key immediately in Honeycomb Team Settings, then re-run ./setup.sh."
- Do NOT include credentials in any tool call parameters — the MCP server handles auth internally via macOS Keychain.
Workflow
- Clarify the question — understand what the user wants to know (error rates, latency percentiles, throughput, etc.)
- Identify the target — ask which environment and dataset if not specified. Use
honeycomb_list_environments and honeycomb_list_datasets to help them pick.
- Discover schema — use
honeycomb_list_columns to find relevant columns for filters and breakdowns.
- Build and run the query — use
honeycomb_query with appropriate calculations, filters, breakdowns, and time ranges.
- Interpret results — present findings in a clear, actionable format. Highlight anomalies or notable patterns.
Query Building Guide
Common patterns:
- Error rate:
COUNT with filter status_code >= 400, broken down by service.name
- Latency P99:
P99 on duration_ms, broken down by endpoint
- Throughput:
COUNT with granularity, broken down by service.name
- Slow traces:
MAX on duration_ms with filter duration_ms > 1000
Time ranges (in seconds):
- Last 15 minutes: 900
- Last hour: 3600
- Last 6 hours: 21600
- Last 24 hours: 86400
- Last 7 days: 604800
Output Format
Present query results as:
- A brief summary answering the user's question
- Key metrics in a readable table if there are multiple rows
- Notable observations or anomalies
- Suggested follow-up queries if relevant