Skip to main content
Glama
egovframe-scaffold-mcp

egovframe-scaffold-mcp

by EricSeokgon

프로젝트 무결성 검증

validate_egovframe_project
Read-onlyIdempotent

Validates assembled eGovFrame project integrity by checking manifest files, DB script consistency, and Mapper/DAO mapping errors that compile/startup checks miss, catching runtime failures early.

Instructions

조립된 프로젝트의 무결성을 진단합니다: 설치 매니페스트 기준 파일 존재 확인, Globals.DbType과 복사된 DB 스크립트 일치 확인, 매퍼·DAO 정합성(v1.19 — DAO 의 문자열 ID·Mapper 인터페이스 메서드가 가리키는 문장이 XML 에 없는 곳과 비슷한 이름 후보, DB 별 매퍼 사이 문장 차이, include·resultMap 대상 없음, id 중복. 컴파일·기동으로 잡히지 않고 그 화면을 누를 때 실패하는 결함).

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": "validate_egovframe_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoMarkdown 에 보일 매퍼 항목 수(구조화 출력은 최대 200)
mapperNo매퍼·DAO 정합성 검사(v1.19): DAO 의 문자열 ID 호출·Mapper 인터페이스 메서드가 가리키는 문장이 XML 에 없는 곳, DB 별 매퍼 사이 문장 차이, include·resultMap 대상 없음, 같은 DB 로 올라가는 파일 사이 id 중복. 결과는 mapper 에 따로 — ok(조립 무결성)에는 넣지 않음, CI 게이트는 --fail-on mapperErrors>0
projectDirYes검증할 프로젝트 디렉터리

Output Schema

NameRequiredDescriptionDefault
okYes
dbTypeYes
mapperNo
aiChecksYes
warningsYes
componentsYes
projectDirYes
dbScriptDirsYes
manifestFoundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.20.0
    • addedInput schema / properties / mapper
      Added value: +{
      +  "default": true,
      +  "description": "매퍼·DAO 정합성 검사(v1.19): DAO 의 문자열 ID 호출·Mapper 인터페이스 메서드가 가리키는 문장이 XML 에 없는 곳, DB 별 매퍼 사이 문장 차이, include·resultMap 대상 없음, 같은 DB 로 올라가는 파일 사이 id 중복. 결과는 mapper 에 따로 — ok(조립 무결성)에는 넣지 않음, CI 게이트는 --fail-on mapperErrors>0",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / topN
      Added value: +{
      +  "default": 20,
      +  "description": "Markdown 에 보일 매퍼 항목 수(구조화 출력은 최대 200)",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / mapper
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "counts": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "dynamicCalls": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "interfaceMethods": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "mapperFiles": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "namespaces": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "statements": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "stringCalls": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "mapperFiles",
      +        "namespaces",
      +        "statements",
      +        "stringCalls",
      +        "interfaceMethods",
      +        "dynamicCalls"
      +      ],
      +      "type": "object"
      +    },
      +    "dbType": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "issues": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "candidates": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "file": {
      +            "type": "string"
      +          },
      +          "kind": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "ref": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "error",
      +              "warning"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "kind",
      +          "severity",
      +          "file",
      +          "line",
      +          "ref",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "notes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "summary": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "byKind": {
      +          "additionalProperties": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "dynamicMatched": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "errors": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "missing": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "variantGaps": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "warnings": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "errors",
      +        "warnings",
      +        "missing",
      +        "dynamicMatched",
      +        "variantGaps",
      +        "byKind"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "dbType",
      +    "counts",
      +    "summary",
      +    "issues",
      +    "notes"
      +  ],
      +  "type": "object"
      +}
  2. Changed7 schema fields changedv1.6.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / aiChecks / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / components / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / components / items / properties / files / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / components / items / properties / files / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / components / items / properties / missing / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / components / items / properties / missing / minimum
      Added value: +-9007199254740991
  3. Changed1 schema field changedv0.36.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "aiChecks": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "componentId": {
      +            "type": "string"
      +          },
      +          "exists": {
      +            "type": "boolean"
      +          },
      +          "file": {
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "componentId",
      +          "file",
      +          "exists",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "components": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "files": {
      +            "type": "integer"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "missing": {
      +            "type": "integer"
      +          },
      +          "missingSamples": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "files",
      +          "missing",
      +          "missingSamples"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "dbScriptDirs": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "dbType": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "manifestFound": {
      +      "type": "boolean"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "projectDir": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "projectDir",
      +    "ok",
      +    "manifestFound",
      +    "components",
      +    "dbType",
      +    "dbScriptDirs",
      +    "aiChecks",
      +    "warnings"
      +  ],
      +  "type": "object"
      +}
  4. Addedv0.19.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. Beyond that, the description adds real behavior: mapper findings are reported separately and deliberately excluded from the overall ok result, with a concrete CI gate (--fail-on mapperErrors>0) and a versioned (v1.19) check inventory. It could still say more about cost/runtime for large projects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause and every element carries information; there is no filler. The single long sentence with a deeply nested parenthetical listing five defect types is dense and hard to scan, but nothing is redundant enough to cut.

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?

For a read-only validation tool with an output schema, full parameter coverage and complete annotations, the description covers scope, defect classes and reporting split adequately. It falls short only on sequencing relative to the assemble/build tools and on distinguishing itself from the sibling diagnose tool.

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 three parameters (projectDir, mapper, topN) are already documented, including the topN cap and the separate mapper reporting semantics. The description largely restates the mapper check list rather than adding new meaning, so baseline 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?

States a concrete verb (진단/검증) and resource (조립된 프로젝트의 무결성) and enumerates the specific checks: manifest file existence, Globals.DbType vs copied DB scripts, and mapper/DAO consistency with named defect classes. What is missing is differentiation from the sibling diagnose_egovframe_project, so an agent cannot tell from the description alone which of the two diagnostic tools to pick.

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 only implied: this is a post-assembly validation step, and the closing remark that these are defects that compile and startup miss but that fail when a user clicks that screen clarifies what class of problem it targets. There is no explicit when-to-use/when-not guidance, no statement of prerequisites (project must already be assembled), and no routing to sibling diagnostic or build tools.

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