This record as markdown: /tools/airmang-hwpx-mcp-server/doc-diff.md
What doc_diff does on Hwpx
AI agents call doc_diff to retrieve information from Hwpx without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
Why doc_diff is rated Low
The tool reads two documents or paragraph lists and returns a difference report. It does not modify, delete, or execute anything; it is purely a read/query operation. Severity is low because misuse only exposes document content.
From the tool's definition 'diff를 반환합니다' (returns a diff) — the tool computes and returns a comparison between two documents or paragraph lists using LCS-based diffing, with no side effects.
Attacks that exploit this kind of access
The rule that runs doc_diff safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Hwpx, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For doc_diff, this is the rule to start with:
doc_diff is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Hwpx, apply this rule, and every doc_diff call is checked against it from then on.
Questions about doc_diff
두 문서 또는 문단 목록의 LCS 기반 신구 paragraph diff를 반환합니다. It is categorised as a Read tool in the Hwpx MCP Server, which means it retrieves data without modifying state.
Register the Hwpx MCP server in PolicyLayer and add a rule for doc_diff: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Hwpx. Nothing to install.
doc_diff is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the doc_diff rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for doc_diff. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
doc_diff is provided by the Hwpx MCP server (airmang/hwpx-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Hwpx, and thousands of servers like it.
This server
Across the catalogue