Skip to main content
Glama
aletheia-aegis

aletheia-aegis

aegis_run_eval

Scores the output guard against labeled cases, reporting detection rates, false positives, and latency; also runs corpus mode to compare keyword-classifier results with published totals.

Instructions

Score the guard. Mode 'guard' (default) runs the bundled labeled case set through aegis_check_output and returns a per-signature scorecard with detection rates, false positives, and latency. Mode 'corpus' runs the paper's keyword classifier over a JSONL incident file (default: the bundled sample) and compares the distribution with the paper's published §3.3 totals.

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

Input Schema

NameRequiredDescriptionDefault
modeNoEval mode. Default: guard.
cases_fileNoPath to a JSONL labeled case file (guard mode). Default: bundled eval/cases.jsonl.
corpus_fileNoPath to a JSONL incident file with {id, source, text} per line (corpus mode). Default: bundled eval/sample-corpus.jsonl.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses the return contents (per-signature detection rates, false positives, latency) and that both modes fall back to bundled files when no path is given. It omits side effects, expected runtime on large corpora, and error behavior for malformed JSONL, which keeps it below 5.

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?

Two sentences, one per mode, each front-loaded with the mode name and what it produces. Dense but nearly every clause is informative; the section-sign reference ('§3.3') is the only slightly opaque element.

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 three-parameter, all-optional tool with no output schema, the description covers both operating modes and what each returns, which is sufficient to call it correctly. Missing only failure handling and any sense of cost/scale for corpus mode.

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 coverage is 100%, so the enum and both file-path parameters are already documented. The description reinforces the mode default ('guard') and the bundled sample default for corpus mode but adds no new syntax, format, or constraint 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?

States specific verbs and resources: 'guard' mode scores a bundled labeled case set through aegis_check_output and returns a per-signature scorecard; 'corpus' mode runs a keyword classifier over a JSONL incident file and compares distributions. The two modes are clearly delineated. It falls short of a 5 because it names aegis_check_output only as an internal dependency rather than contrasting this tool with the sibling tools an agent might pick instead.

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?

The description gives clear mode-selection guidance, including which mode is default and what each is for. However, it never says when to reach for aegis_run_eval versus aegis_check_output or aegis_classify_incident directly, nor does it state preconditions such as file format requirements or whether a full eval is expensive to run.

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