Skip to main content
Glama

flow_overview

Scan a code repository to map its architectural overview—project mode, subsystem topology, backbone pipelines, hubs, and cross-language bridges—then save a baseline snapshot for tracking changes.

Instructions

【全局架构视野】扫描代码仓库的项目模式(application/library/hybrid)、子系统分层拓扑(architectureDomains)、主干因果动脉(backbonePipelines)、高中心度枢纽符号(architecturalHubs)、多态与预留契约目录、跨语言桥接与状态唯一写入权(SSOT)。支持保存任务初始水路基线快照。

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_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo焦点周围关系跳数,默认 1;0 仅展示焦点范围
focusNo架构节点 ID、模块目录、文件路径或唯一符号名;可用返回的 drillDown 参数逐层展开
levelNo架构展开层级;overview 默认 module,trace 默认 symbol
edgeIdNo要获取完整证据的关系 ID,需使用返回该关系时的 level
impactNo返回焦点的上下游依赖影响;高置信路径与仅候选路径分列
taskIdNo同一会话内的任务隔离标识;也可通过 FLOWGUARD_TASK_ID 设置
baseRefNo从 Git archive 重建历史源码/配置后比较架构,默认 file 层;需要 Git 和 tar
maxHopsNo影响面跳数上限,默认 12
maxEdgesNo最多返回关系数,默认 80;关系附证据和置信度
maxNodesNo最多返回节点数,默认 40
diffLimitNo每类架构变化的返回上限,默认 100,省略量另列
directionNo架构邻域查询方向,默认 both;不代表运行时可达性
edgeScopeNoall-matched 可独立遍历全部匹配关系;页外端点返回 boundaryNodes
sessionIdNo会话隔离标识;也可通过 FLOWGUARD_SESSION_ID 设置
edgeOffsetNo当前节点页内的关系分页偏移量,默认 0;改变节点页后应重置
nodeOffsetNo稳定节点分页偏移量,默认 0;完整计数及省略量见 architecture.coverage
impactLimitNo每方向每类影响结果的上限,默认 100
maxEvidenceNo单次关系证据上限,默认 50
projectModeNo覆盖工程模式判定(默认 auto 自动从 manifest 与运行入口识别)
saveBaselineNo是否将当前水路图保存为本次任务的初始基线快照(供后续跨多次修改的增量图差异验收使用)
maxCandidatesNo完整证据单页候选数,默认 20;预览最多 8 个
workspaceRootNo代码仓库根目录绝对路径
evidenceOffsetNo关系证据分页偏移量
syncToAgentsMdNo是否将最新端到端水路 Mermaid 图写入 AGENTS.md 的 <!-- FLOWGUARD:START --> 块中
candidateOffsetNo完整关系证据中的候选分页偏移量
expectedGraphIdNo翻页时传回 graphId,源码/配置/图变化时拒绝混用
includeTopologyNo返回全投影的依赖环、孤立节点和枢纽;不受 focus/分页截断

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/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 largely fails to. It never states that this is a repository-wide read that can be expensive/large, nor does it flag that it mutates state (task baseline snapshot) and can write into AGENTS.md via syncToAgentsMd — the mutation/side-effect profile is invisible at the description level. It does disclose what dimensions are scanned, which is the one real behavioral contribution.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is compact — effectively two sentences — and front-loads the global-architecture framing. However, the first sentence is a dense wall of metaphors ("主干因果动脉", "水路", "状态唯一写入权") wrapped around parenthetical identifiers, which slows comprehension without adding precision, and the baseline capability is bolted on as an afterthought.

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?

For a 27-parameter tool with no annotations and no output schema, the description does partially compensate by naming the result sections it returns (architectureDomains, backbonePipelines, architecturalHubs, SSOT). But it omits how results are organized (coverage counters, drillDown, paging, graphId reuse) and leaves the mutating behaviors (baseline save, AGENTS.md write) undocumented, which is a real gap given the tool's complexity.

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% across all 27 parameters, so every param already carries its own meaning, enum, and default. The description adds no parameter-level semantics beyond that — it does not explain focus/depth/level interplay or how to drive pagination via graphId. 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 opens with a specific verb+resource combination ("扫描代码仓库" — scan the code repository) and enumerates concrete output categories: project mode, architectureDomains, backbonePipelines, architecturalHubs, SSOT, cross-language bridging. An agent can tell this is a whole-repository architecture survey, which implicitly contrasts with the tracing/verifying siblings. It stops short of naming or explicitly separating itself from flow_trace/flow_blueprint/flow_verify.

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?

There is no guidance on when to call this versus the siblings — no "use this before flow_verify" or "for a single path, use flow_trace instead." The only actionable hint is the trailing note that it can save an initial baseline snapshot, which implies a pre-change survey role but never states it as a rule.

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