Skip to main content
Glama

flow_verify

Verify code changes against wiring plans and graph diffs, checking structure, data flow, and behavior to return SATISFIED, VIOLATED, or INCONCLUSIVE before you submit.

Instructions

【改完代码交卷前必调】基于共享接入目标清单(wiringPlan)与修改前后水路图差异(Graph Diff:含未修改文件的波及断流),按 L1 结构接通 / L2 数据生效 / L3 行为测试三层证据逐项给出 SATISFIED(满足)/ VIOLATED(违反)/ INCONCLUSIVE(证据不足待确认)三态结论。

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

Input Schema

NameRequiredDescriptionDefault
taskIdNo同一会话内的任务隔离标识;也可通过 FLOWGUARD_TASK_ID 设置
baseRefNo指定对比的 Git 基线引用(如 HEAD、HEAD~1、main 或提交 SHA),支持跨多次提交的任务级图差异验收
fullScanNo是否强制执行全仓静态扫描(默认优先对比基线快照或 Git 增量图差异)
clearPlanNo是否在本次验收前清除已保存的旧蓝图接入清单
sessionIdNo会话隔离标识;也可通过 FLOWGUARD_SESSION_ID 设置
rustTargetNo语义分析所选 Rust target triple
projectModeNo覆盖工程模式判定(application 模式下未接入入口的新增 export 将判为 VIOLATED;library 模式下包公开导出判为合法入口)
rustFeaturesNo语义分析所选 Cargo features,逗号分隔
rustSemanticNo使用本机 rust-analyzer 补充 Rust 语义调用证据;要求 fullScan:true 且不传 baseRef
testTimeoutMsNo测试超时(毫秒),默认 60000;超时不等于测试断言失败
workspaceRootNo代码仓库根目录绝对路径
runTestsCommandNo可选测试命令(传入后将实际运行命令以闭环 L3 行为生效证据)
rustBuildScriptsNo允许 Cargo 执行 build.rs 和过程宏以完成语义分析(默认 false;仅分析可信代码)
allowInconclusiveNo仅允许 CLI 将 INCONCLUSIVE 以兼容性退出码 0 返回;报告状态仍为 INCONCLUSIVE,不能掩盖违反或执行错误
rustNoDefaultFeaturesNo语义分析禁用默认 Cargo features
rustSemanticTimeoutMsNoRust 语义分析超时毫秒数,默认 120000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose the evaluation model (L1/L2/L3 evidence, three verdicts) and the fact that the verdict can be INCONCLUSIVE rather than only pass/fail. However, it never says whether the tool mutates stored state (clearPlan, saved blueprint lists), whether it executes user code (only the schema's runTestsCommand hints at that), or how expensive or long-running it is. For a 16-parameter, no-annotation tool that appears to run tests and static scans, that is a real gap.

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?

It is a single dense sentence with the must-call trigger front-loaded ahead of the mechanism, and there is no filler. It is arguably too compressed for a 16-parameter tool, but nothing in the text is redundant.

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?

Placeholder

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 every parameter is already documented in structured form, and the description adds little per-parameter meaning beyond concepts like wiringPlan and Graph Diff that the schema covers itself. Baseline 3 is appropriate when the schema does the heavy lifting.

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 verb (verification against a three-tier evidence model) and its resources (wiringPlan access-target list plus a before/after Graph Diff, including breakage propagated into unmodified files), and it names the three verdict states. That is far more than a restatement of the name, but it never explicitly contrasts the tool with flow_blueprint, flow_overview, or flow_trace, so sibling differentiation is left to inference.

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?

The bracketed prefix 'must call before submitting after code changes' gives a clear, forceful trigger condition, which is exactly the guidance an agent needs for a gate tool. It does not state when not to call it, what the prerequisites are (e.g. whether a blueprint must exist first), or which sibling to use for exploration instead, so it stops short of a 5.

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

Deploy Server

Other Tools