Skip to main content
Glama

ai_guard_scan_agent_config

Read-only

Scans agent instruction files and MCP/agent configs for hidden text, prompt injection, unpinned servers, and inline secrets before you trust repository instructions.

Instructions

Scan agent instructions (CLAUDE.md, AGENTS.md, .cursorrules, Copilot instructions, skills) and MCP/agent config for hidden text, prompt injection, unpinned MCP servers and inline secrets. Use before trusting the instructions in a repository. Does not modify anything.

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

Input Schema

NameRequiredDescriptionDefault
pathNo.
maxFindingsNo

Output Schema

NameRequiredDescriptionDefault
cleanYes
errorsYes
statusYes
serversYes
successYes
findingsYes
truncatedYes
errorCountYes
filesScannedYes
warningCountYes
totalFindingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description reinforces that with "Does not modify anything." It adds real value by enumerating what it looks for (hidden text, prompt injection, unpinned MCP servers, inline secrets), which tells the agent what kind of findings to expect and when the output matters.

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?

Two sentences, front-loaded with the scan scope and finding categories, then the usage trigger and the non-mutating guarantee. Every clause carries information; nothing is padding.

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?

An output schema exists so return values need no explanation, and the read-only nature is doubly confirmed. The one real gap is scope semantics — whether the default scans the whole repository root and how results are capped — which matters for a tool whose entire job is repository-wide discovery.

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% and the description never mentions either parameter. It gives no hint that `path` defaults to the current directory (i.e., that a whole-repo scan happens with no arguments) or that `maxFindings` caps the result set, so both remain opaque to the agent.

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?

Names a specific verb (scan) and an enumerated resource set (CLAUDE.md, AGENTS.md, .cursorrules, Copilot instructions, skills, MCP/agent config) plus the four classes of findings it produces. This clearly separates it from generic scanners, though it never explicitly contrasts itself with siblings like ai_guard_scan_project or ai_guard_scan_file, leaving the agent to infer the boundary from the file-type list.

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

Usage Guidelines4/5

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

"Use before trusting the instructions in a repository" gives a concrete trigger condition tied to the moment of adoption. It stops short of naming alternatives or stating when a sibling scanner (project/diff/file) would be the better choice, so the agent still has to infer routing.

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