Skip to main content
Glama

adversarial_review

Get an adversarial second opinion from a different model family to find flaws, edge cases, security issues, and unstated assumptions in plans, designs, and pre-merge code.

Instructions

Get an adversarial second opinion from a different model family (Gemini Pro). ALWAYS use this for plan critiques, design reviews, and pre-merge code review: it hunts for flaws, edge cases, security issues, and unstated assumptions you may have missed.

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path to the working directory / project root. Defaults to the server's cwd.
filesNoFile paths to review instead of inline content.
focusNoOptional focus area, e.g. 'security', 'concurrency'.
modelNoOverride the model: a name or id from `agy models`, or a `*` version pattern such as "Gemini * Pro (High)". Normally omit — the tool routes automatically.
contentNoInline content to review (plan, diff, code snippet).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • changedInput schema / properties / model / description
      Previous value: -"Override the model (exact name from `agy models`, e.g. \"Gemini 3.1 Pro (High)\"). Normally omit — the tool routes automatically."New value: +"Override the model: a name or id from `agy models`, or a `*` version pattern such as \"Gemini * Pro (High)\". Normally omit — the tool routes automatically."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose real behavioral traits beyond the name: routing to a different model family (Gemini Pro) and an adversarial hunting posture covering edge cases, security issues and unstated assumptions. It omits cost/latency implications of a second-model call, whether content is sent externally, and what a review returns (there is no output schema).

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, front-loaded with the what and the model-family detail, then the usage triggers. The trailing list 'flaws, edge cases, security issues, and unstated assumptions you may have missed' is slightly padded and 'you may have missed' restates the adversarial premise.

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?

All five parameters are optional, so the agent must decide for itself that content or files is required to make the call useful, and the description never says so. Combined with no output schema and no note on what a review produces or costs, the definition is workable but leaves meaningful gaps for a tool that spends a second model call.

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 five parameters are already documented, and the description does not discuss any of them. It implicitly maps 'plan', 'design', 'code review' to the content/files inputs but adds no syntax, precedence, or combination rules beyond the schema. 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?

Names a specific verb+resource: an adversarial second opinion sourced from a different model family (Gemini Pro), with the issue classes it targets. It is clearly distinct from web_lookup and deep_search, but it never distinguishes itself from the sibling 'delegate', which is the one tool an agent could plausibly confuse it with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use triggers: plan critiques, design reviews, pre-merge code review, and states them emphatically ('ALWAYS'). It offers no when-not guidance and never names an alternative tool, so an agent still has to infer the boundary against 'delegate' or 'analyze_files'.

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