Skip to main content
Glama

Is this GitHub repo safe to open?

repo_agent_check
Read-only

Before opening a public GitHub repository in an AI coding agent: scan instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, .cursor/rules, Copilot instructions), auto-executing hooks (.claude/settings.json, .gemini/settings.json, and Codex, Windsurf, or Continue hook configs), MCP configs, VS Code tasks (especially folderOpen), and package.json for supply-chain traps. Flags coercive "run this without asking" instructions, shell pipes, encoded commands, credential exfiltration, hidden payloads such as a _bz field, risky install scripts, and the same repo-local script wired through multiple autorun paths. A hook that only runs a local interpreter on a repository file is a notice. If the file tree is too large, known agent-config paths are fetched directly. Verdict: ok_to_open, caution, dont_open, not_found or unavailable, with red flags, notices and the files inspected. Read-only GitHub API: no clone, no install, no code execution. Optional ref (branch, tag or commit); defaults to the repository default branch.

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": "repo_agent_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional branch, tag or commit SHA. Defaults to the repository default branch.
repoYesGitHub repository as owner/name or https://github.com/owner/name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it declares the read-only GitHub API posture ('no clone, no install, no code execution'), the graceful-degradation path when the file tree is too large, the full verdict vocabulary, and the specific categories of danger it flags. The distinction between a 'notice' and a red flag is a genuine behavioral disclosure an agent could not infer from annotations alone.

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-loads the timing and purpose, then progressively details the scanned surfaces, threats, and verdicts. The long parenthetical file lists are dense but each item is informative; trimming is possible but little is wasted.

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, yet the description enumerates the verdict values and the returned fields (red flags, notices, files inspected), covering both input and output expectations. For a two-parameter read-only scanner, nothing an agent needs 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 both parameters are already documented. The description restates the optional ref and its default branch behavior, adding no format or constraint detail beyond the schema. 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 ('scan instruction files ... before opening a public GitHub repository in an AI coding agent') and enumerates exactly which artifacts are inspected. An agent can distinguish this from siblings like package_check or read_url without opening the schema.

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

Usage Guidelines4/5

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

Gives a clear trigger condition ('Before opening a public GitHub repository in an AI coding agent'), which tells the agent when to call it. It does not name exclusions or alternative tools for adjacent cases, but the sibling set is in a different domain so the gap is minor.

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