Skip to main content
Glama
sec-audit-swarm
by mesutgungor

sec_audit_rules_check

Explains deterministically which scanners, Semgrep baseline/AI rules, custom repo rules, severity overrides, and ignore entries apply to a file and why. Use it to verify audit routing.

Instructions

Explain deterministically which scanners, Semgrep baseline/AI rules, custom repo rules (.sec-audit-rules.json), severity overrides, and .sec-audit-ignore entries apply to a file and why.

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_dir": "<target_dir>",
      "file_path": "<file_path>"
    },
    "name": "sec_audit_rules_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesRelative or absolute path to inspect
target_dirYesRepository root directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. 'Deterministically' usefully signals repeatable, reproducible output, and the enumeration of config layers tells the agent what inputs feed the answer, but it never states that the operation is read-only, that it performs no scanning/mutation, or anything about access prerequisites.

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?

A single front-loaded sentence that names the explain action first and then enumerates exactly what gets resolved. Dense but every clause earns its place; no filler or repetition.

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?

For a two-parameter inspection tool with no output schema, the description conveys enough about what the answer covers (scanners, rule sources, overrides, ignores, and rationale) that an agent can decide to call it. The missing piece is that it never says the call is side-effect free.

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 description coverage is 100%, with both `target_dir` and `file_path` documented in the schema itself. The description adds no further meaning about path resolution, symlinks, or whether the file must exist, so the baseline 3 applies.

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?

Specific verb ('Explain deterministically') plus a precise resource: which scanners, Semgrep baseline/AI rules, repo rules, severity overrides and ignore entries apply to a given file. That resolution/explain scope is functionally distinct from the scan, gate and findings siblings, though the description never names or contrasts them.

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: the 'and why' framing signals this is for debugging why a file is or isn't scanned by particular rules. There is no explicit when-to-use, no when-not-to-use, and no pointer to an alternative such as running an actual scan.

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