Skip to main content
Glama
Penthera: Cyber Security Agent

Penthera: Cyber Security Agent

Scan a repository

scan_repo
Read-onlyIdempotent

Scans a local project offline and read-only for hardcoded secrets, code-execution sinks, API routes, trust boundaries, vulnerable runtimes, and header, cookie, CORS and rate-limit settings, returning a prioritized brief.

Instructions

White-box scan of a local project folder: hardcoded secrets, code-execution sinks, API routes and trust boundaries, runtime versions with known advisories, and security headers, cookie flags, CORS and login rate limits as the code sets them. Offline and read-only. Use it first on a project. For third-party packages use check_dependencies, for AI agent config audit_ai_tooling, for a running app scan_url; pass any finding's rule to explain_finding. Returns the brief first (verdict, act on, check first, likely noise, not checked), then findings most severe first with rule, severity, confidence and file:line evidence; truncated says if more were left out.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scan_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoProject folder to scan, relative to the workspace root or absolute inside it; nothing outside the workspace is read. Default: the workspace root.
max_findingsNoHow many findings to return, most severe first (default 50). The brief always counts all of them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.5.0
    • changedInput schema / properties / max_findings / description
      Previous value: -"How many findings to return, most severe first (default 50)."New value: +"How many findings to return, most severe first (default 50). The brief always counts all of them."
    • changedInput schema / properties / path / description
      Previous value: -"Project folder to scan, relative to the workspace root or absolute inside it. Default: the workspace root."New value: +"Project folder to scan, relative to the workspace root or absolute inside it; nothing outside the workspace is read. Default: the workspace root."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, and the description reinforces 'Offline and read-only' plus adds substantial new behavior: the response is a brief first (verdict, act on, check first, likely noise, not checked) followed by findings ordered most-severe-first with rule, severity, confidence and file:line, plus a 'truncated' flag when results are cut off. With no output schema, this return-shape disclosure carries real weight and does not contradict the annotations.

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?

Front-loaded with the core action and scope, and every clause carries information. The middle-to-late section is dense run-on phrasing (semicolon-chained alternatives and return fields) that is harder to parse than necessary, but nothing is truly wasted.

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?

Covers what is scanned and what is explicitly 'not checked', that it is offline/read-only, the ordering and truncation of results, and routing to all four sibling tools. For a two-parameter read-only scanner with no output schema, an agent has everything needed to call it and interpret the result.

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% and both parameters are fully documented in the schema, so the baseline is 3. The description adds one useful clarification beyond the schema — that truncation is reported and that the brief always counts all findings — which helps the agent reason about max_findings, though it does not add path semantics.

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 ('White-box scan of a local project folder') and then enumerates the exact check categories: secrets, code-execution sinks, API routes/trust boundaries, runtime versions, headers/cookies/CORS/rate limits. It is clearly distinguishable from scan_url (running app) and check_dependencies (third-party packages) named in the same text.

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?

Explicit routing: 'Use it first on a project', then names each alternative and its condition (check_dependencies for packages, audit_ai_tooling for agent config, scan_url for a running app, explain_finding for a rule). Both when-to-use and when-to-use-something-else are covered.

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