Skip to main content
Glama

Agent Shield

Full code safety report for a GitHub repo: risky code + poisoned MCP tools + known vulnerable dependencies, with one overall grade and a to-do list

code_safety_report

Runs the GitHub code scan (install scripts, secret stealing, env dumps, webhooks, hidden/encoded code, poisoned MCP tool descriptions) AND finds up to 3 lockfiles in the repo (npm, yarn, pnpm, pip, poetry, uv, Go, Cargo, Composer, Bundler) and checks every dependency version against OSV.dev for known CVEs and typosquats. Returns code grade, dependency grade, overall grade A-F, safe_to_install and an action list. Not charged if the repo is private or missing. Price 0.05 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": "code_safety_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesowner/name or https://github.com/owner/name
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

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it states the 3-lockfile cap, the ten ecosystems inspected, the external data source (OSV.dev), the CVE/typosquat check, the returned grade fields, the price (0.05 USDC), the free tier, and that private/missing repos are not charged. Gaps remain around runtime, rate limits, and auth requirements for private repos.

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?

The scan scope is front-loaded in the first sentence and the return values and pricing follow in order of decreasing importance. The first sentence is long and clause-heavy, but every clause carries distinct information about what is inspected.

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?

There is no output schema, and the description compensates by naming the returned artifacts: code grade, dependency grade, overall A-F grade, safe_to_install, and an action list. Combined with the billing and no-charge conditions, an agent has enough to decide and call correctly.

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 (repo, payment) are already documented in the schema, including the accepted owner/name or full-URL format. The description adds nothing beyond that, which is acceptable given the schema does the work, but it earns no extra credit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — it runs a GitHub code scan covering install scripts, secrets, env dumps, webhooks, encoded code and poisoned MCP tool descriptions, then resolves lockfiles and checks dependencies against OSV.dev. It is highly specific about scope and output, but never names a sibling (e.g. scan_github_repo, safety_pass) to distinguish itself from alternatives in the catalog.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the tool is the 'full' combined report, which suggests it is the comprehensive option versus narrower scans, but no explicit when-to-use or when-not-to-use rule is given. The billing caveat ('not charged if the repo is private or missing') and free daily quota are useful but are cost guidance, not selection guidance.

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.