Skip to main content
Glama

Get team context

get-team-context-tool
Read-onlyIdempotent

The team's org map: every repository the team ships to, how alive each one is (merged/open PR activity, top contributors, last merge), how each deploys to production, whether each is ready for a coding agent (a compact readiness flag with failing check keys — call get-repo-readiness-tool for the full checks and recommendations), how repos relate (taught links plus shared-contributor signals), and the team's confirmed working conventions. Everything is derived from live shipping data, so it never goes stale like a hand-maintained repo list in an agent rules file.

Pass repository (the repo you are working in) to get a FOCUSED map: that repository's details, the repositories most relevant to it with the reasons they matter, and the rest as names only — the right call at session start in a multi-repo org, instead of pulling the whole atlas. When the map is wrong or incomplete, teach it with link-repositories-tool. For size/review norms, use assess-change-fit-tool.

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": "get-team-context-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
repositoryNoThe repository you are working in, as owner/name (from `git remote get-url origin`) or a bare repo name. Binds the session to the owning team AND focuses the map: you get this repo, the repos most relevant to it (with reasons), and the rest as names only.
window_daysNoActivity window in days for PR/contributor signals. Defaults to 90, clamped to 7–180.

Output Schema

NameRequiredDescriptionDefault
teamYesTeam name.
focusNoPresent in focused mode: the repository the map is scoped to.
linksYesTaught repository relationships (from, to, relation, note) — recorded via link-repositories-tool.
conventionsYesConfirmed team/repo working conventions the team has taught its Coderbuds agents. Focused mode returns only team-wide and focus-repo conventions.
window_daysYesActivity window in days.
repositoriesYesActive repositories with activity level, top contributors, production deploy setup, and a compact agent-readiness verdict (ready flag + failing check keys; use get-repo-readiness-tool for detail). Full map: most active first. Focused map: the focus repository first, then the most relevant repositories, each with `relevance.reasons`.
relationshipsYesRepository pairs the same people ship to, with shared-contributor counts and co_changes (how often one author merged into both within 48h — "ships together in practice", which ranks a pair higher). Pairs taught as unrelated are suppressed.
other_repositoriesNoPresent in focused mode: the remaining active repositories, names only.
archived_repositoriesYesDecommissioned repositories, by name — they exist but no work should land there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / links / description
      Previous value: -"Taught repository relationships (from, to, relation, note) — recorded via link-repositories."New value: +"Taught repository relationships (from, to, relation, note) — recorded via link-repositories-tool."
    • changedOutput schema / properties / repositories / description
      Previous value: -"Active repositories with activity level, top contributors, production deploy setup, and a compact agent-readiness verdict (ready flag + failing check keys; use get-repo-readiness for detail). Full map: most active first. Focused map: the focus repository first, then the most relevant repositories, each with `relevance.reasons`."New value: +"Active repositories with activity level, top contributors, production deploy setup, and a compact agent-readiness verdict (ready flag + failing check keys; use get-repo-readiness-tool for detail). Full map: most active first. Focused map: the focus repository first, then the most relevant repositories, each with `relevance.reasons`."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description adds real context beyond them: the data is derived from live shipping data and does not go stale, the readiness signal is deliberately compact with failing check keys, and the unfocused call returns the whole atlas. It stops short of noting cost/latency differences between the focused and full call, which would matter for an agent deciding which mode to request.

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?

Structure is strong: what the map contains first, then the focused-mode guidance, then sibling routing. The clause contrasting live data with 'a hand-maintained repo list in an agent rules file' is persuasive framing rather than operational information, costing a little tightness in an otherwise efficient definition.

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?

An output schema exists, so the description need not document return values, and it still gives a useful preview of the map's sections. For a two-parameter read tool with full annotation coverage, an agent has everything needed to choose between the full and focused calls.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains both `repository` (owner/name or bare name, binds team and focuses map) and `window_days` (default 90, clamped 7-180). The description restates the focusing behavior rather than adding new semantics, and never mentions the activity window. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

The description names a specific resource (the team's org map) and enumerates exactly what it contains: repos, liveness signals, deploy paths, readiness flags, repo relationships, and confirmed conventions. It is clearly distinguishable from siblings like get-repo-readiness-tool and assess-change-fit-tool, which are named as narrower alternatives.

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?

It gives an explicit when-to-use rule for the `repository` parameter ('the right call at session start in a multi-repo org, instead of pulling the whole atlas') and routes three specific alternatives: get-repo-readiness-tool for full checks, link-repositories-tool for correcting the map, assess-change-fit-tool for size/review norms. Both the default and the focused mode are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources