Skip to main content
Glama

Judge scanner results

judge_scanner_results

Reads SARIF scanner results from security.yaml, compares findings against a baseline, and flags new, accepted, or expired-acceptance issues for release gating.

Instructions

Read SARIF from the paths in security.yaml (Semgrep, CodeQL, Trivy, Gitleaks, ZAP, Checkov...) and say which findings are new compared with the baseline, which are accepted (owner, reason, expiry) and which acceptances have expired. No requests are sent.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it declares the data source (local SARIF files referenced by security.yaml), the comparison semantics (against baseline), the acceptance model with owner/reason/expiry, and explicitly states no requests are sent. It stops short of saying whether any state is mutated or how output is formatted, but the key safety profile is disclosed.

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 dense sentences, front-loaded with the data source and followed by the classification logic, with the no-network caveat placed last. Every clause carries information; nothing is redunant or padded.

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

Completeness5/5

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

For a zero-parameter tool with no output schema, the description fully explains what the returned judgment contains (new findings, accepted findings with their justification fields, expired acceptances). An agent can decide whether to call it and interpret the result without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the schema is empty and fully covered. The description does not mislead about inputs, though it implies configuration comes from security.yaml rather than arguments, which is useful context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (read/compare) and resource (SARIF results from paths in security.yaml), plus the three-way classification it produces: new vs baseline, accepted with owner/reason/expiry, and expired acceptances. This clearly separates it from siblings like run_security_tests or save_scanner_baseline, which produce or persist rather than judge results.

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?

By naming security.yaml as the source of scanner paths and describing triage against a baseline, it implies the tool is used after scanners have run and a baseline exists. However, it never says when to prefer this over get_report or run_security_tests, nor does it state prerequisites such as an initialized config or saved baseline.

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