Skip to main content
Glama

What to do next

overview
Read-onlyIdempotent

Get a prioritized briefing of what to do next across your git fleet: urgent actions, at-risk repos, key figures, and open work in one call.

Instructions

The briefing: what to DO NEXT across the fleet and why, in one call. Returns headline, actions (most urgent first — each with a title, the reason, the registry verb that carries it out when there is one, and the ids of the repos it applies to), figures (the key numbers: work not backed up, stashes, uncommitted files, stale fetches, open tasks, commits this week, clean repos), repos (the 20 most urgent repos that have a reason, each with its reasons in plain words and at_risk marking where local work could be lost; repos_omitted counts the rest), focus (the focus board), work (open tasks per repo) and commits (last 7 days per repo). The same model the terminal UI, the web dashboard and the editor extension render, so what you report matches what the user sees. Use it for "what should I do", "brief me", "what's at risk", or before planning a day; use list_repos when you need raw per-repo fields. To act on an action, pass its repos as {"ids": [...]} to the named verb. An optional selector briefs on just the repos it picks (e.g. {"group": "payments"} or {"name": "api*"}), as cohors overview --select does: actions, figures and lines then cover only those. Omit it for the whole fleet. detail: "full" returns every repo's line, clean ones too, each with its counts, last commit and weekly activity.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNobrief (default) keeps the answer small; full returns every field and is several times larger.
selectorNoPredicate that selects repos across the fleet; set fields to AND them, omit a field for no constraint (ADR-024). Scope: all (bool — the whole fleet), ids[str], name (glob, e.g. "pay*"), path_glob (* stays within one path segment, ** crosses /), root, group (a config-defined cluster name, e.g. "payments"). Local state: dirty, ahead (alias unpushed), behind, diverged, no_upstream, unpublished (a branch never pushed although the repo has a remote), stale_fetch (remote not fetched for over 14 days), has_stash, worktree_work (a linked worktree holds uncommitted files or commits never pushed), detached, conflicted, in_operation (merge/rebase/… mid-flight), error, branch (glob like name, e.g. "feat/*"; an exact name matches itself), attention ("any"|"notice"|"warn"|"risk"). Remote (needs a GitHub token): ci ("passing"|"failing"|"pending"|"none"), min_prs (int). Combine: any_of[selector] (OR), not (selector). The empty selector {} matches NOTHING by design — pass {"all": true} for the whole fleet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.9.2
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "brief (default) keeps the answer small; full returns every field and is several times larger.",
      +  "enum": [
      +    "brief",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / selector / description
      Previous value: -"Predicate that selects repos across the fleet; set fields to AND them, omit a field for no constraint (ADR-024). Scope: all (bool — the whole fleet), ids[str], name (glob, e.g. \"pay*\"), path_glob (* stays within one path segment, ** crosses /), root, group (a config-defined cluster name, e.g. \"payments\"). Local state: dirty, ahead (alias unpushed), behind, diverged, no_upstream, unpublished (a branch never pushed although the repo has a remote), stale_fetch (remote not fetched for over 14 days), has_stash, detached, conflicted, in_operation (merge/rebase/… mid-flight), error, branch (glob like name, e.g. \"feat/*\"; an exact name matches itself), attention (\"any\"|\"notice\"|\"warn\"|\"risk\"). Remote (needs a GitHub token): ci (\"passing\"|\"failing\"|\"pending\"|\"none\"), min_prs (int). Combine: any_of[selector] (OR), not (selector). The empty selector {} matches NOTHING by design — pass {\"all\": true} for the whole fleet."New value: +"Predicate that selects repos across the fleet; set fields to AND them, omit a field for no constraint (ADR-024). Scope: all (bool — the whole fleet), ids[str], name (glob, e.g. \"pay*\"), path_glob (* stays within one path segment, ** crosses /), root, group (a config-defined cluster name, e.g. \"payments\"). Local state: dirty, ahead (alias unpushed), behind, diverged, no_upstream, unpublished (a branch never pushed although the repo has a remote), stale_fetch (remote not fetched for over 14 days), has_stash, worktree_work (a linked worktree holds uncommitted files or commits never pushed), detached, conflicted, in_operation (merge/rebase/… mid-flight), error, branch (glob like name, e.g. \"feat/*\"; an exact name matches itself), attention (\"any\"|\"notice\"|\"warn\"|\"risk\"). Remote (needs a GitHub token): ci (\"passing\"|\"failing\"|\"pending\"|\"none\"), min_prs (int). Combine: any_of[selector] (OR), not (selector). The empty selector {} matches NOTHING by design — pass {\"all\": true} for the whole fleet."
  2. Changed1 schema field changedv0.8.21
    • addedInput schema / properties / selector
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Predicate that selects repos across the fleet; set fields to AND them, omit a field for no constraint (ADR-024). Scope: all (bool — the whole fleet), ids[str], name (glob, e.g. \"pay*\"), path_glob (* stays within one path segment, ** crosses /), root, group (a config-defined cluster name, e.g. \"payments\"). Local state: dirty, ahead (alias unpushed), behind, diverged, no_upstream, unpublished (a branch never pushed although the repo has a remote), stale_fetch (remote not fetched for over 14 days), has_stash, detached, conflicted, in_operation (merge/rebase/… mid-flight), error, branch (glob like name, e.g. \"feat/*\"; an exact name matches itself), attention (\"any\"|\"notice\"|\"warn\"|\"risk\"). Remote (needs a GitHub token): ci (\"passing\"|\"failing\"|\"pending\"|\"none\"), min_prs (int). Combine: any_of[selector] (OR), not (selector). The empty selector {} matches NOTHING by design — pass {\"all\": true} for the whole fleet.",
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the read-only/idempotent annotations by disclosing the return structure, that the output matches what the terminal UI, web dashboard, and editor extension render, that actions are ordered most-urgent-first, that repos are capped at 20 with repos_omitted counting the rest, and that detail:"full" is several times larger. The only missing piece is any guidance on cost/pagination or how to branch from action to verb beyond the {ids:[...]} handoff, so it stops just short of full behavioral disclosure.

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

Conciseness4/5

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

Front-loaded with the core statement and organized around the returned fields, so the agent can skim. It is a dense run-on paragraph, though, and a few clauses (the figures enumeration, restating selector examples) could be trimmed without losing meaning.

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

Completeness5/5

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

No output schema exists, and the description compensates by enumerating every top-level return field with its contents and ordering. Combined with the selector scoping rules and the empty-selector {} gotcha (covered by the schema), an agent has everything needed to call this correctly on the first try.

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; the description adds real semantics by explaining that a selector scopes actions, figures, and lines to the selected repos and that omitting it means the whole fleet. It repeats the selector examples already present in the schema ({"group":"payments"}, {"name":"api*"}) and adds the useful note that detail:"full" includes clean repos with counts, last commit and weekly activity.

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

Purpose5/5

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

States a concrete deliverable – a prioritized briefing of what to do next across the fleet – and names the sibling it is not ("use list_repos when you need raw per-repo fields"). The response fields listed (headline, actions, figures, repos, focus, work, commits) make the tool's shape unmistakable.

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

Usage Guidelines5/5

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

Gives explicit trigger phrases ("what should I do", "brief me", "what's at risk"), a timing cue (before planning a day), and an exclusion with the alternative tool for raw per-repo data. It also explains the selector/default tradeoff: omit for the whole fleet, supply to scope.

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