Skip to main content
Glama
HiroakiKatoh

legal-impact-mapper

by HiroakiKatoh

Analyze Impact

analyze_impact

Assess 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 に対応する原文箇所のみ。それ以外の条文には一切触れないこと。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
graphYes現在のFactGraph
changed_node_idsYes変更されたノードのIDリスト
Behavior5/5

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

With no annotations, the description fully explains behavior: output structure, handling of empty affected_node_ids (stop processing), risk_level=high warning, and constraints on editing scope. No contradictions.

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?

The description is well-structured with clear headings (usage, inputs, outputs, notes). Every sentence adds value, and it is concise despite covering many aspects.

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 (2 required params, nested objects, no output schema), the description is very complete: it explains output structure, behavioral notes, and editing constraints. No gaps.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds meaning by clarifying that 'graph' must be the updated FactGraph and 'changed_node_ids' must come from update_fact_classification's output, enhancing understanding beyond schema.

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's purpose: determining the impact range after using update_fact_classification. It specifies the context and distinguishes from siblings by indicating it is used after updating classifications.

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 description provides explicit when-to-use (after update_fact_classification) and required inputs. While it doesn't explicitly state when not to use it, the context is clear enough for correct invocation.

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/HiroakiKatoh/legal-impact-mapper'

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