Skip to main content
Glama
egovframe-scaffold-mcp

egovframe-scaffold-mcp

by EricSeokgon

개인정보 흐름·보호조치 점검

check_egovframe_privacy
Read-onlyIdempotent

Statically scans eGovFrame DDL and mapper SQL to find personal data columns, trace table-to-screen flows, and flag suspected missing safeguards like plaintext storage or exposure in screens and logs.

Instructions

개인정보가 어느 테이블에 있고 어느 화면이 다루는지(개인정보 파일·처리 흐름표)와 보호조치 누락 의심을 정적으로 찾습니다(읽기 전용, 고치지 않음). 컬럼 이름 사전(catalog/privacy-rules.json — 주민등록번호·여권·운전면허·외국인등록번호·비밀번호·계좌·카드·연락처·주소·이메일·생년월일·성명)으로 DDL 과 매퍼 XML 의 SQL 에서 개인정보 컬럼을 찾고, 구조 지도로 테이블 → 매퍼 문장 → DAO → Service → Controller → URL → 화면을 잇습니다. 보호조치: plaintext-storage(높음 — 고유식별정보·비밀번호·금융정보 컬럼에 쓰는 문장인데 SQL 에 DB 암호화 함수가 없고 호출 경로의 Java 에 그 필드와 암호화 호출이 함께 있는 줄이 없음), screen-exposure(중간 — 화면이 고유식별정보를 마스킹 없이 출력), log-exposure(중간 — 로그로 출력). 이름·호출 패턴 기반 휴리스틱이라 근거(evidence)를 함께 돌려주며, 예외는 .egovframe-privacy-ignore.json(rule=종류·path·line·reason·reviewer). format: markdown·json·csv(개인정보 파일 대장, 엑셀).

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": {
      "projectDir": "<projectDir>"
    },
    "name": "check_egovframe_privacy"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoMarkdown 에 보일 항목·흐름 수
formatNo응답 형식(csv = 개인정보 파일 대장)markdown
rulePacksNov1.23: 기관 규칙 팩 디렉터리(rule-pack.json 이 있는 곳, 여러 개면 뒤가 이김). 없으면 환경 변수 EGOVFRAME_RULE_PACKS
projectDirYes프로젝트 디렉터리(절대경로 권장)

Output Schema

NameRequiredDescriptionDefault
flowsYes
notesYes
columnsYes
summaryYes
findingsYes
rulePacksNo
durationMsYes
ignoreFileYes
projectDirYes
rulesVersionYes
invalidIgnoresYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.24.0
    • changedOutput schema / properties / rulePacks / items / properties / sections / items / enum
      Previous value: -[
      -  "secureCoding",
      -  "operations",
      -  "dependencies",
      -  "privacy"
      -]New value: +[
      +  "secureCoding",
      +  "operations",
      +  "dependencies",
      +  "privacy",
      +  "access"
      +]
  2. Changed2 schema fields changedv1.23.0
    • addedInput schema / properties / rulePacks
      Added value: +{
      +  "description": "v1.23: 기관 규칙 팩 디렉터리(rule-pack.json 이 있는 곳, 여러 개면 뒤가 이김). 없으면 환경 변수 EGOVFRAME_RULE_PACKS",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedOutput schema / properties / rulePacks
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "sections": {
      +        "items": {
      +          "enum": [
      +            "secureCoding",
      +            "operations",
      +            "dependencies",
      +            "privacy"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "sha256": {
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "version",
      +      "sha256",
      +      "sections"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Addedv1.22.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), but the description adds substantial behavior beyond them: results are name/call-pattern heuristics that return evidence to justify each finding, rules carry severities (높음/중간), and findings can be suppressed via .egovframe-privacy-ignore.json with a defined rule/path/line/reason/reviewer shape. That heuristic-false-positive disclosure is exactly the kind of caveat an agent needs; only runtime/scale behavior on large projects is missing.

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?

The core purpose is front-loaded in the first clause, but the rest is a single dense run-on paragraph with heavily nested parentheses (rule names, severities, evidence caveats, ignore-file schema all stacked inside one sentence). The information is valuable but the packaging makes it harder to scan than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description covers what is scanned (DDL, mapper XML SQL), what is reported (flow map plus three protection-failure rule types with severities), and how exceptions and rule packs work. It is nearly complete for a static audit tool; only expected scope/runtime or prerequisites for projectDir are unstated.

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%, so all four parameters are already documented in structured form, including topN bounds, rulePacks precedence and the EGOVFRAME_RULE_PACKS fallback. The description adds only a small gloss on format (csv = 개인정보 파일 대장, 엑셀) and restates the rule dictionary path, so the baseline of 3 applies.

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 states a concrete verb and resource: it statically locates which tables hold personal data and which screens handle it, and traces table → mapper statement → DAO → Service → Controller → URL → screen. It also distinguishes itself from mutating siblings implicitly via '(읽기 전용, 고치지 않음)', but no sibling check tool (e.g. check_egovframe_access, check_egovframe_secure_coding) is named, so the boundary with other audits is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the reader infers this is the privacy-flow audit pass and that fixing is out of scope. There is no explicit when-to-use trigger, no prerequisites (e.g. that a mapped project or DDL/mapper XML must exist), and no routing between this and the other check_egovframe_* tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.