Skip to main content
Glama

Get Repository Context

repo_context
Read-onlyIdempotent

Reads baseline context for a GitHub repository—metadata, README, tech stack, open issues, and PRs—to understand the codebase before planning or creating work items.

Instructions

Read baseline context for a GitHub repository, including metadata, README summary, package.json summary, tech stack, common scripts, workflow file names, governance signals, agent instruction file summaries, open issues, and open PRs.

Use this tool at the start of any SDLC workflow to understand the codebase before planning or creating work items.

Args:

  • owner (string?): GitHub org or user. Defaults to GITHUB_OWNER env var.

  • repo (string?): Repository name. Defaults to GITHUB_REPO env var.

  • includeReadme (boolean): Include truncated README. Default: true.

  • includePackageJson (boolean): Include package.json summary, detected package manager, tech stack, and common scripts. Default: false.

  • includeWorkflows (boolean): Include .github/workflows/*.yml file names. Default: false.

  • includeAgentInstructions (boolean): Include summaries of AGENTS.md/CLAUDE.md if present. Default: false.

  • includeGovernance (boolean): Include whether a CODEOWNERS file exists. Default: false.

  • includePolicy (boolean): Include validated repository policy and provenance. Default: false.

  • includeOpenIssues (boolean): Include recent open issues. Default: false.

  • includeOpenPRs (boolean): Include open pull requests. Default: false.

  • issueLimit (number): Max open issues to fetch. Default: 20, max: 100.

  • prLimit (number): Max open PRs to fetch. Default: 20, max: 100.

  • maxReadmeChars (number): Max README characters before truncation. Default: 3000.

  • maxInstructionChars (number): Max characters per agent instruction file summary. Default: 1000.

Returns: Markdown summary of the repository context, plus structured content. Missing files (README, package.json, agent instructions) degrade gracefully rather than failing the whole call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoGitHub repo name. Falls back to GITHUB_REPO env var.
ownerNoGitHub owner (org or user). Falls back to GITHUB_OWNER env var.
prLimitNoMax number of open PRs to fetch when includeOpenPRs is true. Default: 20, max: 100.
issueLimitNoMax number of open issues to fetch when includeOpenIssues is true. Default: 20, max: 100.
includePolicyNoInclude the validated .agentic-sdlc.yml policy summary, rule IDs, digest, and source ref/SHA.
includeReadmeNoInclude a truncated README summary.
includeOpenPRsNoInclude a list of open pull requests (up to 20).
maxReadmeCharsNoMax README characters before truncation. Default: 3000.
includeWorkflowsNoInclude `.github/workflows/*.yml` file names (names only, not permissions -- use workflow_permissions_audit for that).
includeGovernanceNoInclude lightweight governance signals (currently: whether a CODEOWNERS file exists). For full branch protection details, use branch_protection_status.
includeOpenIssuesNoInclude a list of recent open issues (up to 20).
includePackageJsonNoInclude a package.json summary, detected package manager, tech stack, and common scripts.
maxInstructionCharsNoMax characters per agent instruction file summary before truncation. Default: 1000.
includeAgentInstructionsNoInclude summaries of agent instruction files (AGENTS.md, CLAUDE.md) if present at the repo root.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyNo
topicsYes
openPRsNo
scriptsNo
fullNameYes
languageYes
pushedAtYes
techStackNo
workflowsNo
governanceNo
openIssuesNo
visibilityYes
descriptionYes
policyDigestNo
policyErrorsNo
defaultBranchYes
policySourcesNo
readmeSummaryNo
packageManagerNo
policyWarningsNo
openIssuesCountYes
stargazersCountYes
agentInstructionsNo
appliedPolicyRulesNo
packageJsonSummaryNo
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint flags. The description adds valuable behavioral context: it notes that missing files degrade gracefully, and it describes the output format (Markdown summary plus structured content). This extra context enhances transparency beyond annotations, earning 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.

Conciseness5/5

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

The description is well-structured with a clear overview, usage directive, and a bulleted list of parameters. It is front-loaded with the main purpose, and every sentence adds value. Although it repeats some schema defaults, the repetition is minimal and serves to reinforce key information. The length is appropriate for a tool with 14 parameters.

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?

Given the tool's complexity (14 parameters, many optional) and the richness of available structured data (annotations, full schema), the description covers all necessary information: what it returns, graceful degradation, and the role of each parameter. It also references sibling tools for deeper dives. This is a complete and self-contained description, earning a 5.

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

Parameters5/5

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

Schema coverage is 100%, providing a baseline of 3. However, the description enriches each parameter with practical context, such as linking to sibling tools for more detail (e.g., includeWorkflows mentions 'use workflow_permissions_audit for that'), clarifying defaults, and explaining behavior. This goes well beyond the schema, justifying a score of 5.

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 clearly states the tool's purpose: 'Read baseline context for a GitHub repository' and enumerates all components. It distinguishes itself from siblings by recommending use at the start of SDLC workflows and explicitly referencing alternative tools for specific tasks (e.g., branch_protection_status for branch protection). This aligns with the high standard of a 5.

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?

The description provides explicit when-to-use guidance: 'Use this tool at the start of any SDLC workflow to understand the codebase before planning or creating work items.' Additionally, parameter descriptions advise when not to use certain features (e.g., 'workflow_permissions_audit for permission details'), offering clear alternatives. This fully meets the criteria for a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SakuraCianna/agentic-sdlc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server