Skip to main content
Glama

magpie_review_files

Reads specified local text files and sends a structured review prompt to a target model for code or document review.

Instructions

面向代码评审与文档复核的快捷工具:自动读取指定本地文本文件并组装结构化评审提示词发送给目标模型。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "model": "<model>",
      "file_paths": "<file_paths>"
    },
    "name": "magpie_review_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo可选项目工作目录路径,用于将该次评审归入对应的项目分仓面板(不传时按 file_paths 自动匹配已有项目仓)。
focusNo可选评审重点(例如安全性、并发边界、协议一致性、文案准确性等)。
modelYes执行评审的目标模型或路由 ID(例如 Codex / GPT 或 Workbuddy)。
effortNo可选推理强度档位(low | medium | high | xhigh | max)。
role_nameNo可选成员职能显示名(如"代码评审"、"安全审查"),用于看板主标题展示。
thread_idNo可选工作线 ID,若存在则自动将该任务归入对应 thread。
file_pathsYes待评审的本地文本文件路径列表(至少提供 1 个文件)。
max_tokensNo可选最大输出 token 数(正整数)。启用 effort 或调用推理模型时建议不传或设为 >= 2048(显式带 effort 且 < 1024 时服务端将自动放宽至 2048 以避免思考链耗尽导致空回复)。
temperatureNo可选采样温度,默认不传由网关决定。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the two-stage behavior (local file read, then prompt dispatch to a remote model), which implies network use and model cost. However, it never states whether the call blocks until the review completes, what is returned (review text vs. a task/thread handle), or what happens with unreadable or oversized files — meaningful gaps for a dispatch tool with nine parameters.

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?

A single well-formed sentence with the domain qualifier front-loaded and the mechanism after the colon. No filler or repetition. Slightly dense but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Nine parameters, no annotations, and no output schema mean the description should explain what the caller gets back and whether the call is synchronous or queued. The presence of cwd, thread_id, and role_name strongly suggests results are posted to a board/thread, yet the description never mentions this. For a tool of this complexity, the definition is under-specified about outcomes.

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 100%, so the schema already explains model, file_paths, effort, temperature, cwd, thread_id, and role_name in detail. The description adds only the notion of '指定本地文本文件' mapping to file_paths and '目标模型' mapping to model, adding little beyond structured data. Baseline 3 applies.

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?

The description names a specific capability chain: read designated local text files, assemble a structured review prompt, and dispatch it to a target model. 'Code review and document review' scopes the domain clearly, so an agent can distinguish this from a generic ask/query tool. It stops short of naming which sibling to use instead, keeping it at 4 rather than 5.

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?

Usage is implied by '面向代码评审与文档复核' — call it when you have local files to review. There is no explicit when-not guidance, no mention of prerequisites (model must exist, files must be local text), and no routing to magpie_ask or other siblings for non-file workloads. Adequate but leaves selection to inference.

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