MCP server for generating Korean certified mail (내용증명) documents with multi-layer security (input sanitization, PII masking, file validation), evidence collection, legal statute cross-validation, and DOCX generation.
Server has 10 tools with basic schemas and descriptions in Korean. Naming follows verb_noun pattern (list_, mask_, register_, etc.), which is good. However, descriptions are inconsistent in quality and length, some are detailed (mask_personal_info: 180+ chars with security context), others are minimal (list_sessions: 40 chars). Parameter descriptions exist but are sparse; many lack format/constraint details. Output schemas are not documented. Error handling is present in code (injection detection, file validation) but not surfaced in tool descriptions. Security sanitization is thorough in implementation but not reflected in tool contracts. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels. Overall: functional but below production baseline.
세션의 모든 증거를 삭제한다.
내용증명 DOCX 문서를 생성한다. 마스킹된 데이터, 증거, 법령 인용을 포함. 한국 우체국·법원 제출 기준 준수 (A4, 여백, 줄간격 200%, 바탕체).
세션의 등록된 증거 목록 반환. 증거 ID, 타입, 설명, 등록 시간 포함.
활성 세션 목록 반환. MCP 서버 연결 상태 확인에 사용.
계약서 파일을 로드하여 검토용 텍스트로 반환한다. 파일 검증: 크기 제한(200KB), 줄 길이/개수 제한, 인젝션 패턴 검사.
내용증명 입력 데이터에서 개인정보를 마스킹 토큰으로 치환한다. 보안 처리: 모든 문자열 필드에 인젝션 패턴 검사 적용, PII 필드는 토큰으로 치환해 Claude 컨텍스트에서 격리, 금액은 백만 단위 힌트(AMOUNT_3M)만 전달
법제처 OPEN API를 통해 실시간 법령 정보를 조회한다. LAWGO_API_KEY 환경변수 필수.
Output schemas not documented. Tools return results but LLMs cannot plan downstream calls without knowing field names and types. E.g., generate_certified_mail returns a DOCX file path, but this is not declared in the tool contract.
Tool annotations missing. Tools have clear risk levels (DESTRUCTIVE: clear_evidence, WRITE: register_evidence/generate_certified_mail, READ_ONLY: others) but no readOnlyHint/destructiveHint/idempotentHint in schema. Agents cannot infer safety without explicit hints.
Parameter descriptions lack format/constraint details. E.g., 'evidence_type' enum is declared but no description explains what each type means or when to use each. 'limit' in query_lawgo_api has no min/max bounds. Descriptions should state ranges, patterns, and examples.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 46 | <=2025-11-25 | v2 |
증거 자료를 세션에 등록한다. 텍스트, 파일, URL 증거 지원. 파일 검증: 확장자 화이트리스트, 파일 크기 제한(50MB), 내용 줄 길이/개수 검사.
마스킹된 토큰을 원본 개인정보로 복원한다. 세션 ID와 토큰 필요. 로컬 저장소에서만 조회 (Claude 컨텍스트 미전달).
인용 조항이 legal-db.json 허용 목록에 있는지 교차 검증한다. 판례 번호 직접 인용 금지.
Error handling not surfaced in tool descriptions. Code implements injection detection, file validation, and path traversal checks, but tool descriptions do not explain what errors can occur or how to recover. E.g., mask_personal_info blocks injections but does not document the [BLOCKED] response.
Inconsistent description length and detail. mask_personal_info (180+ chars, detailed security context) vs list_sessions (40 chars, minimal). Descriptions should be 50 - 200 chars with WHAT, WHEN, and RETURN info. Short descriptions force LLMs to guess intent.