Skip to main content
Glama

Repository status

get_repo
Read-onlyIdempotent

Fetches full status for one repository by id, name, path or name prefix: branch, upstream ahead/behind, worktrees, stashes, recent activity and last commit, with optional drill-in detail and GitHub PR and issue data.

Instructions

Full status of ONE repository, found by id, name, path or a unique prefix of its name — branch, upstream ahead/behind, worktree counts, stashes, recent activity, last commit, plus a local drill-in detail (recent commits, per-branch sync, changed files, stash list). Adds remote_detail (open PRs, contributors, open issues, latest release) when the repo has a GitHub remote and a token. Use when the user names a single repo; for several repos call list_repos with a selector instead.

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": {
      "repo": "<repo>"
    },
    "name": "get_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepo id, name/alias, path, or a unique prefix of a name (an exact match wins; a name several repos share is an error listing their paths).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.21
    • changedInput schema / properties / repo / description
      Previous value: -"Repo id, name/alias, or path."New value: +"Repo id, name/alias, path, or a unique prefix of a name (an exact match wins; a name several repos share is an error listing their paths)."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds valuable context beyond them: the local `detail` drill-in, and the conditional dependency that remote_detail requires a GitHub remote plus a token. It does not describe cost/latency or error behavior in the description (ambiguity handling lives in the schema), so it stops just 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.

Conciseness4/5

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

Front-loaded with scope and resource, then a tight enumeration of returned data types and the sibling alternative. Dense but every clause carries information; the embedded field list is long but justified since there is no output schema.

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, so the description carries the burden of explaining return values, and it does so thoroughly: branch/upstream, worktree counts, stashes, activity, last commit, drill-in detail, and token-gated remote extras. Nothing an agent needs to invoke or interpret the call is missing.

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 coverage is 100%, so the lookup semantics (id, name, path, unique prefix; exact match wins; ambiguous names error) are already documented in the parameter description. The description restates the same resolution modes without adding format or edge-case detail the schema lacks, so baseline 3 applies.

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 specific verb and resource ('Full status of ONE repository'), enumerates the fields returned, and distinguishes itself from list_repos by scope. The agent can tell from the description alone whether this is the right tool for a single-repo lookup.

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?

Explicitly says 'Use when the user names a single repo' and names the alternative ('for several repos call list_repos with a selector instead'). Both the selection condition and the exclusion are stated outright.

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