Skip to main content
Glama

code_review

Read-onlyIdempotent

Analyze code to identify security, performance, and quality issues, producing a structured list of problems with severity, category, and suggestions.

Instructions

当用户需要审查代码质量、检查代码问题时使用。指南型工具:注入 code/file_path 与审查清单,由 Agent 阅读代码后输出结构化问题清单(severity/category/suggestion);MCP 不做静态规则扫描

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo要审查的代码。可以是代码片段、完整文件或 git diff 输出
focusNo审查重点:security(安全)、performance(性能)、quality(质量)、all(全部)。可选,默认 all
file_pathNo要审查的文件路径(相对 project_root 或绝对路径)。未传 code 时从磁盘读取
project_rootNo项目根目录绝对路径。配合 file_path 解析相对路径
Behavior4/5

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

The description explains the tool injects code/file_path and a checklist, the agent reads code and outputs structured issues, and that MCP does no static scanning. This adds behavioral context beyond the readOnlyHint annotation without contradiction.

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?

The description is concise (two sentences in Chinese plus a short note) and gets to the point quickly, though it could be slightly more structured for scanning.

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?

The description explains the tool's approach and mentions output format (severity, category, suggestion) but lacks details on how parameters like project_root and file_path interact, and has no output schema to compensate. Adequate but not fully complete.

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 100% with descriptions for all four parameters. The tool description adds no additional semantic meaning beyond the schema, so baseline score of 3 is appropriate.

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 is used for reviewing code quality and checking code issues, and distinguishes it by noting it's a guideline tool that does not perform static rule scanning, providing a specific verb and resource.

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 says to use when reviewing code quality and clarifies it's not static scanning, but does not explicitly state when not to use it or compare to sibling tools like 'code_insight', leaving adoption decision partially ambiguous.

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/mybolide/mcp-probe-kit'

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