Skip to main content
Glama

grok_review

Review a git diff against a base branch with structured per-dimension scores. Optionally specify a focus area such as security or performance.

Instructions

Have Grok review a git diff. If no diff is provided, runs git diff <base_ref>...HEAD (default base: main). Returns a structured review with per-dimension scores.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diffNoUnified diff to review. If omitted, runs `git diff <base_ref>`.
base_refNoGit ref to diff against when diff is not provided. Defaults to 'main'.
focusNoOptional focus area (e.g. 'security', 'performance', 'API design').
modelNo
cwdNoWorking directory for git diff. Defaults to process cwd.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that git diff is run locally if no diff is provided and that output is structured with scores. It does not cover authentication, rate limits, large diff handling, or prerequisites like git installation.

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?

Two sentences, front-loaded with purpose, no wasted words. Efficient and clear.

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?

Given 5 parameters, no output schema, and no annotations, the description covers core functionality and default behavior. However, it lacks details about the review output structure (e.g., what dimensions) and limitations, making it adequate but not comprehensive.

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 80% (4 of 5 parameters described), so baseline is 3. The description adds context for the diff parameter (unified diff format) and the default base_ref, but does not elaborate on model or cwd beyond the schema.

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 the tool reviews a git diff, explains default behavior, and mentions the structured output with per-dimension scores. It distinguishes from siblings (grok_challenge, grok_chat, grok_consult) by being specifically for code 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?

The description explains when to use (for reviewing git diffs) and the default diff generation. However, it does not provide explicit guidance on when not to use this tool or mention alternatives among siblings.

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/howardpen9/grok-mcp'

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