Skip to main content
Glama

hub_reflect

Summarize a project's worker reflections by role—turn outcomes, obstacles, idle counts, recurring rules, and verdicts—or use promote to list law candidates and laws; read-only.

Instructions

The reflection digest of one project, what a head reads instead of its workers' reports in full: per role, how turns ended (result) and what got in the way (obstacle class), and how many found no work (idle: result no with obstacle none, never an obstacle); per class, the count and the latest 3 facts; the rules proposed more than once; how many rules held the fragment's example (exampleRule, never counted as a rule); the verdicts heads and the orchestrator gave. A rule's other wordings count with it (variants): two wordings sharing 40% of their words are one rule. Reads the report's reflect field and a REFLECT block in its text alike. Every key, and every value of each list, is present with zeros, so the shape never depends on the data. With promote, the candidates for the project's laws instead: a rule said by 2 roles in the window, not a law yet, each with the id hub_law rules on; and the laws the project has. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "hub_reflect"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoreturn everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`.
levelNoonly one level: turn (every role's own turn), head (a head's over its workers), fleet (the orchestrator's over the heads); default all
sinceNothe window: a duration (7d, 12h, 30m) or a time (2026-10-01, 2026-10-01 14:00); default 7d
projectYesthe project; its aliases count as it
promoteNothe candidates for the project's laws and its laws, not the digest

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.88

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does substantial work: it declares read-only behavior, discloses default trimming with leftovers reported in `truncated`, guarantees zero-filled keys so the shape is data-independent, and specifies non-obvious semantics like variant merging at 40% word overlap and exampleRule never counting as a rule. It also notes dual sources (the report's reflect field and a REFLECT block in text). What it omits is permission/auth requirements and any failure modes, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core resource, which is good, but the body is a long, clause-chained block that mixes output shape, counting rules, source resolution, and the promote variant without paragraph or list structure. Dense parentheticals like '(idle: result no with obstacle none, never an obstacle)' cost parsing effort. Little is strictly wasted, but the structure impedes quick comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex aggregation tool with no output schema, the description compensates well by describing the returned sections (per role, per class, repeated rules, exampleRule count, verdicts) and the truncation contract. The promote mode's return contents are also spelled out. Missing pieces are the enumeration of obstacle classes and what a 'verdict' contains, which an agent may still need to interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema for `promote`: candidates are rules said by 2 roles in the window, not yet laws, each carrying the id that hub_law operates on. It also clarifies that `variants` merge into a single rule, which affects how counts should be read. Other parameters (full, level, since) are only echoed at schema level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first clause names a specific resource and scope: 'the reflection digest of one project', and the following text enumerates what it aggregates (turn outcomes per role, obstacle classes, idle counts, rule candidates, verdicts). It is clearly not hub_report or hub_rules, though it never states the distinction from those siblings explicitly. The purpose is unmistakable despite the dense phrasing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the audience framing ('what a head reads instead of its workers' reports in full') and through the `promote` switch that redirects to law candidates 'not a law yet'. It never explicitly says when to prefer hub_reflect over hub_report, hub_rules, or hub_law, nor does it state exclusions. The agent must infer the selection rule from context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.