Skip to main content
Glama

Check a GitHub repository for security issues

scan_repo
DestructiveIdempotent

Use this when the person wants a public GitHub repository checked for leaked secrets, vulnerable or malicious dependencies and risky code. No code is run. 3 free checks a day per account, then $1 when the check finishes; a failed check costs nothing. Not for websites (scan_url) or private repositories.

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_url": "<repo_url>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "scan_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional branch name. Default: the repository's default branch.
languageNoThe language the person is writing in, as a BCP 47 tag such as "ru".
repo_urlYesA public GitHub repository, for example https://github.com/owner/repo
idempotency_keyYesA unique string naming this check. The same key collects the result or retries the check, and is charged once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"A unique string naming this check. Reuse it to collect the result or to retry; the same key is never charged twice."New value: +"A unique string naming this check. The same key collects the result or retries the check, and is charged once."
  2. Changed1 schema field changed
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "The language the person is writing in, as a BCP 47 tag such as \"ru\".",
      +  "maxLength": 35,
      +  "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that no code is executed, that there are 3 free checks per account per day, that $1 is charged only when a check finishes, and that failed checks cost nothing — essential cost/side-effect context for a tool annotated destructiveHint=true. Remaining gap: it never says whether the check is synchronous or that results come back later via job_status, nor how long a check typically takes.

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?

Four short sentences, front-loaded with the trigger and the scope, then the no-execution guarantee and the pricing rule, then the exclusions. No filler and every sentence carries decision-relevant information.

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?

With no output schema, the description should signal what the caller gets back and how; it covers billing and idempotent result collection only implicitly. The presence of a job_status sibling suggests an asynchronous flow that the description never mentions, which is the one meaningful hole in an otherwise complete definition.

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 description coverage is 100%, including branch defaulting, the BCP 47 language hint, and the idempotency_key charging semantics, so the schema carries the parameter burden. The description itself adds nothing parameter-specific beyond implying repo_url must be public, which the schema already states.

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 (a public GitHub repository checked) and enumerates exactly what is inspected: leaked secrets, vulnerable or malicious dependencies, risky code. It also marks the boundary against scan_url, so an agent can separate it from the web-scanning sibling without opening schemas.

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?

Opens with an explicit trigger ("Use this when the person wants a public GitHub repository checked...") and closes with two exclusions: not for websites, use scan_url; not for private repositories. Both when-to-use and when-not-to-use are spelled out.

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.