Skip to main content
Glama

GitLab Duo Review

duo_review

Run a code review with GitLab Duo CLI and get a structured JSON result with summary and issues. Handles non-JSON responses by returning degraded status with raw text.

Instructions

Run a code review with the GitLab Duo CLI and return a normalized, fault-tolerant result. Use this to get a 'second opinion' review of a diff or set of files: pass a unified diff (and/or files/instructions), and you get back a stable JSON structure with a summary and a list of issues (type, severity, file, line, message, suggestion). If Duo answers with prose instead of JSON, the result is still returned with degraded: true and the raw text in summary/raw. Your agent can then act on the issues (e.g. write fixes).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory to run Duo in for this call.
diffNoUnified diff to review (e.g. output of `git diff`).
goalNoOverride the entire prompt sent to Duo. When set, diff/files/instructions are ignored.
filesNoFile paths to focus the review on.
modelNoOverride the Duo model for this call.
timeoutMsNoOverride the run timeout (milliseconds) for this call.
instructionsNoExtra free-form guidance for the reviewer.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue when Duo exited successfully and did not time out.
rawYesRaw (truncated) Duo output for debugging.
metaYes
issuesYesNormalized list of findings.
summaryYesReview summary, or raw text when degraded.
degradedYesTrue when output could not be parsed as JSON (raw text fallback).
Behavior4/5

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

The description discloses fault-tolerant behavior: if Duo responds with prose instead of JSON, it returns degraded: true with raw text. No annotations exist, so the burden is fully met. No other behavioral traits (e.g., permissions) are needed for a read-like review tool.

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?

The description is five sentences, front-loaded with the core action, and every sentence adds meaningful detail without verbosity. It is well-structured and efficient.

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?

Given 7 parameters (none required), a complex output, and no annotations, the description covers all key aspects: input options, output structure (summary, issues), fallback behavior (degraded), and actionable use. It is fully self-contained.

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?

Schema description coverage is 100%, so baseline is 3. The description adds value by explaining how parameters interact (e.g., 'pass a unified diff (and/or files/instructions)') and that the 'goal' parameter overrides the entire prompt. This clarifies usage beyond schema descriptions.

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?

The description clearly states it runs a code review with GitLab Duo CLI and returns a normalized, fault-tolerant result. It specifies inputs (diff, files, instructions) and outputs (summary, issues list), making the purpose unmistakable.

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?

It explicitly says 'use this to get a second opinion review', providing clear context. While no alternatives or exclusions are mentioned due to no siblings, the usage guidance is sufficient for typical scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DataTalesByAgos/gitlab-duo-mcp-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server