# unified_sink_detect

Detect dangerous sink patterns (SQL injection, XSS, etc.) across Python, JS, TS, and Java.

Agent View of the PolicyLayer registry record for `unified_sink_detect`. HTML page: https://policylayer.com/tools/3d-tech-solutions-code-scalpel/unified-sink-detect

## Facts

- Tool: `unified_sink_detect`
- Server: Code Scalpel (`3d-tech-solutions/code-scalpel`) — https://policylayer.com/tools/3d-tech-solutions-code-scalpel.md
- Homepage: https://github.com/3D-Tech-Solutions/code-scalpel
- Risk category: Read (Low risk)
- Registry record: grade D, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "unified_sink_detect",
    "arguments": {}
  }
}
```

## Why unified_sink_detect is rated Low

This tool performs static analysis to identify vulnerable code patterns (SQL injection, XSS sinks). It retrieves and examines code to report findings, with no capability to execute, modify, delete, or move money. The analysis itself has no side effects on systems or data—it only reads and reports. Severity is low because misuse would result in false alerts or missed detections, not unauthorized access or damage.

From the tool's own definition: "Tool name 'unified_sink_detect' and description 'Detect dangerous sink patterns' indicates analysis and detection of security issues, not execution or modification of code."

## Use case

AI agents call unified_sink_detect to retrieve information from Code Scalpel without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Code Scalpel:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "unified_sink_detect": {}
  }
}
```

## Other tools on Code Scalpel (3)

- `simulate_refactor` — Execute — https://policylayer.com/tools/3d-tech-solutions-code-scalpel/simulate-refactor.md
- `symbolic_execute` — Execute — https://policylayer.com/tools/3d-tech-solutions-code-scalpel/symbolic-execute.md
- `analyze_code` — Read — https://policylayer.com/tools/3d-tech-solutions-code-scalpel/analyze-code.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=3d-tech-solutions-code-scalpel · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/3d-tech-solutions-code-scalpel
