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

sec_audit_gate

Evaluate verified findings from a blackboard audit run against a CI security policy gate, blocking builds by configured severity thresholds.

Instructions

Evaluate CI security policy gate against verified findings for a blackboard run.

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

Input Schema

NameRequiredDescriptionDefault
dbNoBlackboard SQLite path (default: audit_state/blackboard.db)
run_idNoAudit run ID (defaults to latest run)
fail_onNoComma-separated blocking severities (default: critical,high)
include_hardening_notesNoAlso block on defense-in-depth hardening_note findings (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden gap. It does not state whether evaluation is read-only or writes gate results back to the blackboard, what the outcome looks like (pass/fail, exit code, findings list), or whether an empty/missing run errors out — all critical for a gate/decider tool.

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 with no filler or repetition. It is arguably over-terse for a policy-gate tool, but nothing in it is wasted.

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 a zero-required-parameter decision tool with no annotations and no output schema, the definition omits exactly what an agent needs: what the gate returns and how to interpret the outcome. The parameter documentation in the schema is complete, but the tool's result semantics are entirely absent.

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, fail_on, include_hardening_notes) are fully documented in the schema itself. The description adds no extra meaning about defaults, severity string formatting, or the interaction between fail_on and include_hardening_notes, so 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?

The description names a specific action ("Evaluate CI security policy gate") against a specific input ("verified findings for a blackboard run"), which is concrete enough to distinguish it from scan/export siblings. However, terms like "blackboard run" and "verified findings" are undefined domain jargon, and nothing differentiates it from near-neighbours such as sec_audit_rules_check or sec_audit_validate_run.

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?

There is no guidance on when to call this tool versus the nine siblings, no stated prerequisites (e.g. that findings must already be verified), and no conditions under which it should not be used. The agent must infer the workflow position entirely from the name.

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