Skip to main content
Glama
knockfirst
by Dio77799

check_repo

Check a GitHub repo's AI contribution policy and self-running code risks before cloning or sending a PR. Returns read-only JSON verdicts and quoted policy links.

Instructions

Before opening, cloning or sending a PR to a GitHub repo, check two things: whether its maintainers welcome AI assisted contributions (banned, disclose, allowed, unknown, with the exact sentence and link) and whether anything in it runs by itself when opened by an agent or IDE (danger, caution, clear). Read only: nothing is cloned or executed.

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

Input Schema

NameRequiredDescriptionDefault
refNooptional branch, tag or commit
repoYesowner/repo or a github.com URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With zero annotations, the description carries the full burden and does real work: "Read only: nothing is cloned or executed" pre-empts the natural fear that inspecting a repo executes its contents, and the parenthetical value sets disclose the shape of the result. It still omits authentication requirements, rate limits, and behavior on private or nonexistent repos, which matter for a network-backed check.

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?

Two sentences, front-loaded with the trigger, then the two checks with their value domains, then the safety guarantee. No filler, and the dense parentheticals carry genuine information rather than padding.

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

Completeness4/5

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

There is no output schema, so the description must explain return values, and it does so by naming the verdict categories and noting the exact sentence and link are returned. Missing edge-case behavior for auth failures, private repos, or missing repositories keeps it just short of complete.

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 `repo` (owner/repo or URL) and the optional `ref` are already documented in the schema, and the description adds no syntax, format, or defaulting detail beyond that. Baseline 3 applies since the schema does the heavy lifting.

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 (check) against a specific resource (a GitHub repo) and enumerates the two exact things checked, including the possible verdict values (banned/disclose/allowed/unknown and danger/caution/clear). An agent immediately knows what it gets back; no siblings exist to confuse it with.

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?

"Before opening, cloning or sending a PR to a GitHub repo" gives an explicit trigger condition, which is strong when-to-use guidance. It stops short of stating any when-not-to-use condition or alternative, but with no sibling tools there is nothing to route against.

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

Deploy Server

Other Tools