Skip to main content
Glama
Kavach MCP Server

Kavach MCP Server

by VAMFI

kavach_audit_agent

Scans MCP JSON configs and AI skill or instruction markdown files for secrets, unpinned runners, and prompt-injection hazards, returning findings to fix agent configuration risks.

Instructions

Audit MCP JSON configs and AI skill/instruction markdown files in a local workspace for secrets, unpinned runners, and prompt-injection hazards.

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": {
      "target": "<target>"
    },
    "name": "kavach_audit_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
max_findingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the hazard categories (secrets, unpinned runners, prompt-injection) and the file types scanned, which is real substance. However it never states that the operation is read-only, whether findings are capped/truncated, what the response looks like, or what permissions are needed to read the workspace.

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?

A single well-formed sentence that front-loads the verb and resources with zero padding or redundancy. Nothing in it fails to earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an unannotated scan tool with an undocumented two-parameter schema and no output schema, the definition is too thin. It omits parameter meaning, the truncation behavior implied by max_findings, read-only/safety expectations, and any alternative-tool routing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should compensate for both parameters and does not. 'Local workspace' loosely hints at what 'target' might be (path vs workspace name vs glob is unstated), and 'max_findings' — including the fact that results may be silently capped at 100 — is never explained.

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?

States a specific verb (Audit) plus the exact resources scanned (MCP JSON configs and AI skill/instruction markdown files in a local workspace) and the three hazard classes checked for. It is clear apart from generic sibling names, but gives no hint of how it differs from kavach_policy_check or kavach_doctor, which plausibly overlap.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites (workspace path requirements, local-only scope), and no exclusions versus the sibling scan/check tools. The agent must infer routing from the name alone.

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