Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides building and pushing business metric aggregations on Honeydew entities via MCP tools, with SQL expression rules.
Use this skill ↓24% 28%+4 ptsof test cases passed
Passed 7 of 25 test cases with the skill, and 6 of 25 without it.
3 of 3 safety checks passed
Not used yet
Before creating metrics, ensure you are on the correct workspace and branch. Use get_session_workspace_and_branch to check the current session context. For development work, create a branch with create_workspace_branch (the session switches automatically). See the model-exploration skill for the full workspace/branch tool reference.
A Honeydew metric is a named, reusable aggregation anchored to an entity. Unlike a calculated attribute (which is per-row), a metric collapses multiple rows into a single value. Metrics are context-sensitive: they automatically respond to whatever filters and groupings the consuming BI tool or analyst applies.
Your job is to build an aggregation function that users can later group by.
If a user asks for a group by ("sum sales by category"), ignore the group. You're building the aggregation to sum sales by ANYTHING. The user will later use it in a query with their chosen dimensions.
Use a metric when:
Do not use a metric when the value is per-row (use a calculated attribute instead).
entity.count) if available,
or COUNT(entity.key_field) on a specific key column.entity.attribute_name) rather than repeating its SQL logic in the new metric expression.
This keeps definitions DRY and ensures changes propagate.Next to this one in the catalogue, plus more from the same author.