Skip to main content
Glama
Penthera: Cyber Security Agent

Penthera: Cyber Security Agent

Audit AI agent config

audit_ai_tooling
Read-onlyIdempotent

Audit AI agent setup—skills, MCP servers, hooks, permissions, plugins, and rule files—to detect hidden instructions, curl-pipe-shell, unpinned packages, inline secrets, and wildcard permissions.

Instructions

Audit the project's AI agent setup: skills, MCP servers, hooks, permissions, plugins and rule files, for hidden instructions, curl-pipe-shell, unpinned MCP packages, inline secrets and wildcard permissions. Grades A to F, or gives no grade when it finds no agent config. Offline, deterministic, read-only. Use it for the agent setup (.claude, .cursor, .mcp.json, skills, hooks); scan_repo covers the app's code. 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. The brief carries the grade.

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

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

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

Annotations already cover the safety profile (readOnly, idempotent, not destructive, closed-world), so 'read-only' is redundant, but the description adds genuinely new traits: offline, deterministic, graded A–F with an explicit no-grade outcome when no agent config exists, and truncation signaled by a 'truncated' flag. It does not state cost, runtime, or permissions needed to read the config, which keeps it off a 5.

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 what it audits and what it looks for, then the sibling contrast, then return shape. Every sentence carries information, though the middle 'Grades A to F...' and the return-order sentence are densely packed clauses that read more like a spec dump than a crisp brief.

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 compensates fully by describing the return order (brief first: verdict, act on, check first, likely noise, not checked; then findings by severity with rule, severity, confidence, file:line), the truncation flag, and where the grade lives. For a two-parameter read-only scanner this is complete enough to call and interpret 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% and both parameters are fully self-documented with defaults and bounds, so the baseline applies. The description only adds one genuinely new semantic: 'the brief always counts all of them', clarifying that max_findings truncates findings but not the brief totals. That is useful but narrow, and path scoping merely restates the schema.

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 (Audit) and a precisely enumerated resource (skills, MCP servers, hooks, permissions, plugins, rule files) plus the exact defect classes it hunts (hidden instructions, curl-pipe-shell, unpinned packages, inline secrets, wildcard permissions). It also names the sibling it is not: 'scan_repo covers the app's code'. An agent can route correctly without opening either schema.

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?

Gives an explicit use condition tied to concrete config paths (.claude, .cursor, .mcp.json, skills, hooks) and explicitly assigns the adjacent scope to scan_repo. This is when-to-use plus when-to-use-the-alternative, not merely an implied context.

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