Skip to main content
Glama

Agent Shield

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

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.4/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: it defines scan scope (manifests plus up to 25 main source files), the exact detection categories, the return shape (A-F grade, capabilities, findings with file:line), billing behavior (0.01 USDC, 3 free calls/day, no charge on private/missing/busy repos). These are non-obvious operational facts an agent could not infer from the schema.

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?

Lead sentence is front-loaded with the scan scope and findings list, and the trailing sentences cover cost and return format without padding. The middle danger-catalog is a long comma run that is dense but every item is substantive, so it earns its length even if it could be itemized for scanability.

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?

With no output schema and no annotations, the description still tells the agent what comes back (grade, capabilities, file:line findings), what it costs, and when it is free, which is everything needed to decide to call it. Nothing material is left for the agent to discover by trial.

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%, and the schema already documents both the repo path formats and the optional x402 payment header. The description adds only the incidental fact that private or missing repos are not billed, which is useful but not parameter-syntax guidance; the baseline of 3 is appropriate.

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 ('Reads the repository's manifests and up to 25 main source files') and enumerates exactly what classes of risk it flags, including MCP tool-description poisoning. This distinguishes it from siblings like scan_text_for_injection and scan_mcp_server without needing to name them.

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 title establishes the decision context ('BEFORE installing it'), which is a clear when-to-use signal, and the description adds when-not-to-pay-relevant conditions (private, missing, or busy repos are not charged). It stops short of explicitly routing to an alternative sibling for narrower inputs such as a single MCP server or a raw text snippet.

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.