Skip to main content
Glama

review

Evaluates completed worker diffs and checks by job_id or selected sandbox files, then returns a structured JSON verdict when parseable.

Instructions

Cheap-gateway code review. Use job_id to review a finished worker diff/checks, or files to review selected sandbox files. Returns structured JSON verdict when parseable.

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

Input Schema

NameRequiredDescriptionDefault
filesNo
focusNo
job_idNo
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present the description carries the full burden. It does add useful signals — a cost hint ('Cheap-gateway') and the caveat that the verdict is JSON only 'when parseable' — but it never states whether the tool is read-only, what permissions or sandbox access are needed, how failures or unparseable output surface, or whether max_tokens truncates the review.

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?

Three short sentences, front-loaded with purpose followed by mode selection and return format; nothing is padded. The only waste is the unelaborated 'Cheap-gateway' phrase, which costs a reader a moment without adding meaning.

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?

For a 4-parameter tool with no annotations and no output schema, the core invocation paths are covered, but key gaps remain: what happens if neither job_id nor files is given, what focus constrains, whether max_tokens bounds input or output, and what the non-JSON fallback response looks like.

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 0%, so the description must compensate. It explains the two central parameters (job_id and files) and their mutually exclusive modes, but says nothing about focus or max_tokens, leaving half the parameters undocumented in both schema and description.

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 a specific verb and resource (code review) and immediately splits it into two concrete modes: reviewing a finished worker diff/checks via job_id, or reviewing selected sandbox files. An agent can tell what it does, though it is not distinguished from siblings like analyze or diff_digest, and the prefix 'Cheap-gateway' is unexplained jargon.

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 routing guidance: use job_id for a finished worker diff/checks, or files for selected sandbox files. The 'or' framing also implies the two are alternatives. It stops short of naming when to prefer this over sibling review-style tools such as analyze or diff_digest.

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