Analyze Impact
analyze_impactAssess the impact of legal document changes by determining affected nodes in the dependency graph, with risk level evaluation.
Instructions
【いつ使う】update_fact_classificationで変更したノードの影響範囲を確定するとき。必ずupdate後のgraphとchanged_node_idsを渡すこと。 【入力】graph: 更新済みFactGraph / changed_node_ids: update_fact_classificationが返したchanged_node_idsリスト 【出力】{ changed_node_ids, affected_node_ids, directly_affected, indirectly_affected, explanations, risk_level, warning? }。affected_node_idsが空の場合は影響なし確定。 【注意】affected_node_ids: []の場合は編集作業は不要(そこで処理を打ち切ること)。risk_level=highの場合はwarningを必ず確認し、変更スコープを再検討すること。編集対象は changed_node_ids + affected_node_ids に対応する原文箇所のみ。それ以外の条文には一切触れないこと。
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": {
"graph": "<graph>",
"changed_node_ids": "<changed_node_ids>"
},
"name": "analyze_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes | 現在のFactGraph | |
| changed_node_ids | Yes | 変更されたノードのIDリスト |