Skip to main content
Glama

review_document

Review documents (markdown, code, ADR, RFC, config) with multiple LLMs and knowledge retrieval. Outputs structured reports with consensus and calibrated confidence.

Instructions

审查一份文档(markdown/code/adr/rfc/config)。

多模型 fan-out(panel × dimensions)+ 知识库 retrieve(版本过滤)+ canonical 归一

  • 校准共识。返回结构化报告(consensus/majority/individual + calibrated_confidence)。

Args: content: 文档正文(markdown/adr/rfc/config)。 document_type: 文档类型,影响 prompt 模板。 files: 代码文件 {路径: 源码}(code 模式)。 adapter: "auto" 自动检测,或 "unity"/"generic"。 panel: 模型列表,None=默认面板(需配 OPENAI/ANTHROPIC/ARK key)。 dimensions: 审查维度,None=自动(core planner/safety + adapter 特定)。 retrieve_top_k: 知识库 retrieve 案例数。 extra_context: 额外补充 context(核心 context 由 adapter 自动聚合)。 output_format: json|markdown|sarif。json 返回结构化;其余额外加 rendered 字段。 timeout: 单模型超时秒。 effort: 思考强度 low/medium/high/xhigh/max;None=各模型默认。仅 Claude(output_config+thinking adaptive)/ OpenAI o 系列(reasoning_effort)生效,其余丢弃。Claude 默认 high 较贵,routine 方案可降 medium 省 token。 max_cost_usd: 单次 review 总成本上限(USD);None=无上限。设了则预 flight 估每 job 成本、按 panel 顺序裁剪直到估算超预算,report.budget.exhausted 标记是否裁过。

Returns: 报告 dict + cache_hit/reuse_count(+ rendered 若非 json)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNo
panelNo
effortNo
adapterNoauto
contentYes
timeoutNo
dimensionsNo
max_cost_usdNo
document_typeNomarkdown
extra_contextNo
output_formatNo
retrieve_top_kNo
Behavior5/5

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

With no annotations, the description fully covers behavior: multi-model fan-out, knowledge retrieval, cost control limits, model-specific effort handling, and caching (cache_hit/reuse_count). Exceptionally transparent.

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?

Structured with a summary, technical process, return info, and bulleted Args. Each sentence adds value; no redundancy. Front-loaded with the core purpose.

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 the complexity (12 params, no output schema), the description covers return structure, cache, budget enforcement, and model-specific behavior. Virtually no gaps for an AI agent to understand correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description includes a detailed Args section explaining every parameter's purpose, defaults, constraints (e.g., effort affects only specific models, max_cost_usd triggers budget trimming). Fully compensates for missing 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 the tool reviews documents (markdown/code/adr/rfc/config) with multi-model AI and knowledge retrieval. The verb 'review' and specific resource types make the purpose explicit.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool over siblings like review_code or review_plan. The description focuses on internal mechanics rather than usage context.

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/fanghaoling/brainregion'

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