Skip to main content
Glama

ai_guard_scan_project

Read-only

Scans a workspace directory using built-in presets and exclusions to report issues while failing on resource limits instead of silently truncating results.

Instructions

Scan a workspace directory using existing presets and exclusions. Fails on resource limits instead of silently truncating.

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_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo.
presetNoagent
maxFilesNo
maxIssuesNoMax findings returned, errors first. Totals always count every finding; truncation is reported as RESULT_LIMIT.

Output Schema

NameRequiredDescriptionDefault
cleanYes
errorsYes
issuesYes
presetYes
statusYes
successYes
truncatedYes
durationMsYes
totalErrorsYes
totalIssuesYes
filesScannedYes
totalWarningsYes
inlineSuppressionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds one genuinely useful trait beyond that: it fails hard on resource limits instead of silently truncating, which tells the agent to expect an error rather than partial results. It omits what the scan actually detects, what 'presets' and 'exclusions' mean, and how findings are shaped despite an output schema existing.

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 short sentences, no filler, with the resource-limit failure behavior front-loaded alongside the primary action. Nothing here wastes space.

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

Completeness3/5

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

With an output schema and read-only annotations, return values and safety need not be explained. However, for a four-parameter scan tool at 25% schema coverage, the description leaves the preset semantics, the exclusion mechanism, and the relationship to fix/verify siblings unexplained, so it is only minimally sufficient.

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 only 25% (only maxIssues is documented), so the description needed to compensate and largely does not. It alludes to a preset concept and to 'exclusions', yet the schema has no exclusions parameter, leaving the agent unsure whether exclusions are preset-derived; path and maxFiles receive no clarification at all.

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 and scope: 'Scan a workspace directory', which distinguishes it from ai_guard_scan_file and ai_guard_scan_diff by operating on a whole directory rather than a single file or a change set. It does not explicitly name any sibling, but the directory-level scope is specific enough for an agent to route correctly.

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 only implied by 'workspace directory' versus the file/diff siblings; there is no explicit statement of when to prefer this tool over ai_guard_scan_file or ai_guard_scan_diff, nor any prerequisite or exclusion. An agent can infer the use case but must guess at the boundary conditions.

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