Skip to main content
Glama

Agent Toolkit (all-in-one)

Scan a GitHub repository (MCP server, agent tool or package) BEFORE installing it: risky install scripts, secret stealing, hidden code, poisoned tool descriptions

scan_github_repo

[Agent Shield] Reads the repository's manifests and up to 25 main source files and flags: install scripts that download or run code, reading SSH keys/.env/credential files, dumping all environment variables, sending data to webhooks or paste sites, hard-coded IPs, eval of decoded code, large encoded blobs, recursive deletes, and MCP tool descriptions with prompt injection or tool poisoning. Adds repo age, stars, license and archive status. Returns grade A-F, capabilities and findings with file:line. Not charged if the repo is private, missing or GitHub is busy. Price 0.01 USDC per call; first 3 calls per day free.

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

Input Schema

NameRequiredDescriptionDefault
repoYesowner/name or https://github.com/owner/name (optionally /tree/branch)
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses the inspection scope (manifests + up to 25 source files), the exact risk categories checked, the return shape (grade A-F, capabilities, findings with file:line), and the billing model (0.01 USDC per call, first 3 daily free, no charge for private/missing repos or GitHub outages). That billing-on-failure clause is the kind of context annotations could never supply.

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?

Purpose and 'before installing' framing are front-loaded, followed by the risk list, then outputs, then billing. The enumeration is long but each clause is concrete; the only mild redundancy is restating prompt injection/tool poisoning, which already appears in the title.

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, and the description fully compensates by describing the return payload (grade, capabilities, findings with file:line). Scope limits, cost, free tier, and no-charge failure conditions are all covered, leaving nothing an agent needs in order to call this correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning to the payment parameter by naming the price and the free-daily-quota that determines when x402 payment is required. It also clarifies failure-mode behavior tied to the repo argument (private/missing repos are not charged), which the schema does not convey.

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 definition pairs a specific verb (reads/scans) with a precise resource (a GitHub repository's manifests and up to 25 main source files) and enumerates exactly what it flags. The parenthetical '(MCP server, agent tool or package)' plus the explicit 'BEFORE installing it' scoping separate it from siblings like scan_mcp_server or check_package.

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?

The trigger condition is stated clearly: run this before installing a repo-sourced MCP server, agent tool, or package. It stops short of naming an alternative tool or stating when-not to use it (e.g., versus scan_mcp_server for already-hosted servers), so an agent must infer the boundary from the sibling names alone.

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.