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

sec_audit_validate_run

Validate an audit run deterministically by checking disk file and line bounds, separation of duties, severity rules, and coverage ledger integrity before accepting results.

Instructions

Deterministically validate an audit run: verifies disk file/line bounds, separation of duties, needs_validation severity rules, and coverage ledger integrity.

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

Input Schema

NameRequiredDescriptionDefault
dbNoBlackboard SQLite path (default: audit_state/blackboard.db)
run_idNoAudit run ID (defaults to latest run)
require_full_coverageNoFail validation if pending/stale coverage units remain
fail_on_unreviewed_candidatesNoFail validation if unreviewed candidates remain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose one meaningful trait beyond the name: validation is deterministic, and it names the specific invariants checked. However, it never states whether the run merely reports or persists results, what a failed validation returns, or how the fail_on_* flags change behavior beyond their schema text.

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 opens with the action and then lists the checks in a compact, scannable way. Every clause contributes new information, with only mild density from the four-item enumeration.

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?

For a validation tool with no annotations and no output schema, the description covers what is checked but not what comes back or what constitutes a failure beyond the option names. An agent can select it but must guess at result handling and failure semantics.

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%, so all four parameters (db, run_id, require_full_coverage, fail_on_unreviewed_candidates) are already documented in the input schema, setting the baseline at 3. The description's mention of 'coverage ledger integrity' loosely connects to require_full_coverage but adds no syntax, default, or interaction detail beyond the schema.

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?

The description gives a specific verb ('validate') and resource ('an audit run') and enumerates the concrete checks performed: disk file/line bounds, separation of duties, needs_validation severity rules, and coverage ledger integrity. An agent knows exactly what the tool does, though it does not explicitly distinguish itself from validation-adjacent siblings such as sec_audit_rules_check or sec_audit_gate.

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 name and the enumerated checks suggest this is a pre-export/pre-gate verification step, but the description never states when to run it versus sec_audit_rules_check, sec_audit_gate, or sec_audit_coverage_ledger. No exclusions or prerequisites are given, leaving the agent to infer placement in the workflow.

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