Skip to main content
Glama

adversarial_review

Read-only

Launch a skeptical, read-only audit of architecture, plans, or diffs to expose risks and security gaps; returns a background job for status polling.

Instructions

Start a skeptical, read-only architecture, plan, or diff audit. Defaults to Astra with high effort. Returns a background job immediately. Run waitCommand or waitCommandPosix (Bash or Zsh), or call job_status with jobId for output.

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

Input Schema

NameRequiredDescriptionDefault
focusNoOptional specific invariants, security boundaries, or failure modes to scrutinize.
modelNoModel or alias for skeptical audit (defaults to astra -> gpt-6.2-astra). Aliases auto-resolve from ~/.codex/models_cache.json: sol (gpt-6.2-sol), astra (gpt-6.2-astra), terra (gpt-6.1-terra), or pass any exact slug.
speedNoAlias for serviceTier.
promptNoAlias for proposal (additional instructions or target diff/files to inspect).
proposalNoArchitecture proposal, plan, diff summary, or design decision to challenge.
serviceTierNoSpeed tier: fast (priority), ultrafast, or default/standard to disable the override. Case-insensitive. Falls back to CODEX_DEFAULT_SERVICE_TIER. Check listModels for supported tiers.
service_tierNoAlias for serviceTier.
reasoningEffortNoReasoning effort (defaults to "high"; supports low, medium, high, xhigh, max, ultra).
reasoning_effortNoAlias for reasoningEffort (defaults to "high").
workingDirectoryNoRepository root directory to inspect read-only.

Output Schema

NameRequiredDescriptionDefault
toolYes
jobIdYes
modelYes
statusYes
logFileYes
runnerPidYes
sessionIdYes
stderrFileYes
stdoutFileYes
serviceTierYes
waitCommandYes
waitCommandPosixYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description is consistent, reinforcing 'read-only'. The key added value is the disclosure that it 'Returns a background job immediately' rather than blocking, plus the default model/effort — behavior an agent could not infer from the schema alone. It stops short of mentioning cost, latency, or whether the audit requires repository access beyond workingDirectory.

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?

Three short sentences, front-loaded with the action and scope, followed by defaults and the retrieval path. Every clause carries actionable information with no filler.

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?

Because an output schema exists, the description needn't explain return values, and it correctly focuses on the async handoff instead. Combined with rich annotations and full schema coverage, an agent has nearly everything needed to invoke and follow up. The one missing piece is how this differs from the sibling 'review' tool.

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 every one of the 10 parameters (including aliases like prompt/proposal and service_tier/serviceTier) is already documented in the schema. The description only restates the defaults ('Astra with high effort'), adding no new meaning. Baseline 3 applies when the schema carries the parameter burden.

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 opens with a specific verb and resource set: 'Start a skeptical, read-only architecture, plan, or diff audit,' which tells an agent exactly what kind of work the tool performs. It also names the default model and effort, adding precision. It does not explicitly contrast itself with the sibling 'review' tool, so an agent must infer the distinction between an adversarial audit and a normal review.

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?

It gives clear follow-up guidance — poll via waitCommand/waitCommandPosix or job_status with jobId — which is genuinely useful for the async workflow. However, it never states when to choose this tool over the sibling 'review' or 'codex' tools, nor any preconditions (e.g., needing a workingDirectory or a proposal). Usage selection is implied rather than guided.

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