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

sec_audit_export

Exports verified audit findings to SARIF 2.1.0, Markdown reports, custom Semgrep YAML rules, Threat Model/Compliance Matrix, and CycloneDX SBOM for CI and review use.

Instructions

Export verified findings to SARIF 2.1.0, Markdown report, custom Semgrep YAML rules, Threat Model/Compliance Matrix, and CycloneDX SBOM.

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

Input Schema

NameRequiredDescriptionDefault
dbNoBlackboard SQLite path (default: audit_state/blackboard.db)
outNoOutput directory (default: audit_state)
run_idNoAudit run ID (defaults to latest run)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It never says that this writes files to disk, whether the output directory is created, whether existing files are overwritten, or whether it fails when no completed run exists. For a tool that writes multiple artifacts, the omission of overwrite and prerequisite behavior is a material gap.

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. The format enumeration is information-dense rather than padded, though the long list slightly crowds out behavioral detail that would be more valuable.

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?

The tool is structurally simple (three optional params, all documented), so the description is nearly sufficient. However, since there is no format parameter, an agent must infer that all five artifact types are always emitted, and the lack of any note on run-state prerequisites or filesystem side effects leaves the definition incomplete for a write-producing tool with no annotations.

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 db, out, and run_id are already fully documented with defaults. The description adds no further meaning about these parameters (e.g., what 'latest run' resolves to), so the baseline 3 applies; the format list correlates only loosely with the 'out' directory parameter.

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 ('Export') and resource ('verified findings') and enumerates the exact artifact formats produced (SARIF 2.1.0, Markdown, Semgrep YAML, Threat Model/Compliance Matrix, CycloneDX SBOM). This distinguishes it from the sibling analysis tools like sec_audit_list_findings or sec_audit_validate_run, though no sibling is named explicitly.

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: 'verified findings' hints that findings must first be produced and validated (presumably via sec_audit_validate_run), and export is naturally a terminal step. There is no explicit when-to-use, when-not-to-use, or statement of prerequisites, and no alternatives are named.

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